From 7fbbd9e1cbd163345c55f2e360a0afa833cdeb07 Mon Sep 17 00:00:00 2001 From: Fabrice Reix Date: Tue, 17 May 2022 18:34:59 +0200 Subject: [PATCH] Test specific error message for Fedora --- .../ssl/error_self_signed_certificate.linux-fedora.err | 7 +++++++ integration/test_hurl.py | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 integration/ssl/error_self_signed_certificate.linux-fedora.err diff --git a/integration/ssl/error_self_signed_certificate.linux-fedora.err b/integration/ssl/error_self_signed_certificate.linux-fedora.err new file mode 100644 index 000000000..a337ee6e0 --- /dev/null +++ b/integration/ssl/error_self_signed_certificate.linux-fedora.err @@ -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 + | + diff --git a/integration/test_hurl.py b/integration/test_hurl.py index 2077f62de..ee20623a7 100755 --- a/integration/test_hurl.py +++ b/integration/test_hurl.py @@ -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"