Skip to content

Commit

Permalink
test(inspec): improve to work on amazon as well
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Aug 28, 2019
1 parent 1b0d032 commit 59684c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Override by OS
case os[:name]
when 'arch','redhat', 'centos', 'fedora'
when 'arch','redhat', 'centos', 'fedora', 'amazon'
conf_user = 'named'
conf_group = 'named'
keys_group = 'root'
Expand Down Expand Up @@ -48,7 +48,7 @@
case os[:name]
when 'arch', 'ubuntu'
log_directory = '/var/log/named'
when 'redhat', 'centos', 'fedora'
when 'redhat', 'centos', 'fedora', 'amazon'
log_directory = '/var/named/data'
when 'suse', 'opensuse'
log_directory = '/var/log'
Expand Down Expand Up @@ -101,7 +101,7 @@
# RHEL: Doesn't use .options and has rfc1912.zones
# Debian: Uses .options
case os[:name]
when 'arch','redhat', 'centos', 'fedora'
when 'arch','redhat', 'centos', 'fedora', 'amazon'
control 'File ' + config do
title 'should exist'
describe file(config) do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
bind-tools
dnssec-tools
)
when 'redhat', 'centos', 'fedora'
when 'redhat', 'centos', 'fedora', 'amazon'
os_packages = %w(bind)
when 'suse', 'opensuse'
os_packages = %w(bind)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/controls/service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

case os[:name]
when 'arch','redhat', 'centos', 'fedora'
when 'arch','redhat', 'centos', 'fedora', 'amazon'
service = 'named'
when 'suse', 'opensuse'
service = 'named'
Expand Down
4 changes: 2 additions & 2 deletions test/integration/default/controls/zones_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Override by OS
case os[:name]
when 'arch','redhat', 'centos', 'fedora'
when 'arch','redhat', 'centos', 'fedora', 'amazon'
conf_user = 'named'
conf_group = 'named'
keys_group = 'root'
Expand All @@ -35,7 +35,7 @@
case os[:name]
when 'arch', 'ubuntu'
log_directory = '/var/log/named'
when 'redhat', 'centos', 'fedora'
when 'redhat', 'centos', 'fedora', 'amazon'
log_directory = '/var/named/data'
end

Expand Down

0 comments on commit 59684c6

Please sign in to comment.