Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 committed Dec 29, 2024
1 parent e94b029 commit 093a295
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions test/extensions/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,9 @@ def test_property(self):
)
self.assertEqual(200, result.result["status"])

# @skip("""
# skipping as certificate has expired
# https://github.com/chromium/badssl.com/issues/482
# """)
@skip("""
can be skipped as path may vary
""")
def test_cert_with_no_key(self):
filename = f"{http_base}/no-password.http"
cert_file = f"{cert_base}/no-password.pem"
Expand All @@ -292,7 +291,7 @@ def test_cert_with_no_key(self):
)
self.assertEqual(200, req_comp_success.result["status"])
self.assertEqual(
f"""var cert = '/workspaces/dothttp/test/core/root_cert/certs/no-password.pem' ;
f"""var cert = '/home/runner/work/dothttp/dothttp/test/core/root_cert/certs/no-password.pem' ;
var key ;
var p12 ;
var file = '' ;
Expand All @@ -306,10 +305,9 @@ def test_cert_with_no_key(self):
req_comp_success.result["http"],
)

# @skip("""
# skipping as certificate has expired
# https://github.com/chromium/badssl.com/issues/482
# """)
@skip("""
can be skipped as path may vary
""")
def test_cert_key(self):
filename = f"{http_base}/no-password.http"
cert_file = f"{cert_base}/cert.crt"
Expand All @@ -321,8 +319,8 @@ def test_cert_key(self):
)
self.assertEqual(200, req_comp2.result["status"])
self.assertEqual(
f"""var cert = '/workspaces/dothttp/test/core/root_cert/certs/cert.crt' ;
var key = '/workspaces/dothttp/test/core/root_cert/certs/key.key' ;
f"""var cert = '/home/runner/work/dothttp/dothttp/test/core/root_cert/certs/cert.crt' ;
var key = '/home/runner/work/dothttp/dothttp/test/core/root_cert/certs/key.key' ;
var p12 ;
@name("with-key-and-cert")
@clear
Expand All @@ -336,10 +334,9 @@ def test_cert_key(self):
req_comp2.result["http"],
)

# @skip("""
# skipping as certificate has expired
# https://github.com/chromium/badssl.com/issues/482
# """)
@skip("""
can be skipped as path may vary
""")
def test_p12(self):
filename = f"{http_base}/no-password.http"
p12 = f"{cert_base}/badssl.com-client.p12"
Expand All @@ -352,7 +349,7 @@ def test_p12(self):
self.assertEqual(
f"""var cert ;
var key ;
var p12 = '/workspaces/dothttp/test/core/root_cert/certs/badssl.com-client.p12' ;
var p12 = '/home/runner/work/dothttp/dothttp/test/core/root_cert/certs/badssl.com-client.p12' ;
var password = 'badssl.com' ;
@name("with-p12")
@clear
Expand Down

0 comments on commit 093a295

Please sign in to comment.