MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / run_test

Method run_test

test/functional/interface_http.py:112–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 self.node = self.nodes[0]
111
112 def run_test(self):
113 # The test framework typically reuses a single persistent HTTP connection
114 # for all RPCs to a TestNode. Because we are setting -rpcservertimeout
115 # so low on this one node, its connection will quickly timeout and get dropped by
116 # the server. Negating this setting will force the AuthServiceProxy
117 # for this node to create a fresh new HTTP connection for every command
118 # called for the remainder of this test.
119 self.node.reuse_http_connections = False
120
121 self.check_default_connection()
122 self.check_keepalive_connection()
123 self.check_close_connection()
124 self.check_excessive_request_size()
125 self.check_pipelining()
126 self.check_chunked_transfer()
127 self.check_idle_timeout()
128 self.check_server_busy_idle_timeout()
129 self.check_auth_required()
130 self.check_wrong_credentials()
131 self.check_malformed_auth_headers()
132 self.check_disallowed_http_methods()
133 self.check_path_traversal()
134 self.check_request_smuggling_cl_te()
135 self.check_duplicate_content_length()
136 self.check_null_byte_in_uri()
137 self.check_invalid_http_version()
138 self.check_whitespace_in_headers()
139
140
141 def check_default_connection(self):

Callers

nothing calls this directly

Tested by

no test coverage detected