Skip to content

Commit d529b61

Browse files
committed
Merge pull request #545 from jonnytpuppet/clusterip
Comment out spec test for el7 due to unknown interface name
2 parents d5a0cb7 + e91257f commit d529b61

1 file changed

Lines changed: 28 additions & 32 deletions

File tree

spec/acceptance/firewall_clusterip_spec.rb

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,37 @@
77
shell('ip6tables --flush; ip6tables -t nat --flush; ip6tables -t mangle --flush')
88
end
99

10-
# Have to comment out el-7 as the interface name is inconsistent
11-
if default['platform'] !~ /el-7/
12-
describe 'clusterip' do
13-
context 'cluster ipv4 test' do
14-
it 'applies' do
15-
pp = <<-EOS
16-
class { '::firewall': }
17-
firewall {
18-
'830 - clusterip test':
19-
chain => 'FORWARD',
20-
jump => 'CLUSTERIP',
21-
destination => '1.1.1.1',
22-
iniface => 'eth0',
23-
clusterip_new => true,
24-
clusterip_hashmode => "sourceip",
25-
clusterip_clustermac => "01:00:5E:00:00:00",
26-
clusterip_total_nodes => "2",
27-
clusterip_local_node => "1",
28-
clusterip_hash_init => "1337",
29-
}
30-
EOS
10+
# Have to comment out el-7 as the interface name is inconsistent
11+
describe 'clusterip' do
12+
context 'cluster ipv4 test' do
13+
it 'applies' do
14+
pending("MODULES-2124 should be resolved for clusterip RHEL7 support") if default['platform'] =~ /el-7/
15+
pp = <<-EOS
16+
class { '::firewall': }
17+
firewall {
18+
'830 - clusterip test':
19+
chain => 'FORWARD',
20+
jump => 'CLUSTERIP',
21+
destination => '1.1.1.1',
22+
iniface => 'eth0',
23+
clusterip_new => true,
24+
clusterip_hashmode => "sourceip",
25+
clusterip_clustermac => "01:00:5E:00:00:00",
26+
clusterip_total_nodes => "2",
27+
clusterip_local_node => "1",
28+
clusterip_hash_init => "1337",
29+
}
30+
EOS
3131

32-
apply_manifest(pp, :catch_failures => true)
33-
end
32+
apply_manifest(pp, :catch_failures => true)
33+
end
3434

35-
it 'should contain the rule' do
36-
shell('iptables-save') do |r|
37-
expect(r.stdout).to match(/-A FORWARD -d (1.1.1.1\/32|1.1.1.1) -i eth0 -p tcp -m comment --comment "830 - clusterip test" -j CLUSTERIP --new --hashmode sourceip --clustermac 01:00:5E:00:00:00 --total-nodes 2 --local-node 1 --hash-init 1337/)
38-
end
39-
end
35+
it 'should contain the rule' do
36+
pending("MODULES-2124 should be resolved for clusterip RHEL7 support") if default['platform'] =~ /el-7/
37+
shell('iptables-save') do |r|
38+
expect(r.stdout).to match(/-A FORWARD -d (1.1.1.1\/32|1.1.1.1) -i eth0 -p tcp -m comment --comment "830 - clusterip test" -j CLUSTERIP --new --hashmode sourceip --clustermac 01:00:5E:00:00:00 --total-nodes 2 --local-node 1 --hash-init 1337/)
4039
end
4140
end
42-
else
43-
pending("MODULES-2124 should be resolved for clusterip RHEL7 support") do
44-
true.should be(true)
45-
end
4641
end
42+
end
4743
end

0 commit comments

Comments
 (0)