From 3e911dd821304654dda6ca3e32bf9f29939738e2 Mon Sep 17 00:00:00 2001 From: Sylvain Cresto Date: Tue, 7 Apr 2026 14:22:51 +0200 Subject: [PATCH 1/2] test --- .github/docker/unit-tests/Dockerfile.unit-tests-alma8 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 b/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 index ff88e10789..c23e9243be 100644 --- a/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 +++ b/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 @@ -56,4 +56,6 @@ mkdir -p /var/lib/centreon/centplugins/ chmod 777 /var/lib/centreon/centplugins/ NONINTERACTIVE_TESTING=1 PERL_MM_USE_DEFAULT=1 cpan Test2::Harness UUID rm -fr /root/.cpan* + +sed -i 's/grep { \/\^CURL\/x } keys %{Net::Curl::Easy::};/grep { \/^CURL\/x \&\& !\/_AWS_\/ } keys %{Net::Curl::Easy::};/' /usr/local/lib64/perl5/Net/Curl/Easy.pm EOF From 64b8a95b15c8a005ed07efd6984da84a11d70010 Mon Sep 17 00:00:00 2001 From: Sylvain Cresto Date: Tue, 7 Apr 2026 17:20:20 +0200 Subject: [PATCH 2/2] update tests --- .github/docker/unit-tests/Dockerfile.unit-tests-alma8 | 2 -- tests/centreon/plugins/curllogger.t | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 b/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 index c23e9243be..ff88e10789 100644 --- a/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 +++ b/.github/docker/unit-tests/Dockerfile.unit-tests-alma8 @@ -56,6 +56,4 @@ mkdir -p /var/lib/centreon/centplugins/ chmod 777 /var/lib/centreon/centplugins/ NONINTERACTIVE_TESTING=1 PERL_MM_USE_DEFAULT=1 cpan Test2::Harness UUID rm -fr /root/.cpan* - -sed -i 's/grep { \/\^CURL\/x } keys %{Net::Curl::Easy::};/grep { \/^CURL\/x \&\& !\/_AWS_\/ } keys %{Net::Curl::Easy::};/' /usr/local/lib64/perl5/Net/Curl/Easy.pm EOF diff --git a/tests/centreon/plugins/curllogger.t b/tests/centreon/plugins/curllogger.t index 769ff981b1..8c360e9fed 100644 --- a/tests/centreon/plugins/curllogger.t +++ b/tests/centreon/plugins/curllogger.t @@ -256,7 +256,8 @@ SKIP: { password => 'Pa$$w@rd' , curl_opt => [ "CURLOPT_AWS_SIGV4 => osc" ] } }; eval "CURLOPT_AWS_SIGV4"; - if ($@) { + my $curl = `curl --aws-sigv4 2>&1` // ''; + if ($@ || $curl =~ /is unknown/) { print "test ".$test->{title}."\n"; skip "CURLOPT_AWS_SIGV4 is unsupported on this platform", 5; }