Allow specifying error_log severity for servers #510
ci.yml
on: pull_request
Puppet
/
Static validations
27s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
0s
Annotations
20 errors and 20 warnings
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when rewrite_www_to_non_www is true should contain access and error logs directives inside the www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[www.rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n return 301 http://rspec.example.com$request_uri;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+ return 301 http://rspec.example.com$request_uri;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L487
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content with a naked domain title over http when rewrite_non_www_to_www is true should contain access and error logs directives inside the non-www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/www.rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n return 301 http://www.rspec.example.com$request_uri;\n access_log /var/log/nginx/rspec.example.com.access.log;\n error_log /var/log/nginx/rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/rspec.example.com.access.log;\n error_log /var/log/nginx/rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/www.rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+ return 301 http://www.rspec.example.com$request_uri;
+ access_log /var/log/nginx/rspec.example.com.access.log;
+ error_log /var/log/nginx/rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/rspec.example.com.access.log;
+ error_log /var/log/nginx/rspec.example.com.error.log error;
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L554
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content with a naked domain title over https when rewrite_non_www_to_www is true should contain access and error logs directives inside the non-www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-ssl-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[rspec.example.com-ssl-header] with content set to /\s+return\s+301\s+https:\/\/www.rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:443 ssl;\n listen [::]:443 ssl default ipv6only=on;\n\n\n server_name rspec.example.com;\n return 301 https://www.rspec.example.com$request_uri;\n access_log /var/log/nginx/ssl-rspec.example.com.access.log;\n error_log /var/log/nginx/ssl-rspec.example.com.error.log error;\n ssl_certificate /tmp/dummy.crt;\n ssl_certificate_key /tmp/dummy.key;\n\n\n}\n\nserver {\n listen *:443 ssl;\n listen [::]:443 ssl default ipv6only=on;\n\n server_name www.rspec.example.com;\n\n ssl_certificate /tmp/dummy.crt;\n ssl_certificate_key /tmp/dummy.key;\n\n index index.html index.htm index.php;\n access_log /var/log/nginx/ssl-rspec.example.com.access.log;\n error_log /var/log/nginx/ssl-rspec.example.com.error.log error;\n \n"
Diff:
@@ -1,4 +1,30 @@
-(?x-mi:\s+return\s+301\s+https:\/\/www.rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:443 ssl;
+ listen [::]:443 ssl default ipv6only=on;
+
+
+ server_name rspec.example.com;
+ return 301 https://www.rspec.example.com$request_uri;
+ access_log /var/log/nginx/ssl-rspec.example.com.access.log;
+ error_log /var/log/nginx/ssl-rspec.example.com.error.log error;
+ ssl_certificate /tmp/dummy.crt;
+ ssl_certificate_key /tmp/dummy.key;
+
+
+}
+
+server {
+ listen *:443 ssl;
+ listen [::]:443 ssl default ipv6only=on;
+
+ server_name www.rspec.example.com;
+
+ ssl_certificate /tmp/dummy.crt;
+ ssl_certificate_key /tmp/dummy.key;
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/ssl-rspec.example.com.access.log;
+ error_log /var/log/nginx/ssl-rspec.example.com.error.log error;
+
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_ssl_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_ssl_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when rewrite_www_to_non_www is true should contain access and error logs directives inside the www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[www.rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n return 301 http://rspec.example.com$request_uri;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+ return 301 http://rspec.example.com$request_uri;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items server_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when rewrite_www_to_non_www is true should contain access and error logs directives inside the www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[www.rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n return 301 http://rspec.example.com$request_uri;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+ return 301 http://rspec.example.com$request_uri;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L487
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content with a naked domain title over http when rewrite_non_www_to_www is true should contain access and error logs directives inside the non-www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/www.rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n return 301 http://www.rspec.example.com$request_uri;\n access_log /var/log/nginx/rspec.example.com.access.log;\n error_log /var/log/nginx/rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/rspec.example.com.access.log;\n error_log /var/log/nginx/rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/www.rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+ return 301 http://www.rspec.example.com$request_uri;
+ access_log /var/log/nginx/rspec.example.com.access.log;
+ error_log /var/log/nginx/rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/rspec.example.com.access.log;
+ error_log /var/log/nginx/rspec.example.com.error.log error;
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L554
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content with a naked domain title over https when rewrite_non_www_to_www is true should contain access and error logs directives inside the non-www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-ssl-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[rspec.example.com-ssl-header] with content set to /\s+return\s+301\s+https:\/\/www.rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:443 ssl;\n listen [::]:443 ssl default ipv6only=on;\n\n\n server_name rspec.example.com;\n return 301 https://www.rspec.example.com$request_uri;\n access_log /var/log/nginx/ssl-rspec.example.com.access.log;\n error_log /var/log/nginx/ssl-rspec.example.com.error.log error;\n ssl_certificate /tmp/dummy.crt;\n ssl_certificate_key /tmp/dummy.key;\n\n\n}\n\nserver {\n listen *:443 ssl;\n listen [::]:443 ssl default ipv6only=on;\n\n server_name www.rspec.example.com;\n\n ssl_certificate /tmp/dummy.crt;\n ssl_certificate_key /tmp/dummy.key;\n\n index index.html index.htm index.php;\n access_log /var/log/nginx/ssl-rspec.example.com.access.log;\n error_log /var/log/nginx/ssl-rspec.example.com.error.log error;\n \n"
Diff:
@@ -1,4 +1,30 @@
-(?x-mi:\s+return\s+301\s+https:\/\/www.rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/ssl-rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:443 ssl;
+ listen [::]:443 ssl default ipv6only=on;
+
+
+ server_name rspec.example.com;
+ return 301 https://www.rspec.example.com$request_uri;
+ access_log /var/log/nginx/ssl-rspec.example.com.access.log;
+ error_log /var/log/nginx/ssl-rspec.example.com.error.log error;
+ ssl_certificate /tmp/dummy.crt;
+ ssl_certificate_key /tmp/dummy.key;
+
+
+}
+
+server {
+ listen *:443 ssl;
+ listen [::]:443 ssl default ipv6only=on;
+
+ server_name www.rspec.example.com;
+
+ ssl_certificate /tmp/dummy.crt;
+ ssl_certificate_key /tmp/dummy.key;
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/ssl-rspec.example.com.access.log;
+ error_log /var/log/nginx/ssl-rspec.example.com.error.log error;
+
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_ssl_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_ssl_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when rewrite_www_to_non_www is true should contain access and error logs directives inside the www rewrite
Failure/Error: matches.each { |item| is_expected.to contain_concat__fragment("#{title}-header").with_content(item) }
expected that the catalogue would contain Concat::Fragment[www.rspec.example.com-header] with content set to /\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
\s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
\s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n/x but it is set to "# MANAGED BY PUPPET\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name www.rspec.example.com;\n return 301 http://rspec.example.com$request_uri;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n}\n\nserver {\n listen *:80;\n listen unix:/var/run/nginx.sock;\n listen [::]:80 default ipv6only=on;\n\n server_name rspec.example.com;\n\n \n index index.html index.htm index.php;\n access_log /var/log/nginx/www.rspec.example.com.access.log;\n error_log /var/log/nginx/www.rspec.example.com.error.log error;\n"
Diff:
@@ -1,4 +1,24 @@
-(?x-mi:\s+return\s+301\s+http:\/\/rspec\.example\.com\$request_uri;\n
- \s+access_log\s+\/var\/log\/nginx\/www.rspec.example.com.access.log;\n
- \s+error_log\s+\/var\/log\/nginx\/www.rspec.example.com.error.log error;\n)
+# MANAGED BY PUPPET
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name www.rspec.example.com;
+ return 301 http://rspec.example.com$request_uri;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
+}
+
+server {
+ listen *:80;
+ listen unix:/var/run/nginx.sock;
+ listen [::]:80 default ipv6only=on;
+
+ server_name rspec.example.com;
+
+
+ index index.html index.htm index.php;
+ access_log /var/log/nginx/www.rspec.example.com.access.log;
+ error_log /var/log/nginx/www.rspec.example.com.error.log error;
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when error_log_severity is warn should set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log warn;"]
got: []
(compared using ==)
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items server_header template content when error_log_severity is undef should not set error_log severity level
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on archlinux-rolling-x86_64 with Facter 4.2.9 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on centos-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-11-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-8-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-8-x86_64 with Facter 4.2.5 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-9-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 8 (Ruby 3.2):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on sles-12-x86_64 with Facter 4.2.14 and Puppet 8.6.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on almalinux-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on archlinux-rolling-x86_64 with Facter 4.2.9 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on centos-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on debian-11-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-8-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-8-x86_64 with Facter 4.2.5 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on rocky-9-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|
Puppet / 7 (Ruby 2.7):
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on sles-12-x86_64 with Facter 4.2.14 and Puppet 7.30.0 os-independent items attribute resources when listen_port == ssl_port but ssl = false Testing for warnings not yet implemented in classes
Skipped: Not yet implemented
|