From c89754ebe4616b38a2c5bb37e52b3bc2a9e45f1e Mon Sep 17 00:00:00 2001 From: George Pantelakis Date: Thu, 25 Jan 2024 13:23:39 +0100 Subject: [PATCH] Fixing typo from when transitioned to V3 --- Sanity/test_certs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sanity/test_certs.py b/Sanity/test_certs.py index c2bfa5f..5aa9a2c 100644 --- a/Sanity/test_certs.py +++ b/Sanity/test_certs.py @@ -32,7 +32,8 @@ def test_wrong_issuer_cert(local_user, sssd_db, user_shell, tmp_path): sssd_db.backup() sssd_db.path.unlink() - ca_factory(path = tmp_path.joinpath("ca"), + run(['mkdir', tmp_path.joinpath("ca")]) + ca_factory(path=tmp_path.joinpath("ca"), create=True) run(['restorecon', "-v", "/etc/sssd/pki/sssd_auth_ca_db.pem"]) with Authselect(): @@ -44,4 +45,5 @@ def test_wrong_issuer_cert(local_user, sssd_db, user_shell, tmp_path): user_shell.expect_exact(local_user.username) sssd_db.restore() + run(['rm', "-rf", tmp_path.joinpath("ca")]) run(['restorecon', "-v", "/etc/sssd/pki/sssd_auth_ca_db.pem"])