always compare CNs as downcase #1450
Annotations
10 errors
Run tests:
spec/classes/pulpcore_spec.rb#L494
pulpcore on almalinux-8-x86_64 with API client auth common names is expected to contain Apache::Vhost[pulpcore-https] with directories => [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Failure/Error:
is_expected.to contain_apache__vhost('pulpcore-https')
.with_directories([
{
'provider' => 'Directory',
'path' => '/var/lib/pulp/pulpcore_static',
'options' => ['-Indexes', '-FollowSymLinks'],
'allow_override' => ['None'],
},
{
'path' => '/pulp/content',
expected that the catalogue would contain Apache::Vhost[pulpcore-https] with directories set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}] but it is set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Diff:
@@ -2,5 +2,5 @@
{"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}
-{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
+{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on almalinux-8-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on centos-9-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on redhat-9-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on redhat-8-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on centos-8-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/plugin_container_spec.rb#L45
pulpcore::plugin::container on almalinux-9-x86_64 with API client auth common names configures the plugin
Failure/Error:
is_expected.to contain_apache__vhost__fragment('pulpcore-https-plugin-container')
.with_vhost('pulpcore-https')
.with_priority('10')
.with_content(<<APACHE_CONFIG)
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
expected that the catalogue would contain Apache::Vhost::Fragment[pulpcore-https-plugin-container] with content set to supplied string
Diff:
@@ -2,7 +2,7 @@
<Location "/pulpcore_registry/v2/">
RequestHeader unset REMOTE-USER
RequestHeader unset REMOTE_USER
- RequestHeader set REMOTE-USER "admin" "expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
+ RequestHeader set REMOTE-USER "admin" "expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'"
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/v2/
</Location>
|
Run tests:
spec/classes/pulpcore_spec.rb#L494
pulpcore on centos-9-x86_64 with API client auth common names is expected to contain Apache::Vhost[pulpcore-https] with directories => [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Failure/Error:
is_expected.to contain_apache__vhost('pulpcore-https')
.with_directories([
{
'provider' => 'Directory',
'path' => '/var/lib/pulp/pulpcore_static',
'options' => ['-Indexes', '-FollowSymLinks'],
'allow_override' => ['None'],
},
{
'path' => '/pulp/content',
expected that the catalogue would contain Apache::Vhost[pulpcore-https] with directories set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}] but it is set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Diff:
@@ -2,5 +2,5 @@
{"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}
-{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
+{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
|
Run tests:
spec/classes/pulpcore_spec.rb#L494
pulpcore on redhat-9-x86_64 with API client auth common names is expected to contain Apache::Vhost[pulpcore-https] with directories => [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Failure/Error:
is_expected.to contain_apache__vhost('pulpcore-https')
.with_directories([
{
'provider' => 'Directory',
'path' => '/var/lib/pulp/pulpcore_static',
'options' => ['-Indexes', '-FollowSymLinks'],
'allow_override' => ['None'],
},
{
'path' => '/pulp/content',
expected that the catalogue would contain Apache::Vhost[pulpcore-https] with directories set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}] but it is set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Diff:
@@ -2,5 +2,5 @@
{"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}
-{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
+{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
|
Run tests:
spec/classes/pulpcore_spec.rb#L494
pulpcore on redhat-8-x86_64 with API client auth common names is expected to contain Apache::Vhost[pulpcore-https] with directories => [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Failure/Error:
is_expected.to contain_apache__vhost('pulpcore-https')
.with_directories([
{
'provider' => 'Directory',
'path' => '/var/lib/pulp/pulpcore_static',
'options' => ['-Indexes', '-FollowSymLinks'],
'allow_override' => ['None'],
},
{
'path' => '/pulp/content',
expected that the catalogue would contain Apache::Vhost[pulpcore-https] with directories set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}] but it is set to [{"provider"=>"Directory", "path"=>"/var/lib/pulp/pulpcore_static", "options"=>["-Indexes", "-FollowSymLinks"], "allow_override"=>["None"]}, {"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}, {"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}]
Diff:
@@ -2,5 +2,5 @@
{"path"=>"/pulp/content", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-content.sock|http://pulpcore-content/pulp/content", "params"=>{"timeout"=>"600", "disablereuse"=>"on"}}], "request_headers"=>["unset X-CLIENT-CERT", "set X-CLIENT-CERT \"%{SSL_CLIENT_CERT}s\" env=SSL_CLIENT_CERT"]}
-{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
+{"path"=>"/pulp/api/v3", "provider"=>"location", "proxy_pass"=>[{"url"=>"unix:///run/pulpcore-api.sock|http://pulpcore-api/pulp/api/v3", "params"=>{"timeout"=>"600"}}], "request_headers"=>["unset REMOTE-USER", "unset REMOTE_USER", "set REMOTE-USER \"admin\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == 'foreman.example.com'\""]}
|
Loading