Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Lint #8

Merged
merged 6 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
8 tests/010_basic.pp
@@ -1,6 +1,6 @@
-notice("test: test rule")
+notice('test: test rule')
iptables {
- "test rule":
- source => "0.0.0.0",
- destination => "0.0.0.0",
+ 'test rule':
+ source => '0.0.0.0',
+ destination => '0.0.0.0',
}
View
24 tests/020_icmp_types.pp
@@ -2,19 +2,19 @@
#
# http://github.com/kbarber/puppet-iptables/issues#issue/1
#
-notice("Test icmp symbolic name mapping")
-iptables {"icmp_type":
- source => "0.0.0.0",
- destination => "0.0.0.0",
- proto => "icmp",
- icmp => "echo-reply"
+notice('Test icmp symbolic name mapping')
+iptables {'icmp_type':
+ source => '0.0.0.0',
+ destination => '0.0.0.0',
+ proto => 'icmp',
+ icmp => 'echo-reply',
}
-notice("(assertFail) Test an invalid icmp type")
-iptables {"icmp_type_invalid":
- source => "0.0.0.0",
- destination => "0.0.0.0",
- proto => "icmp",
- icmp => "foo"
+notice('(assertFail) Test an invalid icmp type')
+iptables {'icmp_type_invalid':
+ source => '0.0.0.0',
+ destination => '0.0.0.0',
+ proto => 'icmp',
+ icmp => 'foo',
}
View
10 tests/021_icmp_any.pp
@@ -1,7 +1,7 @@
# Regression test: http://github.com/kbarber/puppet-iptables/issues#issue/2
-notice("Test icmp without a type")
-iptables {"icmp_type_any":
- source => "0.0.0.0",
- destination => "0.0.0.0",
- proto => "icmp",
+notice('Test icmp without a type')
+iptables {'icmp_type_any':
+ source => '0.0.0.0',
+ destination => '0.0.0.0',
+ proto => 'icmp',
}
View
16 tests/030_multiple_sources.pp
@@ -1,13 +1,13 @@
# Test for multiple sources, originally added here:
iptables {
- "multiple sources 1":
- source => ["1.2.3.4/32","4.3.2.1/32"],
- dport => 15,
- jump => "ACCEPT";
+ 'multiple sources 1':
+ source => ['1.2.3.4/32','4.3.2.1/32'],
+ dport => 15,
+ jump => 'ACCEPT';
}
iptables {
- "multiple sources 2":
- source => ["1.2.3.5/32","5.3.2.1/32"],
- dport => 15,
- jump => "ACCEPT";
+ 'multiple sources 2':
+ source => ['1.2.3.5/32','5.3.2.1/32'],
+ dport => 15,
+ jump => 'ACCEPT';
}
View
8 tests/040_state_types.pp
@@ -1,7 +1,7 @@
# Test state types
iptables {
- "state types 1":
- source => "0.0.0.0",
- state => ["NEW","RELATED"],
- jump => "ACCEPT"
+ 'state types 1':
+ source => '0.0.0.0',
+ state => ['NEW','RELATED'],
+ jump => 'ACCEPT',
}
View
12 tests/050_sport_and_dport.pp
@@ -1,7 +1,7 @@
-# Test sport and dport
-iptables { "sport and dport":
- source => "0.0.0.0",
- sport => "14",
- destination => "0.0.0.0",
- dport => "15",
+# Test sport and dport
+iptables { 'sport and dport':
+ source => '0.0.0.0',
+ sport => '14',
+ destination => '0.0.0.0',
+ dport => '15',
}
Something went wrong with that request. Please try again.