|
10 | 10 | ALL_TEST_CURVES,
|
11 | 11 | ALL_TEST_CERTS,
|
12 | 12 | )
|
13 |
| -from common import ProviderOptions, Protocols, data_bytes |
| 13 | +from common import Ciphers, ProviderOptions, Protocols, data_bytes |
14 | 14 | from fixtures import managed_process # lgtm [py/unused-import]
|
15 | 15 | from providers import Provider, S2N, OpenSSL
|
16 | 16 | from utils import invalid_test_parameters, get_parameter_name, to_bytes
|
17 | 17 |
|
| 18 | +S2N_TEST_POLICIES = [ |
| 19 | + Ciphers.SECURITY_POLICY_DEFAULT, |
| 20 | + Ciphers.SECURITY_POLICY_DEFAULT_TLS13, |
| 21 | +] |
| 22 | + |
18 | 23 | S2N_RESUMPTION_MARKER = to_bytes("Resumed session")
|
19 | 24 | CLOSE_MARKER_BYTES = data_bytes(10)
|
20 | 25 |
|
@@ -177,10 +182,8 @@ def test_s2n_new_server_old_ticket(
|
177 | 182 |
|
178 | 183 |
|
179 | 184 | @pytest.mark.uncollect_if(func=invalid_test_parameters)
|
180 |
| -@pytest.mark.parametrize("cipher", ALL_TEST_CIPHERS, ids=get_parameter_name) |
181 |
| -@pytest.mark.parametrize("curve", ALL_TEST_CURVES, ids=get_parameter_name) |
| 185 | +@pytest.mark.parametrize("cipher", S2N_TEST_POLICIES, ids=get_parameter_name) |
182 | 186 | @pytest.mark.parametrize("certificate", ALL_TEST_CERTS, ids=get_parameter_name)
|
183 |
| -@pytest.mark.parametrize("protocol", RESUMPTION_PROTOCOLS, ids=get_parameter_name) |
184 | 187 | @pytest.mark.parametrize("provider", [S2N], ids=get_parameter_name)
|
185 | 188 | @pytest.mark.parametrize("other_provider", [S2N], ids=get_parameter_name)
|
186 | 189 | def test_s2n_old_client_new_ticket(
|
@@ -246,10 +249,8 @@ def test_s2n_old_client_new_ticket(
|
246 | 249 |
|
247 | 250 |
|
248 | 251 | @pytest.mark.uncollect_if(func=invalid_test_parameters)
|
249 |
| -@pytest.mark.parametrize("cipher", ALL_TEST_CIPHERS, ids=get_parameter_name) |
250 |
| -@pytest.mark.parametrize("curve", ALL_TEST_CURVES, ids=get_parameter_name) |
| 252 | +@pytest.mark.parametrize("cipher", S2N_TEST_POLICIES, ids=get_parameter_name) |
251 | 253 | @pytest.mark.parametrize("certificate", ALL_TEST_CERTS, ids=get_parameter_name)
|
252 |
| -@pytest.mark.parametrize("protocol", RESUMPTION_PROTOCOLS, ids=get_parameter_name) |
253 | 254 | @pytest.mark.parametrize("provider", [S2N], ids=get_parameter_name)
|
254 | 255 | @pytest.mark.parametrize("other_provider", [S2N], ids=get_parameter_name)
|
255 | 256 | def test_s2n_new_client_old_ticket(
|
|
0 commit comments