mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: remove test_rekey_keytype_DSA
The test is calling getcert rekey -G DSA in order to rekey a certificate with a DSA key, but DSA support has been disabled in the default crypto policy, and certmonger does not support it any more (see the BZ https://bugzilla.redhat.com/show_bug.cgi?id=2066439) Remove the test as it's not relevant anymore. The rekey operation is tested anyway in other tests: - test_certmonger_rekey_keysize - test_rekey_keytype_RSA - test_rekey_request_id Fixes: https://pagure.io/freeipa/issue/9140 Reviewed-By: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Rob Crittenden
parent
e547119342
commit
3edd09a8d9
@@ -426,37 +426,6 @@ class TestCertmongerRekey(IntegrationTest):
|
|||||||
'-I', self.request_id])
|
'-I', self.request_id])
|
||||||
assert self.request_id in result.stdout_text
|
assert self.request_id in result.stdout_text
|
||||||
|
|
||||||
def test_rekey_keytype_DSA(self, request_cert):
|
|
||||||
"""Test certmonger rekey command works fine
|
|
||||||
|
|
||||||
Test is to check if -G (keytype) with DSA fails
|
|
||||||
|
|
||||||
related: https://bugzilla.redhat.com/show_bug.cgi?id=1249165
|
|
||||||
"""
|
|
||||||
# rekey with RSA key type
|
|
||||||
self.master.run_command(['getcert', 'rekey',
|
|
||||||
'-i', self.request_id,
|
|
||||||
'-g', '3072',
|
|
||||||
'-G', 'DSA'])
|
|
||||||
status = tasks.wait_for_request(self.master, self.request_id, 100)
|
|
||||||
assert status == "CA_UNREACHABLE"
|
|
||||||
|
|
||||||
# grep will return file name
|
|
||||||
req_file = self.master.run_command([
|
|
||||||
"grep",
|
|
||||||
"-rl",
|
|
||||||
f"id={self.request_id}",
|
|
||||||
paths.CERTMONGER_REQUESTS_DIR
|
|
||||||
]).stdout_text.strip('\n')
|
|
||||||
# look for keytpe as DSA in request file
|
|
||||||
self.master.run_command(['grep', 'DSA', req_file])
|
|
||||||
|
|
||||||
err_msg = 'Unable to create enrollment request: Invalid Request'
|
|
||||||
result = self.master.run_command(
|
|
||||||
['getcert', 'list', '-i', self.request_id]
|
|
||||||
)
|
|
||||||
assert err_msg in result.stdout_text
|
|
||||||
|
|
||||||
|
|
||||||
class TestCertmongerInterruption(IntegrationTest):
|
class TestCertmongerInterruption(IntegrationTest):
|
||||||
num_replicas = 1
|
num_replicas = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user