Beispiel #1
0
def test_legacy_accept(protocol):
    with remote_service("daemon-tls1_1.conf") as service:
        rc = check_protocol("127.0.0.1", service.port, protocol)
    assert rc == 0
Beispiel #2
0
def test_accept_protocols(proxy_server, protocol):
    rc = check_protocol("127.0.0.1", proxy_server.port, protocol)
    assert rc == 0
Beispiel #3
0
def test_default_accept(protocol):
    with remote_service("daemon.conf") as service:
        rc = check_protocol("127.0.0.1", service.port, protocol)
    assert rc == 0
Beispiel #4
0
def test_reject_protocols(proxy_server, protocol):
    rc = check_protocol("127.0.0.1", proxy_server.port, protocol)
    assert rc != 0
def test_accept_protocols(protocol):
    rc = check_protocol("127.0.0.1", config.images.port, protocol)
    assert rc == 0
def test_reject_protocols(protocol):
    rc = check_protocol("127.0.0.1", config.images.port, protocol)
    assert rc != 0
Beispiel #7
0
def test_legacy_accept(proxy_server, protocol):
    with run_server("proxy-tls1_1.conf") as proxy_server:
        rc = check_protocol("127.0.0.1", proxy_server.port, protocol)
    assert rc == 0
Beispiel #8
0
def test_default_accept(proxy_server, protocol):
    with run_server("proxy.conf") as proxy_server:
        rc = check_protocol("127.0.0.1", proxy_server.port, protocol)
    assert rc == 0