hammer_cli_foreman 2.0.1 → 2.1.3

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/doc/developer_docs.md +1 -0
  3. data/doc/plugin.md +22 -0
  4. data/doc/release_notes.md +35 -2
  5. data/lib/hammer_cli_foreman.rb +9 -1
  6. data/lib/hammer_cli_foreman/api/connection.rb +1 -18
  7. data/lib/hammer_cli_foreman/api/oauth/authentication_code_grant.rb +7 -4
  8. data/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb +0 -1
  9. data/lib/hammer_cli_foreman/associating_commands.rb +33 -5
  10. data/lib/hammer_cli_foreman/audit.rb +7 -0
  11. data/lib/hammer_cli_foreman/auth.rb +10 -10
  12. data/lib/hammer_cli_foreman/bookmark.rb +50 -0
  13. data/lib/hammer_cli_foreman/command_extensions.rb +2 -0
  14. data/lib/hammer_cli_foreman/command_extensions/puppet_environment.rb +13 -7
  15. data/lib/hammer_cli_foreman/command_extensions/puppet_environments.rb +13 -7
  16. data/lib/hammer_cli_foreman/command_extensions/subnet.rb +25 -0
  17. data/lib/hammer_cli_foreman/command_extensions/user.rb +17 -0
  18. data/lib/hammer_cli_foreman/commands.rb +14 -9
  19. data/lib/hammer_cli_foreman/compute_resource.rb +15 -0
  20. data/lib/hammer_cli_foreman/compute_resource/ec2.rb +11 -0
  21. data/lib/hammer_cli_foreman/compute_resource/gce.rb +9 -0
  22. data/lib/hammer_cli_foreman/compute_resource/libvirt.rb +11 -0
  23. data/lib/hammer_cli_foreman/compute_resource/openstack.rb +7 -0
  24. data/lib/hammer_cli_foreman/compute_resource/ovirt.rb +21 -9
  25. data/lib/hammer_cli_foreman/compute_resource/vmware.rb +15 -2
  26. data/lib/hammer_cli_foreman/hostgroup.rb +11 -19
  27. data/lib/hammer_cli_foreman/hosts/common_update_options.rb +32 -10
  28. data/lib/hammer_cli_foreman/id_resolver.rb +12 -11
  29. data/lib/hammer_cli_foreman/mail_notification.rb +31 -0
  30. data/lib/hammer_cli_foreman/operating_system.rb +1 -1
  31. data/lib/hammer_cli_foreman/option_builders.rb +70 -48
  32. data/lib/hammer_cli_foreman/option_sources.rb +1 -0
  33. data/lib/hammer_cli_foreman/option_sources/referenced_resource_id_params.rb +47 -0
  34. data/lib/hammer_cli_foreman/sessions.rb +1 -3
  35. data/lib/hammer_cli_foreman/subnet.rb +26 -15
  36. data/lib/hammer_cli_foreman/task_helper.rb +180 -0
  37. data/lib/hammer_cli_foreman/user.rb +7 -17
  38. data/lib/hammer_cli_foreman/user_mail_notification.rb +51 -0
  39. data/lib/hammer_cli_foreman/version.rb +1 -1
  40. data/lib/hammer_cli_foreman/virtual_machine.rb +55 -0
  41. data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  42. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  43. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  44. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  45. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  46. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  47. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  48. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  49. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  50. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  51. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  52. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  53. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  54. data/test/data/2.1/foreman_api.json +1 -0
  55. data/test/functional/associating_commands_test.rb +134 -30
  56. data/test/functional/bookmark_test.rb +193 -0
  57. data/test/functional/host_test.rb +27 -1
  58. data/test/functional/http_proxy_test.rb +1 -4
  59. data/test/functional/mail_notification_test.rb +57 -0
  60. data/test/functional/subnet/create_test.rb +28 -5
  61. data/test/functional/template_test.rb +2 -2
  62. data/test/functional/user_mail_notification_test.rb +89 -0
  63. data/test/functional/virtual_machine_test.rb +129 -0
  64. data/test/test_helper.rb +1 -1
  65. data/test/unit/audit_test.rb +1 -0
  66. data/test/unit/sessions_test.rb +2 -13
  67. metadata +59 -40
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.0.1
4
+ version: 2.1.3
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: 2020-02-25 00:00:00.000000000 Z
12
+ date: 2020-09-04 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: 2.0.0
20
+ version: 2.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: 2.0.0
27
+ version: 2.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: apipie-bindings
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -82,11 +82,12 @@ extensions: []
82
82
  extra_rdoc_files:
83
83
  - doc/configuration.md
84
84
  - doc/developer_docs.md
85
+ - doc/host_create.md
85
86
  - doc/name_id_resolution.md
86
87
  - doc/option_builder.md
87
- - doc/testing.md
88
+ - doc/plugin.md
88
89
  - doc/using_hammer_cli_foreman_command.md
89
- - doc/host_create.md
90
+ - doc/testing.md
90
91
  - doc/release_notes.md
91
92
  - README.md
92
93
  files:
@@ -98,6 +99,7 @@ files:
98
99
  - doc/host_create.md
99
100
  - doc/name_id_resolution.md
100
101
  - doc/option_builder.md
102
+ - doc/plugin.md
101
103
  - doc/release_notes.md
102
104
  - doc/testing.md
103
105
  - doc/using_hammer_cli_foreman_command.md
@@ -118,6 +120,7 @@ files:
118
120
  - lib/hammer_cli_foreman/auth_source_external.rb
119
121
  - lib/hammer_cli_foreman/auth_source_ldap.rb
120
122
  - lib/hammer_cli_foreman/authenticate/login.rb
123
+ - lib/hammer_cli_foreman/bookmark.rb
121
124
  - lib/hammer_cli_foreman/combination.rb
122
125
  - lib/hammer_cli_foreman/command_extensions.rb
123
126
  - lib/hammer_cli_foreman/command_extensions/fields.rb
@@ -130,6 +133,8 @@ files:
130
133
  - lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
131
134
  - lib/hammer_cli_foreman/command_extensions/puppet_environments.rb
132
135
  - lib/hammer_cli_foreman/command_extensions/status.rb
136
+ - lib/hammer_cli_foreman/command_extensions/subnet.rb
137
+ - lib/hammer_cli_foreman/command_extensions/user.rb
133
138
  - lib/hammer_cli_foreman/commands.rb
134
139
  - lib/hammer_cli_foreman/common_parameter.rb
135
140
  - lib/hammer_cli_foreman/compute_attribute.rb
@@ -165,6 +170,7 @@ files:
165
170
  - lib/hammer_cli_foreman/interface.rb
166
171
  - lib/hammer_cli_foreman/location.rb
167
172
  - lib/hammer_cli_foreman/logger.rb
173
+ - lib/hammer_cli_foreman/mail_notification.rb
168
174
  - lib/hammer_cli_foreman/media.rb
169
175
  - lib/hammer_cli_foreman/model.rb
170
176
  - lib/hammer_cli_foreman/openid_connect.rb
@@ -176,6 +182,7 @@ files:
176
182
  - lib/hammer_cli_foreman/option_sources/ids_params.rb
177
183
  - lib/hammer_cli_foreman/option_sources/new_params.rb
178
184
  - lib/hammer_cli_foreman/option_sources/puppet_environment_params.rb
185
+ - lib/hammer_cli_foreman/option_sources/referenced_resource_id_params.rb
179
186
  - lib/hammer_cli_foreman/option_sources/self_param.rb
180
187
  - lib/hammer_cli_foreman/option_sources/user_params.rb
181
188
  - lib/hammer_cli_foreman/organization.rb
@@ -201,12 +208,15 @@ files:
201
208
  - lib/hammer_cli_foreman/ssh_keys.rb
202
209
  - lib/hammer_cli_foreman/status.rb
203
210
  - lib/hammer_cli_foreman/subnet.rb
211
+ - lib/hammer_cli_foreman/task_helper.rb
204
212
  - lib/hammer_cli_foreman/template.rb
205
213
  - lib/hammer_cli_foreman/testing/api_expectations.rb
206
214
  - lib/hammer_cli_foreman/trend.rb
207
215
  - lib/hammer_cli_foreman/user.rb
216
+ - lib/hammer_cli_foreman/user_mail_notification.rb
208
217
  - lib/hammer_cli_foreman/usergroup.rb
209
218
  - lib/hammer_cli_foreman/version.rb
219
+ - lib/hammer_cli_foreman/virtual_machine.rb
210
220
  - locale/ca/LC_MESSAGES/hammer-cli-foreman.mo
211
221
  - locale/de/LC_MESSAGES/hammer-cli-foreman.mo
212
222
  - locale/en/LC_MESSAGES/hammer-cli-foreman.mo
@@ -233,10 +243,12 @@ files:
233
243
  - test/data/1.22/foreman_api.json
234
244
  - test/data/1.24/foreman_api.json
235
245
  - test/data/2.0/foreman_api.json
246
+ - test/data/2.1/foreman_api.json
236
247
  - test/data/README.md
237
248
  - test/functional/associating_commands_test.rb
238
249
  - test/functional/audit_test.rb
239
250
  - test/functional/auth_source_test.rb
251
+ - test/functional/bookmark_test.rb
240
252
  - test/functional/commands/list_test.rb
241
253
  - test/functional/compute_attribute_test.rb
242
254
  - test/functional/compute_profile_test.rb
@@ -247,6 +259,7 @@ files:
247
259
  - test/functional/hostgroup/update_test.rb
248
260
  - test/functional/http_proxy_test.rb
249
261
  - test/functional/location_test.rb
262
+ - test/functional/mail_notification_test.rb
250
263
  - test/functional/organization_test.rb
251
264
  - test/functional/personal_access_token_test.rb
252
265
  - test/functional/ping_test.rb
@@ -262,7 +275,9 @@ files:
262
275
  - test/functional/template_test.rb
263
276
  - test/functional/test_helper.rb
264
277
  - test/functional/trend_test.rb
278
+ - test/functional/user_mail_notification_test.rb
265
279
  - test/functional/user_test.rb
280
+ - test/functional/virtual_machine_test.rb
266
281
  - test/test_helper.rb
267
282
  - test/unit/api/interactive_basic_auth_test.rb
268
283
  - test/unit/api/oauth/oauth_authentication_code_grant_test.rb
@@ -340,8 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
355
  - !ruby/object:Gem::Version
341
356
  version: '0'
342
357
  requirements: []
343
- rubyforge_project:
344
- rubygems_version: 2.7.10
358
+ rubygems_version: 3.1.2
345
359
  signing_key:
346
360
  specification_version: 4
347
361
  summary: Foreman commands for Hammer
@@ -358,92 +372,97 @@ test_files:
358
372
  - test/data/1.21/foreman_api.json
359
373
  - test/data/1.22/foreman_api.json
360
374
  - test/data/1.24/foreman_api.json
361
- - test/data/README.md
362
375
  - test/data/2.0/foreman_api.json
363
- - test/functional/audit_test.rb
376
+ - test/data/2.1/foreman_api.json
377
+ - test/data/README.md
378
+ - test/functional/associating_commands_test.rb
364
379
  - test/functional/auth_source_test.rb
380
+ - test/functional/bookmark_test.rb
365
381
  - test/functional/commands/list_test.rb
366
382
  - test/functional/compute_attribute_test.rb
367
383
  - test/functional/compute_profile_test.rb
384
+ - test/functional/compute_resource_test.rb
368
385
  - test/functional/filter_test.rb
369
386
  - test/functional/hostgroup/create_test.rb
370
387
  - test/functional/hostgroup/update_test.rb
371
388
  - test/functional/location_test.rb
389
+ - test/functional/mail_notification_test.rb
372
390
  - test/functional/organization_test.rb
373
391
  - test/functional/personal_access_token_test.rb
392
+ - test/functional/ping_test.rb
374
393
  - test/functional/proxy_test.rb
394
+ - test/functional/report_template_test.rb
395
+ - test/functional/role_test.rb
375
396
  - test/functional/settings_test.rb
397
+ - test/functional/smart_class_parameter_test.rb
376
398
  - test/functional/ssh_keys_test.rb
377
- - test/functional/subnet/update_test.rb
399
+ - test/functional/status_test.rb
378
400
  - test/functional/subnet/create_test.rb
401
+ - test/functional/subnet/update_test.rb
402
+ - test/functional/template_test.rb
379
403
  - test/functional/test_helper.rb
380
- - test/functional/user_test.rb
381
- - test/functional/compute_resource_test.rb
382
- - test/functional/ping_test.rb
383
- - test/functional/status_test.rb
404
+ - test/functional/virtual_machine_test.rb
405
+ - test/functional/user_mail_notification_test.rb
384
406
  - test/functional/http_proxy_test.rb
385
- - test/functional/report_template_test.rb
386
- - test/functional/role_test.rb
387
- - test/functional/smart_class_parameter_test.rb
388
- - test/functional/trend_test.rb
389
- - test/functional/template_test.rb
390
- - test/functional/associating_commands_test.rb
407
+ - test/functional/audit_test.rb
391
408
  - test/functional/host_test.rb
392
- - test/unit/api/void_auth_test.rb
393
- - test/unit/api/interactive_basic_auth_test.rb
409
+ - test/functional/trend_test.rb
410
+ - test/functional/user_test.rb
394
411
  - test/unit/api/oauth/oauth_authentication_code_grant_test.rb
395
412
  - test/unit/api/oauth/oauth_password_grant_test.rb
396
413
  - test/unit/api/session_authenticator_wrapper_test.rb
397
- - test/unit/api_test.rb
414
+ - test/unit/api/void_auth_test.rb
415
+ - test/unit/api/interactive_basic_auth_test.rb
398
416
  - test/unit/architecture_test.rb
399
- - test/unit/audit_test.rb
417
+ - test/unit/auth_source_external.rb
400
418
  - test/unit/auth_source_ldap_test.rb
401
- - test/unit/common_parameter_test.rb
402
419
  - test/unit/compute_resource_test.rb
403
420
  - test/unit/config_group_test.rb
404
421
  - test/unit/config_report_test.rb
405
422
  - test/unit/data/test_api.json
406
423
  - test/unit/defaults_test.rb
407
- - test/unit/dependency_resolver_test.rb
408
424
  - test/unit/domain_test.rb
409
- - test/unit/exception_handler_test.rb
410
425
  - test/unit/external_usergroup_test.rb
411
426
  - test/unit/fact_test.rb
412
- - test/unit/helpers/command.rb
427
+ - test/unit/filter_test.rb
413
428
  - test/unit/helpers/fake_searchables.rb
429
+ - test/unit/helpers/command.rb
414
430
  - test/unit/helpers/resource_disabled.rb
415
- - test/unit/id_resolver_test.rb
431
+ - test/unit/hostgroup_test.rb
416
432
  - test/unit/image_test.rb
417
433
  - test/unit/location_test.rb
418
434
  - test/unit/media_test.rb
419
435
  - test/unit/messages_test.rb
420
436
  - test/unit/model_test.rb
421
437
  - test/unit/operating_system_test.rb
422
- - test/unit/option_builders_test.rb
423
438
  - test/unit/option_sources/id_params_test.rb
424
439
  - test/unit/option_sources/ids_params_test.rb
425
440
  - test/unit/organization_test.rb
426
441
  - test/unit/output/formatters_test.rb
427
- - test/unit/param_filters_test.rb
428
442
  - test/unit/partition_table_test.rb
443
+ - test/unit/puppet_class_test.rb
429
444
  - test/unit/puppet_environment_test.rb
430
445
  - test/unit/realm_test.rb
431
446
  - test/unit/role_test.rb
432
447
  - test/unit/settings_test.rb
448
+ - test/unit/smart_class_parameter_test.rb
433
449
  - test/unit/smart_proxy_test.rb
434
450
  - test/unit/subnet_test.rb
435
451
  - test/unit/test_helper.rb
452
+ - test/unit/test_output_adapter.rb
436
453
  - test/unit/user_test.rb
437
454
  - test/unit/usergroup_test.rb
438
- - test/unit/filter_test.rb
439
- - test/unit/hostgroup_test.rb
440
- - test/unit/smart_class_parameter_test.rb
441
- - test/unit/test_output_adapter.rb
442
- - test/unit/commands_test.rb
443
- - test/unit/auth_source_external.rb
444
- - test/unit/sessions_test.rb
445
455
  - test/unit/apipie_resource_mock.rb
456
+ - test/unit/dependency_resolver_test.rb
457
+ - test/unit/option_builders_test.rb
446
458
  - test/unit/host_test.rb
447
- - test/unit/puppet_class_test.rb
459
+ - test/unit/commands_test.rb
460
+ - test/unit/common_parameter_test.rb
461
+ - test/unit/exception_handler_test.rb
462
+ - test/unit/id_resolver_test.rb
463
+ - test/unit/param_filters_test.rb
464
+ - test/unit/sessions_test.rb
448
465
  - test/unit/template_test.rb
466
+ - test/unit/audit_test.rb
467
+ - test/unit/api_test.rb
449
468
  - test/test_helper.rb