diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-10-19 10:44:03 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-10-19 10:44:03 -0700 |
commit | ab2f5df879c78edfae47f5e10ae9aa65e35ca68d (patch) | |
tree | c7ebc046b6f685109ae69c7e3ba2247e3f99d1f7 | |
parent | cbc38a447baca083725b905bb84fe96c5eadd1a6 (diff) | |
download | chef-ab2f5df879c78edfae47f5e10ae9aa65e35ca68d.tar.gz |
Remove unit tests for ancient Debian / Ubuntu
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/provider/ifconfig/debian.rb | 2 | ||||
-rw-r--r-- | spec/unit/resource/ifconfig_spec.rb | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/lib/chef/provider/ifconfig/debian.rb b/lib/chef/provider/ifconfig/debian.rb index 8715172622..baab06128b 100644 --- a/lib/chef/provider/ifconfig/debian.rb +++ b/lib/chef/provider/ifconfig/debian.rb @@ -80,7 +80,7 @@ iface <%= new_resource.device %> <%= new_resource.family %> static protected def enforce_interfaces_dot_d_sanity - # on ubuntu 18.04 there's no interfaces file and it uses interfaces.d by default + # on ubuntu 18.04+ there's no interfaces file and it uses interfaces.d by default return if ::File.directory?(INTERFACES_DOT_D_DIR) && !::File.exist?(INTERFACES_FILE) # create /etc/network/interfaces.d via dir resource (to get reporting, etc) diff --git a/spec/unit/resource/ifconfig_spec.rb b/spec/unit/resource/ifconfig_spec.rb index 3221d0b864..bc018baee6 100644 --- a/spec/unit/resource/ifconfig_spec.rb +++ b/spec/unit/resource/ifconfig_spec.rb @@ -90,19 +90,11 @@ describe Chef::Resource::Ifconfig do it_should_behave_like "being a platform based on RedHat", "redhat", "4.0" end - describe "when it is an old Debian platform" do - it_should_behave_like "being a platform based on an old Debian", "debian", "6.0" - end - - describe "when it is a new Debian platform" do + describe "when it is a Debian platform" do it_should_behave_like "being a platform based on a recent Debian", "debian", "7.0" end - describe "when it is an old Ubuntu platform" do - it_should_behave_like "being a platform based on an old Debian", "ubuntu", "11.04" - end - - describe "when it is a new Ubuntu platform" do + describe "when it is a Ubuntu platform" do it_should_behave_like "being a platform based on a recent Debian", "ubuntu", "11.10" end |