summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-02-12 17:12:46 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-12 21:05:05 -0800
commitc90b1c881bcbba19f5a45a675557f6566b137935 (patch)
tree49b539cbf42926126bf9fea39430816fa25253dd /spec
parent2a8d93f2def9d412171610242c7bb4ac45bce863 (diff)
downloadchef-c90b1c881bcbba19f5a45a675557f6566b137935.tar.gz
Remove an Upstart check for Ubuntu 8.04-9.04legacy_upstart
No need to do this anymore Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/service/upstart_service_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/unit/provider/service/upstart_service_spec.rb b/spec/unit/provider/service/upstart_service_spec.rb
index 20cbef11ce..924ac58551 100644
--- a/spec/unit/provider/service/upstart_service_spec.rb
+++ b/spec/unit/provider/service/upstart_service_spec.rb
@@ -27,7 +27,6 @@ describe Chef::Provider::Service::Upstart do
@node = Chef::Node.new
@node.name("upstarter")
@node.automatic_attrs[:platform] = "ubuntu"
- @node.automatic_attrs[:platform_version] = "9.10"
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(@node, {}, @events)
@@ -36,34 +35,6 @@ describe Chef::Provider::Service::Upstart do
@provider = Chef::Provider::Service::Upstart.new(@new_resource, @run_context)
end
- describe "when first created" do
- before do
- @platform = nil
- end
-
- it "should return /etc/event.d as the upstart job directory when running on Ubuntu 9.04" do
- @node.automatic_attrs[:platform_version] = "9.04"
- # Chef::Platform.stub(:find_platform_and_version).and_return([ "ubuntu", "9.04" ])
- @provider = Chef::Provider::Service::Upstart.new(@new_resource, @run_context)
- expect(@provider.instance_variable_get(:@upstart_job_dir)).to eq("/etc/event.d")
- expect(@provider.instance_variable_get(:@upstart_conf_suffix)).to eq("")
- end
-
- it "should return /etc/init as the upstart job directory when running on Ubuntu 9.10" do
- @node.automatic_attrs[:platform_version] = "9.10"
- @provider = Chef::Provider::Service::Upstart.new(@new_resource, @run_context)
- expect(@provider.instance_variable_get(:@upstart_job_dir)).to eq("/etc/init")
- expect(@provider.instance_variable_get(:@upstart_conf_suffix)).to eq(".conf")
- end
-
- it "should return /etc/init as the upstart job directory by default" do
- @node.automatic_attrs[:platform_version] = "9000"
- @provider = Chef::Provider::Service::Upstart.new(@new_resource, @run_context)
- expect(@provider.instance_variable_get(:@upstart_job_dir)).to eq("/etc/init")
- expect(@provider.instance_variable_get(:@upstart_conf_suffix)).to eq(".conf")
- end
- end
-
describe "load_current_resource" do
before(:each) do
@node.automatic_attrs[:command] = { ps: "ps -ax" }