diff options
author | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-04-01 09:24:32 +0200 |
---|---|---|
committer | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-04-01 09:24:32 +0200 |
commit | 3471abbe10201a446294f02bdc621d6d5c7627a7 (patch) | |
tree | 34af3351d9465466a240576f4fc7be8337416c1e /spec | |
parent | dc39395d4890fddb9996f10d9f05b743c38cf0b7 (diff) | |
download | chef-3471abbe10201a446294f02bdc621d6d5c7627a7.tar.gz |
remove unused tests
Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/windows_firewall_rule_spec.rb | 78 |
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 |