Skip to content

Commit

Permalink
ukify: make the test happy with the latest OpenSSL
Browse files Browse the repository at this point in the history
Which dropped some whitespaces in the output:

$ openssl version
OpenSSL 3.2.0 23 Nov 2023 (Library: OpenSSL 3.2.0 23 Nov 2023)
$ openssl x509 -in cert.pem -text -noout | grep Issuer
        Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd

$ openssl version
OpenSSL 3.0.9 30 May 2023 (Library: OpenSSL 3.0.9 30 May 2023)
$ openssl x509 -in cert.pem -text -noout | grep Issuer
        Issuer: C = XX, L = Default City, O = Default Company Ltd

Making test-ukify unhappy:

>       assert 'Issuer: CN = SecureBoot signing key on host' in out
E       AssertionError: assert 'Issuer: CN = SecureBoot signing key on host' in '<...snip...>Issuer: CN=SecureBoot signing key on host archlinux2\n...'

(cherry picked from commit 338ed5b)

Resolves: RHEL-34061
  • Loading branch information
mrc0mmand committed Apr 26, 2024
1 parent 445d545 commit 62002e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ukify/test/test_ukify.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def test_key_cert_generation(tmpdir):
'-noout',
], text = True)
assert 'Certificate' in out
assert 'Issuer: CN = SecureBoot signing key on host' in out
assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out)

if __name__ == '__main__':
sys.exit(pytest.main(sys.argv))

0 comments on commit 62002e5

Please sign in to comment.