diff options
author | Michał Wojdyła | 2022-09-25 04:00:52 +0200 |
---|---|---|
committer | Michał Wojdyła | 2022-09-25 04:00:52 +0200 |
commit | fb9a8a524fd03ec0e5a75161eb67d57f58db288c (patch) | |
tree | adca44011d302f3c257b7b86ab6ed02653043858 /revocation-test.patch | |
parent | e9727405703e965c05e0b1c094e2c9f77063a2ed (diff) | |
download | aur-fb9a8a524fd03ec0e5a75161eb67d57f58db288c.tar.gz |
Update DigiCert revocation test
Diffstat (limited to 'revocation-test.patch')
-rw-r--r-- | revocation-test.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/revocation-test.patch b/revocation-test.patch new file mode 100644 index 000000000000..30755dd0c822 --- /dev/null +++ b/revocation-test.patch @@ -0,0 +1,45 @@ +--- a/tests/test_validate.py ++++ b/tests/test_validate.py +@@ -171,7 +171,8 @@ def test_revocation_mode_hard(self): + + expected = ( + '(CRL|OCSP response) indicates the end-entity certificate was ' +- 'revoked at 22:42:35 on 2021-08-17, due to an unspecified reason' ++ 'revoked at \\d\\d:\\d\\d:\\d\\d on \\d\\d\\d\\d-\\d\\d-\\d\\d' ++ ', due to an unspecified reason' + ) + with self.assertRaisesRegex(RevokedError, expected): + validate_path(context, path) +@@ -201,8 +202,8 @@ async def test_revocation_mode_hard_async(self): + + expected = ( + '(CRL|OCSP response) indicates the end-entity certificate was ' +- 'revoked at 22:42:35 on 2021-08-17, due to an unspecified ' +- 'reason' ++ 'revoked at \\d\\d:\\d\\d:\\d\\d on \\d\\d\\d\\d-\\d\\d-\\d\\d' ++ ', due to an unspecified reason' + ) + with self.assertRaisesRegex(RevokedError, expected): + await async_validate_path(context, path) +@@ -229,8 +230,8 @@ async def test_revocation_mode_hard_aiohttp_autofetch(self): + + expected = ( + '(CRL|OCSP response) indicates the end-entity certificate was ' +- 'revoked at 22:42:35 on 2021-08-17, due to an unspecified ' +- 'reason' ++ 'revoked at \\d\\d:\\d\\d:\\d\\d on \\d\\d\\d\\d-\\d\\d-\\d\\d' ++ ', due to an unspecified reason' + ) + with self.assertRaisesRegex(RevokedError, expected): + await async_validate_path(context, path) +@@ -257,8 +258,8 @@ async def test_revocation_mode_hard_requests_autofetch(self): + + expected = ( + '(CRL|OCSP response) indicates the end-entity certificate was ' +- 'revoked at 22:42:35 on 2021-08-17, due to an unspecified ' +- 'reason' ++ 'revoked at \\d\\d:\\d\\d:\\d\\d on \\d\\d\\d\\d-\\d\\d-\\d\\d' ++ ', due to an unspecified reason' + ) + with self.assertRaisesRegex(RevokedError, expected): + await async_validate_path(context, path) |