Changeset 52636ee in mod_gnutls
- Timestamp:
- Dec 27, 2019, 3:21:04 PM (3 years ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- dd91d9c
- Parents:
- 7089dbc
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
r7089dbc r52636ee 242 242 strictly requires HTTP/1.0. 243 243 244 All request parameters (method, path, headers) MUST be specified 245 in the config file. Checks on status and body work the same as for 246 TestRequest. 244 Objects use the same default parameters as TestRequest, but note 245 that an empty "headers" parameter means that not even a "Host:" 246 header will be sent. All headers must be specified in the test 247 configuration file. 247 248 248 249 """ … … 250 251 status_re = re.compile('^HTTP/([\d\.]+) (\d+) (.*)$') 251 252 252 def __init__(self, method, path, headers, expect): 253 self.method = method 254 self.path = path 255 self.headers = headers 256 self.expect = expect 253 def __init__(self, **kwargs): 254 super().__init__(**kwargs) 257 255 258 256 def __repr__(self): … … 311 309 # otherwise. 312 310 yaml.add_constructor('!request', TestRequest._from_yaml, yaml.Loader) 311 yaml.add_constructor('!request10', TestReq10._from_yaml, yaml.Loader) 313 312 yaml.add_constructor('!connection', TestConnection._from_yaml, yaml.Loader) 314 313 -
test/tests/33_vhost_SNI_serveralias_missinghost/test.yml
r7089dbc r52636ee 5 5 actions: 6 6 - !request10 7 method: GET8 7 path: /test.txt 9 8 headers:
Note: See TracChangeset
for help on using the changeset viewer.