From 273caf9b6f42a4127025f9d2d862806653b661c2 Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Sun, 7 Jun 2020 00:49:02 -0300 Subject: [PATCH] fix(test): use specific ip to workaround centos bug Signed-off-by: Felipe Zipitria --- test/integration/default/controls/postfix_spec.rb | 2 +- test/salt/pillar/default.sls | 3 ++- test/salt/pillar/postgrey.sls | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/default/controls/postfix_spec.rb b/test/integration/default/controls/postfix_spec.rb index 1e45a18..a2542d2 100644 --- a/test/integration/default/controls/postfix_spec.rb +++ b/test/integration/default/controls/postfix_spec.rb @@ -38,7 +38,7 @@ its('mynetworks') { should cmp '127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128' } its('mailbox_size_limit') { should cmp '0' } its('recipient_delimiter') { should cmp '+' } - its('inet_interfaces') { should cmp 'all' } + its('inet_interfaces') { should cmp '127.0.0.1' } its('inet_protocols') { should cmp 'all' } its('message_size_limit') { should cmp '41943040' } its('smtpd_recipient_restrictions') do diff --git a/test/salt/pillar/default.sls b/test/salt/pillar/default.sls index 8fd852e..e793b5e 100644 --- a/test/salt/pillar/default.sls +++ b/test/salt/pillar/default.sls @@ -45,7 +45,8 @@ postfix: mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit: 0 recipient_delimiter: + - inet_interfaces: all + # using all has problems in centos with ipv6 + inet_interfaces: 127.0.0.1 inet_protocols: all # Alias diff --git a/test/salt/pillar/postgrey.sls b/test/salt/pillar/postgrey.sls index f127c79..602be0e 100644 --- a/test/salt/pillar/postgrey.sls +++ b/test/salt/pillar/postgrey.sls @@ -50,7 +50,8 @@ postfix: mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit: 0 recipient_delimiter: + - inet_interfaces: all + # using all has problems in centos with ipv6 + inet_interfaces: 127.0.0.1 inet_protocols: all # Alias