From 3471abbe10201a446294f02bdc621d6d5c7627a7 Mon Sep 17 00:00:00 2001 From: Patrick Schaumburg Date: Wed, 1 Apr 2020 09:24:32 +0200 Subject: remove unused tests Signed-off-by: Patrick Schaumburg --- spec/unit/resource/windows_firewall_rule_spec.rb | 78 ------------------------ 1 file changed, 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 -- cgit v1.2.1