hammer_cli_foreman 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/release_notes.md +3 -0
- data/lib/hammer_cli_foreman/host.rb +3 -2
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/test/functional/host_test.rb +14 -0
- data/test/unit/host_test.rb +0 -23
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3602bf5d1cda5fed0ace9196b7aa5dbd0622079db5ab77f252cd134d0e05d5d
|
4
|
+
data.tar.gz: e341fb0eb8b606c519199c36fc1a14a520661a010f62bd946cb0b3c394fdd267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f923de0d55217bf30a6c6d12afe19e5b806b360892f1d429d18aa39bab2443151c7317ed5d39f979af8c934edd8134d1767efacfe52a353b9546a29f1983de
|
7
|
+
data.tar.gz: 833444008fa0f26d711708980a65f39e8cc485409acdb6c23e6afff8998645c2f2c34acd3cf70b84638fe0569c299ee11a5aabb2ba916d5524abcc19b9c78be2
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 2.3.1 (2021-01-27)
|
4
|
+
* Deprecating puppetrun command ([PR #554](https://github.com/theforeman/hammer-cli-foreman/pull/554)), [#31536](http://projects.theforeman.org/issues/31536)
|
5
|
+
|
3
6
|
### 2.3.0 (2020-11-03)
|
4
7
|
* Hammer ping skip authentication ([PR #550](https://github.com/theforeman/hammer-cli-foreman/pull/550)), [#31140](http://projects.theforeman.org/issues/31140)
|
5
8
|
* Return non-zero exit code if services failed, [#30496](http://projects.theforeman.org/issues/30496)
|
@@ -176,8 +176,9 @@ module HammerCLIForeman
|
|
176
176
|
resource :puppet_hosts
|
177
177
|
action :puppetrun
|
178
178
|
|
179
|
-
def
|
180
|
-
|
179
|
+
def execute
|
180
|
+
warn _('The puppetrun feature has been removed, however you can use the Remote Execution Plugin to run Puppet commands')
|
181
|
+
HammerCLI::EX_SOFTWARE
|
181
182
|
end
|
182
183
|
|
183
184
|
build_options
|
@@ -502,3 +502,17 @@ describe 'disassociate host from vm' do
|
|
502
502
|
assert_cmd(expected_result, result)
|
503
503
|
end
|
504
504
|
end
|
505
|
+
|
506
|
+
describe 'run puppetrun for host' do
|
507
|
+
let(:cmd) { ['host', 'puppetrun'] }
|
508
|
+
let(:params) { ['--id=1'] }
|
509
|
+
|
510
|
+
it "does nothing for puppetrun" do
|
511
|
+
expected_result = CommandExpectation.new
|
512
|
+
expected_result.expected_err = "The puppetrun feature has been removed, however you can use the Remote Execution Plugin to run Puppet commands\n"
|
513
|
+
expected_result.expected_exit_code = HammerCLI::EX_SOFTWARE
|
514
|
+
|
515
|
+
result = run_cmd(cmd)
|
516
|
+
assert_cmd(expected_result, result)
|
517
|
+
end
|
518
|
+
end
|
data/test/unit/host_test.rb
CHANGED
@@ -132,29 +132,6 @@ describe HammerCLIForeman::Host do
|
|
132
132
|
end
|
133
133
|
|
134
134
|
|
135
|
-
context "PuppetRunCommand" do
|
136
|
-
|
137
|
-
let(:cmd) { HammerCLIForeman::Host::PuppetRunCommand.new("", ctx) }
|
138
|
-
|
139
|
-
context "parameters" do
|
140
|
-
it_should_accept "name", ["--name=host"]
|
141
|
-
it_should_accept "id", ["--id=1"]
|
142
|
-
# it_should_fail_with "no arguments"
|
143
|
-
# TODO: temporarily disabled, parameters are checked in the id resolver
|
144
|
-
|
145
|
-
end
|
146
|
-
|
147
|
-
context "output" do
|
148
|
-
with_params ["--id=1"] do
|
149
|
-
it "should inform that puppet was triggered" do
|
150
|
-
cmd.stubs(:context).returns(ctx.update(:adapter => :test))
|
151
|
-
_(proc { cmd.run(with_params) }).must_output "Puppet run triggered\n"
|
152
|
-
end
|
153
|
-
end
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
|
158
135
|
context "ConfigReportsCommand" do
|
159
136
|
before do
|
160
137
|
ResourceMocks.mock_action_call(:config_reports, :index, [])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomáš Strachota
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hammer_cli
|