mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 20:12:09 +03:00
Test specific error message for Fedora
This commit is contained in:
parent
d349f7f788
commit
7fbbd9e1cb
@ -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
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,12 @@ def decode_string(encoded):
|
|||||||
return encoded.decode()
|
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():
|
def get_os():
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
|
if os.path.exists("/etc/fedora-release"):
|
||||||
|
return "linux-fedora"
|
||||||
return "linux"
|
return "linux"
|
||||||
elif platform.system() == "Darwin":
|
elif platform.system() == "Darwin":
|
||||||
return "osx"
|
return "osx"
|
||||||
|
Loading…
Reference in New Issue
Block a user