Fixes #37761 - Allow rewrites needed for cockpit integration #1645
Annotations
10 errors
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on debian-12-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on centos-8-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on ubuntu-22.04-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on ubuntu-20.04-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on redhat-9-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on debian-11-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on redhat-8-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on almalinux-8-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on almalinux-9-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
spec/classes/plugin/remote_execution_cockpit_spec.rb#L67
foreman::plugin::remote_execution::cockpit on centos-9-x86_64 with default args configures apache
Failure/Error:
is_expected.to contain_foreman__config__apache__fragment('cockpit')
.without_content
.with_ssl_content(%r{^<Location /webcon>$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) ws://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
.with_ssl_content(%r{^ RewriteRule /webcon/\(\.\*\) http://127\.0\.0\.1:19090/webcon/\$1 \[P\]$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n", and parameter ssl_content set to /^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$/ but it is set to "### File managed with puppet ###\n\n<Location /webcon>\n ProxyPreserveHost On\n\n RewriteEngine On\n RewriteCond %{HTTP:Upgrade} =websocket [NC]\n RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n RewriteCond %{HTTP:Upgrade} !=websocket [NC]\n RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]\n</Location>\n"
Diff:
@@ -1,4 +1,25 @@
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) ws:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+### File managed with puppet ###
-(?-mix:^ RewriteRule \/webcon\/\(\.\*\) http:\/\/127\.0\.0\.1:19090\/webcon\/\$1 \[P\]$)
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
+
+
+### File managed with puppet ###
+
+<Location /webcon>
+ ProxyPreserveHost On
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Upgrade} =websocket [NC]
+ RewriteRule /webcon/(.*) ws://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+ RewriteCond %{HTTP:Upgrade} !=websocket [NC]
+ RewriteRule /webcon/(.*) http://127.0.0.1:19090/webcon/$1 [P,UnsafeAllow3F]
+</Location>
|
This job failed
Loading