Skip to content

Commit

Permalink
Add fix for test_privkey_new_with_prereq on old OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhestkov committed Aug 27, 2024
1 parent 1e89217 commit f0a69e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/pytests/integration/states/test_x509_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ def privkey_new(x509_salt_master, tmp_path, ca_minion_id, x509_salt_call_cli):
"""
with x509_salt_master.state_tree.base.temp_file("manage_cert.sls", state):
ret = x509_salt_call_cli.run("state.apply", "manage_cert")
if (
ret.returncode == 1
and "NotImplementedError: ECDSA keys with unnamed curves" in ret.stdout
):
pytest.skip(
"The version of OpenSSL doesn't support ECDSA keys with unnamed curves"
)
assert ret.returncode == 0
assert ret.data[next(iter(ret.data))]["changes"]
assert (tmp_path / "priv.key").exists()
Expand Down

0 comments on commit f0a69e9

Please sign in to comment.