From 93fbe759fd784554287d66fab0c9a4ea9f587502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branislav=20N=C3=A1ter?= Date: Wed, 20 Apr 2022 09:58:23 +0200 Subject: [PATCH 1/3] adding root contact, tier3 -> tier2 change --- core/Ability-to-generate-3072-bit-keys/main.fmf | 1 - core/certificates-with-incorrect-expiry/main.fmf | 4 ++-- main.fmf | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 main.fmf diff --git a/core/Ability-to-generate-3072-bit-keys/main.fmf b/core/Ability-to-generate-3072-bit-keys/main.fmf index 63557e6..1be41d1 100644 --- a/core/Ability-to-generate-3072-bit-keys/main.fmf +++ b/core/Ability-to-generate-3072-bit-keys/main.fmf @@ -1,7 +1,6 @@ summary: Ability to generate 3072 bit keys description: | Bug summary: Ability to generate 3072 bit keys -contact: Branislav Náter component: - sscg test: ./runtest.sh diff --git a/core/certificates-with-incorrect-expiry/main.fmf b/core/certificates-with-incorrect-expiry/main.fmf index 98702fa..98bfaa6 100644 --- a/core/certificates-with-incorrect-expiry/main.fmf +++ b/core/certificates-with-incorrect-expiry/main.fmf @@ -10,8 +10,8 @@ recommend: duration: 5m enabled: true tag: - - Tier3 -tier: '3' + - Tier2 +tier: '2' link: - relates: https://bugzilla.redhat.com/show_bug.cgi?id=2017667 extra-nitrate: TC#0612550 diff --git a/main.fmf b/main.fmf new file mode 100644 index 0000000..8df2dbd --- /dev/null +++ b/main.fmf @@ -0,0 +1,2 @@ +# QE owner +contact: Branislav Náter From 10a3d28457cfe89e7b49b2cc2b6d9e71a5fc560c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 1 Jun 2023 10:37:02 -0400 Subject: [PATCH 2/3] Test expiration by days rather than a year It currently breaks if a leap day occurs within the next year. Signed-off-by: Stephen Gallagher --- core/certificates-with-incorrect-expiry/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/certificates-with-incorrect-expiry/runtest.sh b/core/certificates-with-incorrect-expiry/runtest.sh index 3789451..458ceaa 100755 --- a/core/certificates-with-incorrect-expiry/runtest.sh +++ b/core/certificates-with-incorrect-expiry/runtest.sh @@ -44,8 +44,8 @@ rlJournalStart rlLogInfo "Get current date +1 year" # It might happend date we get time a bit later so we will compare # certificate date with two values - date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='1 year' > output.txt - date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='1 year - 1 second' >> output.txt + date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='365 days' > output.txt + date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='365 days - 1 second' >> output.txt cert_end_date=$(openssl x509 -enddate -noout < service.pem) rlRun "echo $cert_end_date" 0 "Certificate end date" rlRun "cat output.txt" 0 "Generated dates" From 6ef360f9c106a6d7afd0afb0e4af3d956069c02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branislav=20N=C3=A1ter?= Date: Wed, 7 Jun 2023 14:22:42 +0200 Subject: [PATCH 3/3] Compress consecutive spaces --- core/certificates-with-incorrect-expiry/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/certificates-with-incorrect-expiry/runtest.sh b/core/certificates-with-incorrect-expiry/runtest.sh index 458ceaa..c54e8a7 100755 --- a/core/certificates-with-incorrect-expiry/runtest.sh +++ b/core/certificates-with-incorrect-expiry/runtest.sh @@ -46,7 +46,7 @@ rlJournalStart # certificate date with two values date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='365 days' > output.txt date +'notAfter=%b %-d %H:%M:%S %Y GMT' --utc --date='365 days - 1 second' >> output.txt - cert_end_date=$(openssl x509 -enddate -noout < service.pem) + cert_end_date=$(openssl x509 -enddate -noout < service.pem | tr -s ' ') rlRun "echo $cert_end_date" 0 "Certificate end date" rlRun "cat output.txt" 0 "Generated dates" # dates should match