Skip to content

Commit

Permalink
test(config_spec): fix rubocop violations [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 2, 2021
1 parent f562f9f commit fb270d2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# 'FpingLocation=/usr/sbin/fping' (not debian)
# 'Fping6Location=/usr/sbin/fping6' (not debian)

# Note: The file below is a symlink to `/etc/zabbix_server.conf` on Fedora
# NOTE: The file below is a symlink to `/etc/zabbix_server.conf` on Fedora
describe file('/etc/zabbix/zabbix_server.conf') do
it { should be_file }
it { should be_owned_by 'root' }
Expand All @@ -78,17 +78,17 @@
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
its('content') { should include 'global $DB;' }
its('content') { should match(/\$DB\["TYPE"\].*=.*\'MYSQL\';/) }
its('content') { should match(/\$DB\["SERVER"\].*=.*\'localhost';/) }
its('content') { should match(/\$DB\["PORT"\].*=.*\'0\';/) }
its('content') { should match(/\$DB\["DATABASE"\].*=.*\'zabbix\';/) }
its('content') { should match(/\$DB\["USER"\].*=.*\'zabbixuser\';/) }
its('content') { should match(/\$DB\["PASSWORD"\].*=.*\'zabbixpass\';/) }
its('content') { should match(/\$DB\["SCHEMA"\].*=.*\'\';/) }
its('content') { should match(/\$ZBX_SERVER.*=.*\'localhost\';/) }
its('content') { should match(/\$ZBX_SERVER_PORT.*=.*\'10051\';/) }
its('content') { should match(/\$DB\["TYPE"\].*=.*'MYSQL';/) }
its('content') { should match(/\$DB\["SERVER"\].*=.*'localhost';/) }
its('content') { should match(/\$DB\["PORT"\].*=.*'0';/) }
its('content') { should match(/\$DB\["DATABASE"\].*=.*'zabbix';/) }
its('content') { should match(/\$DB\["USER"\].*=.*'zabbixuser';/) }
its('content') { should match(/\$DB\["PASSWORD"\].*=.*'zabbixpass';/) }
its('content') { should match(/\$DB\["SCHEMA"\].*=.*'';/) }
its('content') { should match(/\$ZBX_SERVER.*=.*'localhost';/) }
its('content') { should match(/\$ZBX_SERVER_PORT.*=.*'10051';/) }
its('content') do
should match(/\$ZBX_SERVER_NAME.*=.*\'Zabbix installed with saltstack\';/)
should match(/\$ZBX_SERVER_NAME.*=.*'Zabbix installed with saltstack';/)
end
its('content') { should match(/\$IMAGE_FORMAT_DEFAULT.*=.*IMAGE_FORMAT_PNG;/) }
end
Expand Down

0 comments on commit fb270d2

Please sign in to comment.