Commit 33397e5d authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Use HTTP code const in tests

parent 8b3b0e2a
...@@ -246,7 +246,7 @@ class HttpFrontendTestCase(SlapOSInstanceTestCase): ...@@ -246,7 +246,7 @@ class HttpFrontendTestCase(SlapOSInstanceTestCase):
frontend, url = entry frontend, url = entry
result = requests.get(url, verify=False) result = requests.get(url, verify=False)
self.assertEqual( self.assertEqual(
200, httplib.OK,
result.status_code, result.status_code,
'While accessing %r of %r the status code was %r' % ( 'While accessing %r of %r the status code was %r' % (
url, frontend, result.status_code)) url, frontend, result.status_code))
...@@ -1451,7 +1451,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s { ...@@ -1451,7 +1451,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s {
der2pem(result.peercert)) der2pem(result.peercert))
self.assertEqual( self.assertEqual(
502, httplib.BAD_GATEWAY,
result.status_code result.status_code
) )
...@@ -1522,7 +1522,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s { ...@@ -1522,7 +1522,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s {
der2pem(result.peercert)) der2pem(result.peercert))
self.assertEqual( self.assertEqual(
502, httplib.BAD_GATEWAY,
result.status_code result.status_code
) )
...@@ -1592,7 +1592,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s { ...@@ -1592,7 +1592,7 @@ http://apachecustomhttpsaccepted.example.com:%%(http_port)s {
der2pem(result.peercert)) der2pem(result.peercert))
self.assertEqual( self.assertEqual(
502, httplib.BAD_GATEWAY,
result.status_code result.status_code
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment