Skip to content

Commit

Permalink
[ci run all] Fix http_check bad cert test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Mar 3, 2019
1 parent c271591 commit 65df063
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion http_check/tests/test_http_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def test_check_cert_expiration(http_check):
assert status == 'CRITICAL'
assert days_left == 0
assert seconds_left == 0
assert msg == "hostname 'wrong.host.badssl.com' doesn't match either of '*.badssl.com', 'badssl.com'"
assert (
msg == "hostname 'wrong.host.badssl.com' doesn't match either of '*.badssl.com', 'badssl.com'"
or "Hostname mismatch, certificate is not valid for 'wrong.host.badssl.com'" in msg
)

# site is down
instance = {
Expand Down

0 comments on commit 65df063

Please sign in to comment.