diff --git a/test/integration/default/controls/command_spec.rb b/test/integration/default/controls/command_spec.rb index 26d7917e..7e6eea3d 100644 --- a/test/integration/default/controls/command_spec.rb +++ b/test/integration/default/controls/command_spec.rb @@ -1,6 +1,6 @@ -# Overide by OS +# Overide by Platform pg_port = '5432' -if os[:family] == 'debian' or os[:name] == 'suse' +if platform[:family] == 'debian' or platform[:family] == 'suse' pg_port = '5433' end diff --git a/test/integration/default/controls/services_spec.rb b/test/integration/default/controls/services_spec.rb index 96e5f938..b2bfe979 100644 --- a/test/integration/default/controls/services_spec.rb +++ b/test/integration/default/controls/services_spec.rb @@ -1,9 +1,9 @@ -# Overide by OS +# Overide by Platform service_name = 'postgresql' pg_port = 5432 -if os[:name] == 'centos' and os[:release].start_with?('6') +if platform[:name] == 'centos' and platform[:release].start_with?('6') service_name = 'postgresql-9.6' -elsif os[:family] == 'debian' or os[:name] == 'suse' +elsif platform[:family] == 'debian' or platform[:family] == 'suse' pg_port = 5433 end