Fixes #37761 - Allow rewrites needed for cockpit integration #1649
Annotations
10 errors
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Run tests:
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{^ ProxyPass http://127\.0\.0\.1:19090/webcon/$})
expected that the catalogue would contain Foreman::Config::Apache::Fragment[cockpit] with ssl_content set to /^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$/ 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]\n\n ProxyPass http://127.0.0.1:19090/webcon\n</Location>\n"
Diff:
@@ -1,11 +1,21 @@
-(?-mix:^ ProxyPass http:\/\/127\.0\.0\.1:19090\/webcon\/$)
+### 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]
+
+ ProxyPass http://127.0.0.1:19090/webcon
+</Location>
|
Loading