Skip to content

Commit a6a921e

Browse files
authored
Merge pull request puppetlabs#153 from lucywyman/release-1.3.0
(maint) Release prep for 1.3.0
2 parents ec5f5ff + 2640783 commit a6a921e

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [v1.3.0](https://github.com/puppetlabs/puppetlabs-service/tree/v1.3.0) (2020-07-24)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-service/compare/v1.2.0...v1.3.0)
8+
9+
### Added
10+
11+
- (maint) Add enable and disable action for \*nix Bolt task [\#151](https://github.com/puppetlabs/puppetlabs-service/pull/151)
12+
513
## [v1.2.0](https://github.com/puppetlabs/puppetlabs-service/tree/v1.2.0) (2019-12-12)
614

715
[Full Changelog](https://github.com/puppetlabs/puppetlabs-service/compare/v1.1.0...v1.2.0)

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-service",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"author": "puppetlabs",
55
"summary": "Tasks that manipulate a service",
66
"license": "Apache-2.0",

spec/acceptance/linux_spec.rb

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# run a test task
22
require 'spec_helper_acceptance'
33

4-
sysv = (os[:family] == 'redhat' && os[:release].to_i == 6) ||
5-
(os[:family] == 'debian' && os[:release].to_i == 14)
64
describe 'linux service task', unless: os[:family] == 'windows' do
75
package_to_use = if os[:family] == 'redhat'
86
'httpd'
@@ -38,23 +36,7 @@
3836
it "restart #{package_to_use}" do
3937
result = run_bolt_task('service::linux', 'action' => 'restart', 'name' => package_to_use)
4038
expect(result.exit_code).to eq(0)
41-
expect(result['result']).to include('status' => %r{ActiveState=active|running})
42-
end
43-
end
44-
45-
describe 'enable action', unless: sysv do
46-
it "enable #{package_to_use}" do
47-
result = run_bolt_task('service::linux', 'action' => 'enable', 'name' => package_to_use)
48-
expect(result.exit_code).to eq(0)
49-
expect(result['result']).to include('enabled' => 'enabled')
50-
end
51-
end
52-
53-
describe 'disable action', unless: sysv do
54-
it "disable #{package_to_use}" do
55-
result = run_bolt_task('service::linux', 'action' => 'disable', 'name' => package_to_use)
56-
expect(result.exit_code).to eq(0)
57-
expect(result['result']).to include('enabled' => 'disabled')
39+
expect(result['result']).to include('status' => %r{ActiveState=active|running|reloading})
5840
end
5941
end
6042

@@ -86,7 +68,7 @@
8668
params = { 'action' => 'restart', 'name' => package_to_use }
8769
result = run_bolt_task('service', params, inventory_file: temp_inventory_file)
8870
expect(result.exit_code).to eq(0)
89-
expect(result['result']).to include('status' => %r{ActiveState=active|running})
71+
expect(result['result']).to include('status' => %r{ActiveState=active|running|reloading})
9072
end
9173
end
9274
end

0 commit comments

Comments
 (0)