Allow specifying error_log severity for servers #489
Annotations
10 errors and 10 warnings
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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;\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;\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;
|
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 and Puppet 7.30.0 os-independent items server_header template content when error_log is /path/to/error.log should set error_log
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 and Puppet 7.30.0 os-independent items server_header template content when error_log is ["/path/to/error.log", "syslog:server=localhost"] should allow multiple error_log directives
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;", " error_log syslog:server=localhost;"]
got: []
(compared using ==)
|
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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 ==)
|
spec/defines/resource_server_spec.rb#L421
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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 ==)
|
spec/defines/resource_server_spec.rb#L487
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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;\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;\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;
|
spec/defines/resource_server_spec.rb#L554
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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;\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 on;\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 on;\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,32 @@
-(?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;\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 on;
+ 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 on;
+ 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;
+
|
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 and Puppet 7.30.0 os-independent items server_ssl_header template content when error_log is /path/to/error.log should set error_log
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;"]
got: []
(compared using ==)
|
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 and Puppet 7.30.0 os-independent items server_ssl_header template content when error_log is ["/path/to/error.log", "syslog:server=localhost"] should allow multiple error_log directives
Failure/Error: expect(lines & Array(param[:match])).to eq(Array(param[:match]))
expected: [" error_log /path/to/error.log;", " error_log syslog:server=localhost;"]
got: []
(compared using ==)
|
spec/defines/resource_server_spec.rb#L1135
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.5 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 ==)
|
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on virtuozzolinux-7-x86_64 with Facter 3.14.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
|
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
|
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
|
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
|
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on centos-7-x86_64 with Facter 4.2.2 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
|
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on centos-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
|
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
|
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
|
spec/defines/resource_server_spec.rb#L1475
nginx::resource::server on redhat-7-x86_64 with Facter 4.2.13 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
|
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
|
This job failed
Loading