Changeset a2d1bb9 in mod_gnutls
- Timestamp:
- Dec 4, 2019, 10:14:50 AM (3 years ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 6d3dc34
- Parents:
- ec63b07
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/https-test-client.py
rec63b07 ra2d1bb9 383 383 args = parser.parse_args() 384 384 385 test_conn= None385 conns = None 386 386 387 387 config = yaml.load(args.test_config, Loader=yaml.Loader) 388 388 if type(config) is TestConnection: 389 test_conn = config 390 print(test_conn) 389 conns = [config] 390 elif type(config) is list: 391 # assume list elements are connections 392 conns = config 391 393 else: 392 394 raise TypeError(f'Unsupported configuration: {config!r}') 393 394 test_conn.run(host=args.host, port=args.port) 395 print(conns) 396 397 for test_conn in conns: 398 test_conn.run(host=args.host, port=args.port) -
test/sample_fail.yml
rec63b07 ra2d1bb9 1 !connection 2 gnutls_params: 3 - x509cafile=rogueca/x509.pem 4 actions: 5 - !request 6 path: / 7 expect: 8 reset: yes 1 # Example: The first TLS connection fails (certificate error), the 2 # second succeeds but receives a 404. 3 - !connection 4 gnutls_params: 5 - x509cafile=rogueca/x509.pem 6 actions: 7 - !request 8 path: / 9 expect: 10 reset: yes 11 - !connection 12 gnutls_params: 13 - x509cafile=authority/x509.pem 14 actions: 15 - !request 16 path: / 17 expect: 18 status: 404
Note: See TracChangeset
for help on using the changeset viewer.