summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/resource/windows_firewall_rule_spec.rb78
1 files changed, 0 insertions, 78 deletions
diff --git a/spec/unit/resource/windows_firewall_rule_spec.rb b/spec/unit/resource/windows_firewall_rule_spec.rb
index 3907a8a699..f4dfea1e0a 100644
--- a/spec/unit/resource/windows_firewall_rule_spec.rb
+++ b/spec/unit/resource/windows_firewall_rule_spec.rb
@@ -502,82 +502,4 @@ describe Chef::Resource::WindowsFirewallRule do
end
end
end
-
- describe "#is_set_properly?" do
- context "#TCP" do
- it "icmp_type is nil" do
- expect(provider.is_set_properly?(nil, "TCP")).to eql(false)
- end
-
- it "icmp_type is empty" do
- expect(provider.is_set_properly?("", "TCP")).to eql(false)
- end
-
- it "icmp_type is 'Any'" do
- expect(provider.is_set_properly?("Any", "TCP")).to eql(true)
- end
-
- it "icmp_type is 123 as String" do
- expect(provider.is_set_properly?("123", "TCP")).to eql(false)
- end
-
- it "icmp_type is 123 as Integer" do
- expect(provider.is_set_properly?(123, "TCP")).to eql(false)
- end
-
- it "icmp_type is 345 as String" do
- expect(provider.is_set_properly?("345", "TCP")).to eql(false)
- end
-
- it "icmp_type is 345 as Integer" do
- expect(provider.is_set_properly?(345, "TCP")).to eql(false)
- end
-
- it "icmp_type is '1:3' as code pair" do
- expect(provider.is_set_properly?("1:3", "TCP")).to eql(false)
- end
-
- it "icmp_type is '123:456' as code pair out of range" do
- expect(provider.is_set_properly?("123:456", "TCP")).to eql(false)
- end
- end
-
- context "#ICMPv6" do
- it "icmp_type is nil" do
- expect(provider.is_set_properly?(nil, "ICMPv6")).to eql(false)
- end
-
- it "icmp_type is empty" do
- expect(provider.is_set_properly?("", "ICMPv6")).to eql(false)
- end
-
- it "icmp_type is 'Any'" do
- expect(provider.is_set_properly?("Any", "ICMPv6")).to eql(true)
- end
-
- it "icmp_type is 123 as String" do
- expect(provider.is_set_properly?("123", "ICMPv6")).to eql(true)
- end
-
- it "icmp_type is 123 as Integer" do
- expect(provider.is_set_properly?(123, "ICMPv6")).to eql(true)
- end
-
- it "icmp_type is 345 as String" do
- expect(provider.is_set_properly?("345", "ICMPv6")).to eql(false)
- end
-
- it "icmp_type is 345 as Integer" do
- expect(provider.is_set_properly?(345, "ICMPv6")).to eql(false)
- end
-
- it "icmp_type is '1:3' as code pair" do
- expect(provider.is_set_properly?("1:3", "ICMPv6")).to eql(true)
- end
-
- it "icmp_type is '123:456' as code pair out of range" do
- expect(provider.is_set_properly?("123:456", "ICMPv6")).to eql(false)
- end
- end
- end
end