feat(redhat): set NAMEDCONF file in sysconfig #156
coqbot-app / GitLab CI job rubocop (pull request)
completed
Sep 23, 2024 in 0s
Test has failed on GitLab CI
This job is allowed to fail.
We show below the last 40 lines of the trace from GitLab (the complete trace is available here).
Details
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:119:11: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
control 'File ' + zones_directory + '/113.0.203.in-addr.arpa' do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:121:19: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
describe file(zones_directory + '/113.0.203.in-addr.arpa') do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:126:37: W: [Correctable] Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the / if it should be a division.
its('content') { should match /^@\ IN\ SOA\ ns1.example.com\ hostmaster.example.com\ \(\n\ \ \ \ 2018073100\ ;\ serial\n\ \ \ \ 12h\ ;\ refresh\n\ \ \ \ 600\ ;\ retry\n\ \ \ \ 2w\ ;\ expiry\n\ \ \ \ 1m\ ;\ nxdomain\ ttl\n\);/ }
^
test/integration/default/controls/zones_spec.rb:126:89: C: [Correctable] Layout/LineLength: Line is too long. [233/88] (https://rubystyle.guide#max-line-length)
its('content') { should match /^@\ IN\ SOA\ ns1.example.com\ hostmaster.example.com\ \(\n\ \ \ \ 2018073100\ ;\ serial\n\ \ \ \ 12h\ ;\ refresh\n\ \ \ \ 600\ ;\ retry\n\ \ \ \ 2w\ ;\ expiry\n\ \ \ \ 1m\ ;\ nxdomain\ ttl\n\);/ }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:137:11: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
control 'File ' + zones_directory + '/100.51.198.in-addr.arpa' do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:139:19: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
describe file(zones_directory + '/100.51.198.in-addr.arpa') do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:144:37: W: [Correctable] Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the / if it should be a division.
its('content') { should match /^@\ IN\ SOA\ ns1.example.net\ hostmaster.example.net\ \(\n\ \ \ \ [0-9]{10}\ ;\ serial\n\ \ \ \ 12h\ ;\ refresh\n\ \ \ \ 600\ ;\ retry\n\ \ \ \ 2w\ ;\ expiry\n\ \ \ \ 1m\ ;\ nxdomain\ ttl\n\);/ }
^
test/integration/default/controls/zones_spec.rb:144:89: C: [Correctable] Layout/LineLength: Line is too long. [232/88] (https://rubystyle.guide#max-line-length)
its('content') { should match /^@\ IN\ SOA\ ns1.example.net\ hostmaster.example.net\ \(\n\ \ \ \ [0-9]{10}\ ;\ serial\n\ \ \ \ 12h\ ;\ refresh\n\ \ \ \ 600\ ;\ retry\n\ \ \ \ 2w\ ;\ expiry\n\ \ \ \ 1m\ ;\ nxdomain\ ttl\n\);/ }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:146:89: C: [Correctable] Layout/LineLength: Line is too long. [110/88] (https://rubystyle.guide#max-line-length)
its('content') { should match %r{^\$INCLUDE\ #{zones_directory}/100\.51\.198\.in-addr\.arpa\.include$} }
^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:151:11: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
control 'File ' + zones_directory + '/100.51.198.in-addr.arpa.include' do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/default/controls/zones_spec.rb:153:19: C: [Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation. (https://rubystyle.guide#string-interpolation)
describe file(zones_directory + '/100.51.198.in-addr.arpa.include') do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 files inspected, 107 offenses detected, 97 offenses autocorrectable
Finished in 0.5221396209999938 seconds
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1
Loading