summaryrefslogtreecommitdiff
path: root/spec/unit/provider/service
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-28 13:18:04 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-28 13:18:04 -0800
commit4f1171efa9e5d8c6c07b795619c9c5cd46163b47 (patch)
tree27350bd9c29debe28f8ee7dabb770a31e8539129 /spec/unit/provider/service
parent0d300feeeb305ab0caf487311b8a9933fe7d08f5 (diff)
downloadchef-4f1171efa9e5d8c6c07b795619c9c5cd46163b47.tar.gz
Remove support for macOS < 10.12 in the service resource
There's no reason to perform this check anymore since we only product packages for macOS 10.13 and later. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/provider/service')
-rw-r--r--spec/unit/provider/service/macosx_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/unit/provider/service/macosx_spec.rb b/spec/unit/provider/service/macosx_spec.rb
index 420fd329f6..ef8220b6be 100644
--- a/spec/unit/provider/service/macosx_spec.rb
+++ b/spec/unit/provider/service/macosx_spec.rb
@@ -1,6 +1,7 @@
#
# Author:: Igor Afonov <afonov@gmail.com>
# Copyright:: Copyright 2011-2016, Igor Afonov
+# Copyright:: Copyright 2020, Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -61,16 +62,13 @@ describe Chef::Provider::Service::Macosx do
%w{Daemon Agent}.each do |service_type|
["redis-server", "io.redis.redis-server"].each do |service_name|
- ["10.9", "10.10", "10.11"].each do |platform_version|
+ ["10.10", "10.11"].each do |platform_version|
let(:plist) { "/Library/LaunchDaemons/io.redis.redis-server.plist" }
let(:session) { StringIO.new }
if service_type == "Agent"
let(:plist) { "/Library/LaunchAgents/io.redis.redis-server.plist" }
let(:session) { "-S Aqua " }
let(:su_cmd) { "su -l igor -c" }
- if platform_version == "10.9"
- let(:su_cmd) { "su igor -c" }
- end
end
let(:service_label) { "io.redis.redis-server" }
before do
@@ -92,7 +90,7 @@ describe Chef::Provider::Service::Macosx do
.and_return(double("Status", stdout: plutil_stdout))
end
- context "#{service_name} that is a #{service_type} running Osx #{platform_version}" do
+ context "#{service_name} that is a #{service_type} running macOS #{platform_version}" do
let(:new_resource) { Chef::Resource::MacosxService.new(service_name) }
let!(:current_resource) { Chef::Resource::MacosxService.new(service_name) }