hammer_cli_foreman 2.5.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes.md +31 -1
- data/lib/hammer_cli_foreman/architecture.rb +5 -5
- data/lib/hammer_cli_foreman/associating_commands.rb +0 -24
- data/lib/hammer_cli_foreman/bookmark.rb +5 -5
- data/lib/hammer_cli_foreman/combination.rb +3 -13
- data/lib/hammer_cli_foreman/command_extensions/domain.rb +20 -0
- data/lib/hammer_cli_foreman/command_extensions/subnet.rb +25 -10
- data/lib/hammer_cli_foreman/command_extensions/user.rb +9 -5
- data/lib/hammer_cli_foreman/command_extensions.rb +1 -2
- data/lib/hammer_cli_foreman/commands.rb +3 -11
- data/lib/hammer_cli_foreman/compute_attribute.rb +1 -1
- data/lib/hammer_cli_foreman/compute_profile.rb +5 -5
- data/lib/hammer_cli_foreman/compute_resource/libvirt.rb +4 -2
- data/lib/hammer_cli_foreman/compute_resource/vmware.rb +4 -2
- data/lib/hammer_cli_foreman/compute_resource.rb +1 -0
- data/lib/hammer_cli_foreman/domain.rb +5 -28
- data/lib/hammer_cli_foreman/filter.rb +3 -3
- data/lib/hammer_cli_foreman/host.rb +1 -35
- data/lib/hammer_cli_foreman/hostgroup.rb +14 -58
- data/lib/hammer_cli_foreman/hosts/common_update_options.rb +8 -30
- data/lib/hammer_cli_foreman/id_resolver.rb +7 -68
- data/lib/hammer_cli_foreman/location.rb +0 -6
- data/lib/hammer_cli_foreman/mail_notification.rb +2 -2
- data/lib/hammer_cli_foreman/model.rb +5 -5
- data/lib/hammer_cli_foreman/operating_system.rb +10 -10
- data/lib/hammer_cli_foreman/option_builders.rb +65 -53
- data/lib/hammer_cli_foreman/option_sources/id_params.rb +41 -11
- data/lib/hammer_cli_foreman/option_sources/ids_params.rb +39 -7
- data/lib/hammer_cli_foreman/option_sources.rb +0 -1
- data/lib/hammer_cli_foreman/organization.rb +0 -6
- data/lib/hammer_cli_foreman/references.rb +0 -16
- data/lib/hammer_cli_foreman/settings.rb +3 -3
- data/lib/hammer_cli_foreman/smart_proxy.rb +7 -57
- data/lib/hammer_cli_foreman/template.rb +3 -15
- data/lib/hammer_cli_foreman/user.rb +5 -4
- data/lib/hammer_cli_foreman/usergroup.rb +5 -5
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/lib/hammer_cli_foreman.rb +0 -21
- data/lib/minitest/coverage_reporter.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/data/3.1/foreman_api.json +1 -0
- data/test/functional/architecture_test.rb +6 -4
- data/test/functional/bookmark_test.rb +3 -1
- data/test/functional/compute_attribute_test.rb +20 -20
- data/test/functional/compute_profile_test.rb +3 -1
- data/test/functional/domain/create_test.rb +91 -0
- data/test/functional/domain/update_test.rb +90 -0
- data/test/functional/host_test.rb +34 -1
- data/test/functional/hostgroup/create_test.rb +11 -117
- data/test/functional/hostgroup/update_test.rb +11 -79
- data/test/functional/location_test.rb +0 -3
- data/test/functional/mail_notification_test.rb +3 -1
- data/test/functional/model_test.rb +3 -1
- data/test/functional/operating_system_test.rb +3 -1
- data/test/functional/personal_access_token_test.rb +4 -4
- data/test/functional/settings_test.rb +4 -4
- data/test/functional/template_test.rb +76 -49
- data/test/functional/user_mail_notification_test.rb +3 -3
- data/test/functional/usergroup_test.rb +3 -1
- data/test/test_helper.rb +1 -1
- data/test/unit/apipie_resource_mock.rb +1 -39
- data/test/unit/architecture_test.rb +10 -10
- data/test/unit/bookmark_test.rb +10 -14
- data/test/unit/commands_test.rb +1 -2
- data/test/unit/compute_profile_test.rb +10 -10
- data/test/unit/helpers/command.rb +0 -8
- data/test/unit/host_test.rb +14 -61
- data/test/unit/hostgroup_test.rb +7 -26
- data/test/unit/id_resolver_test.rb +0 -28
- data/test/unit/mail_notification_test.rb +4 -4
- data/test/unit/model_test.rb +47 -47
- data/test/unit/operating_system_test.rb +10 -16
- data/test/unit/option_builders_test.rb +88 -83
- data/test/unit/settings_test.rb +4 -4
- data/test/unit/smart_proxy_test.rb +0 -12
- data/test/unit/usergroup_test.rb +10 -10
- metadata +70 -84
- data/lib/hammer_cli_foreman/command_extensions/puppet_environment.rb +0 -29
- data/lib/hammer_cli_foreman/command_extensions/puppet_environments.rb +0 -29
- data/lib/hammer_cli_foreman/config_group.rb +0 -45
- data/lib/hammer_cli_foreman/option_sources/puppet_environment_params.rb +0 -59
- data/lib/hammer_cli_foreman/puppet_class.rb +0 -61
- data/lib/hammer_cli_foreman/puppet_environment.rb +0 -65
- data/lib/hammer_cli_foreman/smart_class_parameter.rb +0 -189
- data/test/functional/config_group_test.rb +0 -50
- data/test/functional/proxy_test.rb +0 -86
- data/test/functional/smart_class_parameter_test.rb +0 -97
- data/test/unit/config_group_test.rb +0 -82
- data/test/unit/puppet_class_test.rb +0 -72
- data/test/unit/puppet_environment_test.rb +0 -114
- data/test/unit/smart_class_parameter_test.rb +0 -113
@@ -209,7 +209,9 @@ describe HammerCLIForeman::ForemanOptionBuilder do
|
|
209
209
|
end
|
210
210
|
|
211
211
|
context "dependent searchables options expansion" do
|
212
|
-
let(:option_switches)
|
212
|
+
let(:option_switches) do
|
213
|
+
container.build(@build_options.merge(command: Class.new(HammerCLIForeman::Command))).map(&:switches)
|
214
|
+
end
|
213
215
|
|
214
216
|
before :each do
|
215
217
|
container.builders = [
|
@@ -218,51 +220,51 @@ describe HammerCLIForeman::ForemanOptionBuilder do
|
|
218
220
|
]
|
219
221
|
end
|
220
222
|
|
221
|
-
it
|
222
|
-
@build_options = {:
|
223
|
+
it 'does not filter searchable builders by default' do
|
224
|
+
@build_options = { expand: {} }
|
223
225
|
_(option_switches).must_equal [
|
224
|
-
[
|
225
|
-
[
|
226
|
-
[
|
227
|
-
[
|
228
|
-
[
|
229
|
-
[
|
226
|
+
['--user-id'],
|
227
|
+
['--user'],
|
228
|
+
['--user-label'],
|
229
|
+
['--post-id'],
|
230
|
+
['--post'],
|
231
|
+
['--post-label']
|
230
232
|
]
|
231
233
|
end
|
232
234
|
|
233
|
-
it
|
234
|
-
@build_options = {:
|
235
|
+
it 'adds dependent searchable builders on explicit requirement' do
|
236
|
+
@build_options = { expand: { including: %i[posts comments] } }
|
235
237
|
_(option_switches).must_equal [
|
236
|
-
[
|
237
|
-
[
|
238
|
-
[
|
239
|
-
[
|
240
|
-
[
|
241
|
-
[
|
242
|
-
[
|
243
|
-
[
|
244
|
-
[
|
238
|
+
['--user-id'],
|
239
|
+
['--user'],
|
240
|
+
['--user-label'],
|
241
|
+
['--post-id'],
|
242
|
+
['--post'],
|
243
|
+
['--post-label'],
|
244
|
+
['--comment-id'],
|
245
|
+
['--comment'],
|
246
|
+
['--comment-label']
|
245
247
|
]
|
246
248
|
end
|
247
249
|
|
248
|
-
it
|
249
|
-
@build_options = {:
|
250
|
+
it 'filters dependent searchable builders on explicit requirement' do
|
251
|
+
@build_options = { expand: { except: [:users] } }
|
250
252
|
_(option_switches).must_equal [
|
251
|
-
[
|
252
|
-
[
|
253
|
-
[
|
253
|
+
['--post-id'],
|
254
|
+
['--post'],
|
255
|
+
['--post-label']
|
254
256
|
]
|
255
257
|
end
|
256
258
|
|
257
|
-
it
|
258
|
-
@build_options = {:
|
259
|
+
it 'specifies custom set of dependent searchable builders on explicit requirement' do
|
260
|
+
@build_options = { expand: { only: %i[comments users] } }
|
259
261
|
_(option_switches).must_equal [
|
260
|
-
[
|
261
|
-
[
|
262
|
-
[
|
263
|
-
[
|
264
|
-
[
|
265
|
-
[
|
262
|
+
['--user-id'],
|
263
|
+
['--user'],
|
264
|
+
['--user-label'],
|
265
|
+
['--comment-id'],
|
266
|
+
['--comment'],
|
267
|
+
['--comment-label']
|
266
268
|
]
|
267
269
|
end
|
268
270
|
end
|
@@ -327,7 +329,7 @@ describe HammerCLIForeman::DependentSearchablesOptionBuilder do
|
|
327
329
|
let(:resource) { api.resource(:users) }
|
328
330
|
let(:searchables) { FakeSearchables.new(["name", "label", "uuid"]) }
|
329
331
|
let(:builder) { HammerCLIForeman::DependentSearchablesOptionBuilder.new(resource, searchables) }
|
330
|
-
let(:builder_params) { {} }
|
332
|
+
let(:builder_params) { { command: Class.new(HammerCLIForeman::Command) } }
|
331
333
|
let(:options) { builder.build(builder_params) }
|
332
334
|
|
333
335
|
describe "empty searchables" do
|
@@ -339,41 +341,40 @@ describe HammerCLIForeman::DependentSearchablesOptionBuilder do
|
|
339
341
|
end
|
340
342
|
end
|
341
343
|
|
342
|
-
describe
|
343
|
-
|
344
|
-
it "creates correct switches" do
|
344
|
+
describe 'multiple searchables' do
|
345
|
+
it 'creates correct switches' do
|
345
346
|
_(options.map(&:switches)).must_equal [
|
346
|
-
[
|
347
|
-
[
|
348
|
-
[
|
349
|
-
[
|
347
|
+
['--user-id'], # main option from API docs
|
348
|
+
['--user'], # additional option
|
349
|
+
['--user-label'], # other options with suffixes
|
350
|
+
['--user-uuid']
|
350
351
|
]
|
351
352
|
end
|
352
353
|
|
353
|
-
it
|
354
|
-
_(options.map(&:type)).must_equal [
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
354
|
+
it 'creates correct option types' do
|
355
|
+
_(options.map(&:type)).must_equal %w[
|
356
|
+
USER_ID
|
357
|
+
USER_NAME
|
358
|
+
USER_LABEL
|
359
|
+
USER_UUID
|
359
360
|
]
|
360
361
|
end
|
361
362
|
|
362
|
-
it
|
363
|
+
it 'creates correct descriptions' do
|
363
364
|
_(options.map(&:description)).must_equal [
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
365
|
+
'DESC',
|
366
|
+
'Search by name',
|
367
|
+
'Search by label',
|
368
|
+
'Search by uuid'
|
368
369
|
]
|
369
370
|
end
|
370
371
|
|
371
|
-
it
|
372
|
-
_(options.map(&:read_method)).must_equal [
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
372
|
+
it 'creates correct attribute readers' do
|
373
|
+
_(options.map(&:read_method)).must_equal %w[
|
374
|
+
option_user_id
|
375
|
+
option_user_name
|
376
|
+
option_user_label
|
377
|
+
option_user_uuid
|
377
378
|
]
|
378
379
|
end
|
379
380
|
|
@@ -385,44 +386,48 @@ describe HammerCLIForeman::DependentSearchablesOptionBuilder do
|
|
385
386
|
|
386
387
|
describe "aliasing resource names" do
|
387
388
|
|
388
|
-
let(:builder_params)
|
389
|
+
let(:builder_params) do
|
390
|
+
{
|
391
|
+
resource_mapping: { user: :usr },
|
392
|
+
command: Class.new(HammerCLIForeman::Command)
|
393
|
+
}
|
394
|
+
end
|
389
395
|
|
390
|
-
it
|
396
|
+
it 'renames options' do
|
391
397
|
_(options.map(&:switches)).must_equal [
|
392
|
-
[
|
393
|
-
[
|
394
|
-
[
|
395
|
-
[
|
398
|
+
['--usr-id'], # parent option id
|
399
|
+
['--usr'], # additional option
|
400
|
+
['--usr-label'], # other options with suffixes
|
401
|
+
['--usr-uuid']
|
396
402
|
]
|
397
403
|
end
|
398
404
|
|
399
|
-
it
|
400
|
-
_(options.map(&:type)).must_equal [
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
+
it 'renames option types' do
|
406
|
+
_(options.map(&:type)).must_equal %w[
|
407
|
+
USR_ID
|
408
|
+
USR_NAME
|
409
|
+
USR_LABEL
|
410
|
+
USR_UUID
|
405
411
|
]
|
406
412
|
end
|
407
413
|
|
408
|
-
it
|
409
|
-
_(options.map(&:attribute_name)).must_equal [
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
+
it 'keeps option accessor the same' do
|
415
|
+
_(options.map(&:attribute_name)).must_equal %w[
|
416
|
+
option_user_id
|
417
|
+
option_user_name
|
418
|
+
option_user_label
|
419
|
+
option_user_uuid
|
414
420
|
]
|
415
421
|
end
|
416
422
|
end
|
417
423
|
|
418
|
-
describe
|
419
|
-
|
420
|
-
it "uses descriptions from the action" do
|
424
|
+
describe 'resources with id parameter in show action' do
|
425
|
+
it 'uses descriptions from the action' do
|
421
426
|
_(options.map(&:description)).must_equal [
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
427
|
+
'DESC',
|
428
|
+
'Search by name',
|
429
|
+
'Search by label',
|
430
|
+
'Search by uuid'
|
426
431
|
]
|
427
432
|
end
|
428
433
|
end
|
data/test/unit/settings_test.rb
CHANGED
@@ -18,8 +18,8 @@ describe HammerCLIForeman::Settings do
|
|
18
18
|
context "parameters" do
|
19
19
|
it_should_accept "no arguments"
|
20
20
|
it_should_accept_search_params
|
21
|
-
|
22
|
-
|
21
|
+
it_should_accept 'organization', ['--organization-id=1']
|
22
|
+
it_should_accept 'location', ['--location-id=1']
|
23
23
|
end
|
24
24
|
|
25
25
|
context "output" do
|
@@ -40,8 +40,8 @@ describe HammerCLIForeman::Settings do
|
|
40
40
|
context "parameters" do
|
41
41
|
it_should_accept "name", ["--name=setting1", "--value=setting2"]
|
42
42
|
it_should_accept "id", ["--id=1", "--value=setting2"]
|
43
|
-
|
44
|
-
|
43
|
+
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
44
|
+
it_should_accept 'location', %w[--id=1 --location-id=1]
|
45
45
|
end
|
46
46
|
|
47
47
|
end
|
@@ -90,18 +90,6 @@ describe HammerCLIForeman::SmartProxy do
|
|
90
90
|
|
91
91
|
end
|
92
92
|
|
93
|
-
context "ImportPuppetClassesCommand" do
|
94
|
-
|
95
|
-
let(:cmd) { HammerCLIForeman::SmartProxy::ImportPuppetClassesCommand.new("", ctx) }
|
96
|
-
|
97
|
-
context "parameters" do
|
98
|
-
it_should_accept "id, environment-id and dryrun", ["--id=1", "--environment-id=1", "--dryrun"]
|
99
|
-
# it_should_fail_with "id missing", []
|
100
|
-
# TODO: temporarily disabled, parameters are checked in the id resolver
|
101
|
-
end
|
102
|
-
|
103
|
-
end
|
104
|
-
|
105
93
|
context "RefreshFeaturesCommand" do
|
106
94
|
|
107
95
|
let(:cmd) { HammerCLIForeman::SmartProxy::RefreshFeaturesCommand.new("", ctx) }
|
data/test/unit/usergroup_test.rb
CHANGED
@@ -18,8 +18,8 @@ describe HammerCLIForeman::Usergroup do
|
|
18
18
|
context "parameters" do
|
19
19
|
it_should_accept "no arguments"
|
20
20
|
it_should_accept_search_params
|
21
|
-
|
22
|
-
|
21
|
+
it_should_accept 'organization', ['--organization-id=1']
|
22
|
+
it_should_accept 'location', ['--location-id=1']
|
23
23
|
end
|
24
24
|
|
25
25
|
context "output" do
|
@@ -37,8 +37,8 @@ describe HammerCLIForeman::Usergroup do
|
|
37
37
|
context "parameters" do
|
38
38
|
it_should_accept "id", ["--id=1"]
|
39
39
|
it_should_accept "name", ["--name=ug"]
|
40
|
-
|
41
|
-
|
40
|
+
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
41
|
+
it_should_accept 'location', %w[--id=1 --location-id=1]
|
42
42
|
end
|
43
43
|
|
44
44
|
context "output" do
|
@@ -62,8 +62,8 @@ describe HammerCLIForeman::Usergroup do
|
|
62
62
|
context "parameters" do
|
63
63
|
it_should_accept "name", ["--name=ug"]
|
64
64
|
it_should_accept "name, role ids, user group ids and user ids", ["--name=ug", "--role-ids=1,2,3", "--user-group-ids=1,2,3", "--user-ids=1,2,3"]
|
65
|
-
|
66
|
-
|
65
|
+
it_should_accept 'organization', %w[--name=ug --organization-id=1]
|
66
|
+
it_should_accept 'location', %w[--name=ug --location-id=1]
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -74,8 +74,8 @@ describe HammerCLIForeman::Usergroup do
|
|
74
74
|
context "parameters" do
|
75
75
|
it_should_accept "name", ["--name=ug"]
|
76
76
|
it_should_accept "id", ["--id=1"]
|
77
|
-
|
78
|
-
|
77
|
+
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
78
|
+
it_should_accept 'location', %w[--id=1 --location-id=1]
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
@@ -88,8 +88,8 @@ describe HammerCLIForeman::Usergroup do
|
|
88
88
|
it_should_accept "id", ["--id=1"]
|
89
89
|
it_should_accept "name and new name", ["--name=ug", "--new-name=ug2"]
|
90
90
|
it_should_accept "id, new name, role ids, user group ids and user ids", ["--id=1", "--new-name=ug", "--role-ids=1,2,3", "--user-group-ids=1,2,3", "--user-ids=1,2,3"]
|
91
|
-
|
92
|
-
|
91
|
+
it_should_accept 'organization', %w[--id=1 --organization-id=1]
|
92
|
+
it_should_accept 'location', %w[--id=1 --location-id=1]
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
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.
|
4
|
+
version: 3.2.0
|
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: 2022-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hammer_cli
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.1.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.1.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: apipie-bindings
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,13 +81,13 @@ executables: []
|
|
81
81
|
extensions: []
|
82
82
|
extra_rdoc_files:
|
83
83
|
- doc/configuration.md
|
84
|
-
- doc/developer_docs.md
|
85
|
-
- doc/host_create.md
|
86
84
|
- doc/name_id_resolution.md
|
87
85
|
- doc/option_builder.md
|
86
|
+
- doc/using_hammer_cli_foreman_command.md
|
87
|
+
- doc/developer_docs.md
|
88
|
+
- doc/host_create.md
|
88
89
|
- doc/plugin.md
|
89
90
|
- doc/testing.md
|
90
|
-
- doc/using_hammer_cli_foreman_command.md
|
91
91
|
- doc/release_notes.md
|
92
92
|
- README.md
|
93
93
|
files:
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/hammer_cli_foreman/bookmark.rb
|
124
124
|
- lib/hammer_cli_foreman/combination.rb
|
125
125
|
- lib/hammer_cli_foreman/command_extensions.rb
|
126
|
+
- lib/hammer_cli_foreman/command_extensions/domain.rb
|
126
127
|
- lib/hammer_cli_foreman/command_extensions/fields.rb
|
127
128
|
- lib/hammer_cli_foreman/command_extensions/hosts.rb
|
128
129
|
- lib/hammer_cli_foreman/command_extensions/hosts/help.rb
|
@@ -130,8 +131,6 @@ files:
|
|
130
131
|
- lib/hammer_cli_foreman/command_extensions/hosts/help/interfaces.rb
|
131
132
|
- lib/hammer_cli_foreman/command_extensions/option_sources.rb
|
132
133
|
- lib/hammer_cli_foreman/command_extensions/ping.rb
|
133
|
-
- lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
|
134
|
-
- lib/hammer_cli_foreman/command_extensions/puppet_environments.rb
|
135
134
|
- lib/hammer_cli_foreman/command_extensions/status.rb
|
136
135
|
- lib/hammer_cli_foreman/command_extensions/subnet.rb
|
137
136
|
- lib/hammer_cli_foreman/command_extensions/update_common.rb
|
@@ -151,7 +150,6 @@ files:
|
|
151
150
|
- lib/hammer_cli_foreman/compute_resource/register_compute_resources.rb
|
152
151
|
- lib/hammer_cli_foreman/compute_resource/utils.rb
|
153
152
|
- lib/hammer_cli_foreman/compute_resource/vmware.rb
|
154
|
-
- lib/hammer_cli_foreman/config_group.rb
|
155
153
|
- lib/hammer_cli_foreman/config_report.rb
|
156
154
|
- lib/hammer_cli_foreman/defaults.rb
|
157
155
|
- lib/hammer_cli_foreman/dependency_resolver.rb
|
@@ -182,7 +180,6 @@ files:
|
|
182
180
|
- lib/hammer_cli_foreman/option_sources/id_params.rb
|
183
181
|
- lib/hammer_cli_foreman/option_sources/ids_params.rb
|
184
182
|
- lib/hammer_cli_foreman/option_sources/new_params.rb
|
185
|
-
- lib/hammer_cli_foreman/option_sources/puppet_environment_params.rb
|
186
183
|
- lib/hammer_cli_foreman/option_sources/referenced_resource_id_params.rb
|
187
184
|
- lib/hammer_cli_foreman/option_sources/self_param.rb
|
188
185
|
- lib/hammer_cli_foreman/option_sources/user_params.rb
|
@@ -195,8 +192,6 @@ files:
|
|
195
192
|
- lib/hammer_cli_foreman/partition_table.rb
|
196
193
|
- lib/hammer_cli_foreman/personal_access_token.rb
|
197
194
|
- lib/hammer_cli_foreman/ping.rb
|
198
|
-
- lib/hammer_cli_foreman/puppet_class.rb
|
199
|
-
- lib/hammer_cli_foreman/puppet_environment.rb
|
200
195
|
- lib/hammer_cli_foreman/realm.rb
|
201
196
|
- lib/hammer_cli_foreman/references.rb
|
202
197
|
- lib/hammer_cli_foreman/registration.rb
|
@@ -205,7 +200,6 @@ files:
|
|
205
200
|
- lib/hammer_cli_foreman/role.rb
|
206
201
|
- lib/hammer_cli_foreman/sessions.rb
|
207
202
|
- lib/hammer_cli_foreman/settings.rb
|
208
|
-
- lib/hammer_cli_foreman/smart_class_parameter.rb
|
209
203
|
- lib/hammer_cli_foreman/smart_proxy.rb
|
210
204
|
- lib/hammer_cli_foreman/ssh_keys.rb
|
211
205
|
- lib/hammer_cli_foreman/status.rb
|
@@ -249,6 +243,7 @@ files:
|
|
249
243
|
- test/data/2.1/foreman_api.json
|
250
244
|
- test/data/2.4/foreman_api.json
|
251
245
|
- test/data/2.5/foreman_api.json
|
246
|
+
- test/data/3.1/foreman_api.json
|
252
247
|
- test/data/README.md
|
253
248
|
- test/functional/architecture_test.rb
|
254
249
|
- test/functional/associating_commands_test.rb
|
@@ -259,7 +254,8 @@ files:
|
|
259
254
|
- test/functional/compute_attribute_test.rb
|
260
255
|
- test/functional/compute_profile_test.rb
|
261
256
|
- test/functional/compute_resource_test.rb
|
262
|
-
- test/functional/
|
257
|
+
- test/functional/domain/create_test.rb
|
258
|
+
- test/functional/domain/update_test.rb
|
263
259
|
- test/functional/filter_test.rb
|
264
260
|
- test/functional/host_test.rb
|
265
261
|
- test/functional/hostgroup/create_test.rb
|
@@ -273,13 +269,11 @@ files:
|
|
273
269
|
- test/functional/organization_test.rb
|
274
270
|
- test/functional/personal_access_token_test.rb
|
275
271
|
- test/functional/ping_test.rb
|
276
|
-
- test/functional/proxy_test.rb
|
277
272
|
- test/functional/realm_test.rb
|
278
273
|
- test/functional/registration_test.rb
|
279
274
|
- test/functional/report_template_test.rb
|
280
275
|
- test/functional/role_test.rb
|
281
276
|
- test/functional/settings_test.rb
|
282
|
-
- test/functional/smart_class_parameter_test.rb
|
283
277
|
- test/functional/ssh_keys_test.rb
|
284
278
|
- test/functional/status_test.rb
|
285
279
|
- test/functional/subnet/create_test.rb
|
@@ -307,7 +301,6 @@ files:
|
|
307
301
|
- test/unit/common_parameter_test.rb
|
308
302
|
- test/unit/compute_profile_test.rb
|
309
303
|
- test/unit/compute_resource_test.rb
|
310
|
-
- test/unit/config_group_test.rb
|
311
304
|
- test/unit/config_report_test.rb
|
312
305
|
- test/unit/data/test_api.json
|
313
306
|
- test/unit/defaults_test.rb
|
@@ -337,13 +330,10 @@ files:
|
|
337
330
|
- test/unit/output/formatters_test.rb
|
338
331
|
- test/unit/param_filters_test.rb
|
339
332
|
- test/unit/partition_table_test.rb
|
340
|
-
- test/unit/puppet_class_test.rb
|
341
|
-
- test/unit/puppet_environment_test.rb
|
342
333
|
- test/unit/realm_test.rb
|
343
334
|
- test/unit/role_test.rb
|
344
335
|
- test/unit/sessions_test.rb
|
345
336
|
- test/unit/settings_test.rb
|
346
|
-
- test/unit/smart_class_parameter_test.rb
|
347
337
|
- test/unit/smart_proxy_test.rb
|
348
338
|
- test/unit/subnet_test.rb
|
349
339
|
- test/unit/template_test.rb
|
@@ -392,104 +382,100 @@ test_files:
|
|
392
382
|
- test/data/2.4/foreman_api.json
|
393
383
|
- test/data/2.5/foreman_api.json
|
394
384
|
- test/data/README.md
|
395
|
-
- test/
|
396
|
-
- test/functional/audit_test.rb
|
385
|
+
- test/data/3.1/foreman_api.json
|
397
386
|
- test/functional/auth_source_test.rb
|
398
387
|
- test/functional/commands/list_test.rb
|
399
|
-
- test/functional/
|
400
|
-
- test/functional/compute_resource_test.rb
|
401
|
-
- test/functional/config_group_test.rb
|
402
|
-
- test/functional/filter_test.rb
|
388
|
+
- test/functional/usergroup_test.rb
|
403
389
|
- test/functional/hostgroup/create_test.rb
|
404
390
|
- test/functional/hostgroup/update_test.rb
|
405
|
-
- test/functional/mail_notification_test.rb
|
406
|
-
- test/functional/model_test.rb
|
407
|
-
- test/functional/operating_system_test.rb
|
408
|
-
- test/functional/organization_test.rb
|
409
391
|
- test/functional/personal_access_token_test.rb
|
410
|
-
- test/functional/
|
411
|
-
- test/functional/
|
412
|
-
- test/functional/
|
413
|
-
- test/functional/role_test.rb
|
414
|
-
- test/functional/settings_test.rb
|
415
|
-
- test/functional/smart_class_parameter_test.rb
|
392
|
+
- test/functional/template_test.rb
|
393
|
+
- test/functional/compute_attribute_test.rb
|
394
|
+
- test/functional/model_test.rb
|
416
395
|
- test/functional/ssh_keys_test.rb
|
417
|
-
- test/functional/status_test.rb
|
418
|
-
- test/functional/subnet/create_test.rb
|
419
396
|
- test/functional/subnet/update_test.rb
|
397
|
+
- test/functional/subnet/create_test.rb
|
420
398
|
- test/functional/test_helper.rb
|
399
|
+
- test/functional/filter_test.rb
|
400
|
+
- test/functional/http_proxy_test.rb
|
401
|
+
- test/functional/media_test.rb
|
402
|
+
- test/functional/registration_test.rb
|
421
403
|
- test/functional/user_mail_notification_test.rb
|
422
|
-
- test/functional/
|
404
|
+
- test/functional/domain/create_test.rb
|
405
|
+
- test/functional/domain/update_test.rb
|
406
|
+
- test/functional/operating_system_test.rb
|
407
|
+
- test/functional/compute_resource_test.rb
|
408
|
+
- test/functional/organization_test.rb
|
409
|
+
- test/functional/report_template_test.rb
|
410
|
+
- test/functional/user_test.rb
|
423
411
|
- test/functional/virtual_machine_test.rb
|
424
|
-
- test/functional/architecture_test.rb
|
425
|
-
- test/functional/bookmark_test.rb
|
426
|
-
- test/functional/compute_profile_test.rb
|
427
412
|
- test/functional/host_test.rb
|
428
|
-
- test/functional/
|
413
|
+
- test/functional/mail_notification_test.rb
|
414
|
+
- test/functional/bookmark_test.rb
|
429
415
|
- test/functional/location_test.rb
|
430
|
-
- test/functional/
|
416
|
+
- test/functional/associating_commands_test.rb
|
417
|
+
- test/functional/audit_test.rb
|
418
|
+
- test/functional/ping_test.rb
|
431
419
|
- test/functional/realm_test.rb
|
432
|
-
- test/functional/
|
433
|
-
- test/functional/
|
434
|
-
- test/functional/
|
435
|
-
- test/
|
420
|
+
- test/functional/role_test.rb
|
421
|
+
- test/functional/status_test.rb
|
422
|
+
- test/functional/architecture_test.rb
|
423
|
+
- test/functional/compute_profile_test.rb
|
424
|
+
- test/functional/settings_test.rb
|
425
|
+
- test/unit/api/void_auth_test.rb
|
436
426
|
- test/unit/api/interactive_basic_auth_test.rb
|
437
427
|
- test/unit/api/oauth/oauth_authentication_code_grant_test.rb
|
438
428
|
- test/unit/api/oauth/oauth_password_grant_test.rb
|
439
429
|
- test/unit/api/session_authenticator_wrapper_test.rb
|
440
|
-
- test/unit/
|
441
|
-
- test/unit/
|
442
|
-
- test/unit/apipie_resource_mock.rb
|
443
|
-
- test/unit/architecture_test.rb
|
444
|
-
- test/unit/audit_test.rb
|
445
|
-
- test/unit/auth_source_external.rb
|
430
|
+
- test/unit/test_output_adapter.rb
|
431
|
+
- test/unit/settings_test.rb
|
446
432
|
- test/unit/auth_source_ldap_test.rb
|
447
|
-
- test/unit/bookmark_test.rb
|
448
|
-
- test/unit/commands_test.rb
|
449
|
-
- test/unit/common_parameter_test.rb
|
450
|
-
- test/unit/compute_profile_test.rb
|
451
|
-
- test/unit/compute_resource_test.rb
|
452
|
-
- test/unit/config_group_test.rb
|
453
433
|
- test/unit/config_report_test.rb
|
434
|
+
- test/unit/compute_resource_test.rb
|
454
435
|
- test/unit/data/test_api.json
|
455
436
|
- test/unit/defaults_test.rb
|
456
|
-
- test/unit/dependency_resolver_test.rb
|
457
|
-
- test/unit/domain_test.rb
|
458
|
-
- test/unit/exception_handler_test.rb
|
459
437
|
- test/unit/external_usergroup_test.rb
|
460
438
|
- test/unit/fact_test.rb
|
461
|
-
- test/unit/filter_test.rb
|
462
|
-
- test/unit/helpers/command.rb
|
463
439
|
- test/unit/helpers/fake_searchables.rb
|
464
440
|
- test/unit/helpers/resource_disabled.rb
|
465
|
-
- test/unit/
|
441
|
+
- test/unit/helpers/command.rb
|
466
442
|
- test/unit/image_test.rb
|
467
443
|
- test/unit/location_test.rb
|
468
|
-
- test/unit/mail_notification_test.rb
|
469
|
-
- test/unit/media_test.rb
|
470
444
|
- test/unit/messages_test.rb
|
471
|
-
- test/unit/model_test.rb
|
472
|
-
- test/unit/operating_system_test.rb
|
473
|
-
- test/unit/option_builders_test.rb
|
474
445
|
- test/unit/option_sources/id_params_test.rb
|
475
446
|
- test/unit/option_sources/ids_params_test.rb
|
476
447
|
- test/unit/organization_test.rb
|
477
448
|
- test/unit/output/formatters_test.rb
|
478
|
-
- test/unit/
|
479
|
-
- test/unit/partition_table_test.rb
|
480
|
-
- test/unit/puppet_class_test.rb
|
449
|
+
- test/unit/common_parameter_test.rb
|
481
450
|
- test/unit/realm_test.rb
|
482
|
-
- test/unit/
|
483
|
-
- test/unit/
|
484
|
-
- test/unit/settings_test.rb
|
451
|
+
- test/unit/compute_profile_test.rb
|
452
|
+
- test/unit/host_test.rb
|
485
453
|
- test/unit/subnet_test.rb
|
486
|
-
- test/unit/template_test.rb
|
487
454
|
- test/unit/test_helper.rb
|
488
|
-
- test/unit/test_output_adapter.rb
|
489
455
|
- test/unit/user_test.rb
|
490
|
-
- test/unit/
|
491
|
-
- test/unit/
|
456
|
+
- test/unit/param_filters_test.rb
|
457
|
+
- test/unit/partition_table_test.rb
|
458
|
+
- test/unit/role_test.rb
|
492
459
|
- test/unit/hostgroup_test.rb
|
493
|
-
- test/unit/
|
494
|
-
- test/unit/
|
460
|
+
- test/unit/id_resolver_test.rb
|
461
|
+
- test/unit/mail_notification_test.rb
|
462
|
+
- test/unit/model_test.rb
|
463
|
+
- test/unit/operating_system_test.rb
|
464
|
+
- test/unit/option_builders_test.rb
|
465
|
+
- test/unit/audit_test.rb
|
466
|
+
- test/unit/auth_source_external.rb
|
467
|
+
- test/unit/dependency_resolver_test.rb
|
468
|
+
- test/unit/exception_handler_test.rb
|
469
|
+
- test/unit/filter_test.rb
|
470
|
+
- test/unit/media_test.rb
|
471
|
+
- test/unit/sessions_test.rb
|
472
|
+
- test/unit/apipie_resource_mock.rb
|
473
|
+
- test/unit/commands_test.rb
|
474
|
+
- test/unit/api_test.rb
|
475
|
+
- test/unit/architecture_test.rb
|
495
476
|
- test/unit/smart_proxy_test.rb
|
477
|
+
- test/unit/usergroup_test.rb
|
478
|
+
- test/unit/template_test.rb
|
479
|
+
- test/unit/bookmark_test.rb
|
480
|
+
- test/unit/domain_test.rb
|
481
|
+
- test/test_helper.rb
|