Test specific error message for Fedora

This commit is contained in:
Fabrice Reix 2022-05-17 18:34:59 +02:00 committed by jcamiel
parent d349f7f788
commit 7fbbd9e1cb
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,7 @@
error: Http Connection
--> ssl/error_self_signed_certificate.hurl:1:5
|
1 | GET https://localhost:8001/hello
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (60) SSL certificate problem: self-signed certificate
|

View File

@ -20,9 +20,12 @@ def decode_string(encoded):
return encoded.decode()
# return linux, osx or windows
# return linux-fedora, linux, osx or windows
# can add more specific linux variant if needed
def get_os():
if platform.system() == "Linux":
if os.path.exists("/etc/fedora-release"):
return "linux-fedora"
return "linux"
elif platform.system() == "Darwin":
return "osx"