hammer_cli_foreman 3.1.0 → 3.4.0

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/config/foreman.yml +4 -0
  3. data/doc/configuration.md +30 -0
  4. data/doc/release_notes.md +24 -0
  5. data/lib/hammer_cli_foreman/api/authenticator.rb +9 -0
  6. data/lib/hammer_cli_foreman/api/connection.rb +2 -0
  7. data/lib/hammer_cli_foreman/api/negotiate_auth.rb +36 -0
  8. data/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb +6 -2
  9. data/lib/hammer_cli_foreman/api.rb +2 -1
  10. data/lib/hammer_cli_foreman/auth.rb +13 -0
  11. data/lib/hammer_cli_foreman/command_extensions/domain.rb +20 -0
  12. data/lib/hammer_cli_foreman/command_extensions.rb +1 -0
  13. data/lib/hammer_cli_foreman/commands.rb +5 -1
  14. data/lib/hammer_cli_foreman/compute_resource/libvirt.rb +4 -2
  15. data/lib/hammer_cli_foreman/compute_resource/vmware.rb +4 -2
  16. data/lib/hammer_cli_foreman/domain.rb +5 -28
  17. data/lib/hammer_cli_foreman/exception_handler.rb +26 -0
  18. data/lib/hammer_cli_foreman/filter.rb +3 -3
  19. data/lib/hammer_cli_foreman/host.rb +1 -0
  20. data/lib/hammer_cli_foreman/id_resolver.rb +2 -1
  21. data/lib/hammer_cli_foreman/partition_table.rb +30 -0
  22. data/lib/hammer_cli_foreman/report_template.rb +15 -0
  23. data/lib/hammer_cli_foreman/smart_proxy.rb +11 -0
  24. data/lib/hammer_cli_foreman/table_preference.rb +48 -0
  25. data/lib/hammer_cli_foreman/template.rb +30 -0
  26. data/lib/hammer_cli_foreman/user.rb +4 -0
  27. data/lib/hammer_cli_foreman/version.rb +1 -1
  28. data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  29. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  30. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  31. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  32. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  33. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  34. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  35. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  36. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  37. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  38. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  39. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  40. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  41. data/test/data/3.4/foreman_api.json +1 -0
  42. data/test/functional/domain/create_test.rb +91 -0
  43. data/test/functional/domain/update_test.rb +90 -0
  44. data/test/functional/partition_table_test.rb +63 -0
  45. data/test/functional/report_template_test.rb +24 -0
  46. data/test/functional/table_preference_test.rb +100 -0
  47. data/test/functional/template_test.rb +60 -0
  48. data/test/test_helper.rb +1 -1
  49. metadata +58 -45
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Strachota
8
8
  - Martin Bačovský
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-10 00:00:00.000000000 Z
12
+ date: 2022-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hammer_cli
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 3.1.0
20
+ version: 3.3.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: 3.1.0
27
+ version: 3.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: apipie-bindings
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 0.4.0
34
+ version: 0.5.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 0.4.0
41
+ version: 0.5.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rest-client
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -75,12 +75,11 @@ dependencies:
75
75
  version: 2.2.1
76
76
  description: 'Foreman commands for Hammer CLI
77
77
 
78
- '
78
+ '
79
79
  email: tstracho@redhat.com
80
80
  executables: []
81
81
  extensions: []
82
82
  extra_rdoc_files:
83
- - doc/configuration.md
84
83
  - doc/name_id_resolution.md
85
84
  - doc/option_builder.md
86
85
  - doc/using_hammer_cli_foreman_command.md
@@ -88,6 +87,7 @@ extra_rdoc_files:
88
87
  - doc/host_create.md
89
88
  - doc/plugin.md
90
89
  - doc/testing.md
90
+ - doc/configuration.md
91
91
  - doc/release_notes.md
92
92
  - README.md
93
93
  files:
@@ -108,6 +108,7 @@ files:
108
108
  - lib/hammer_cli_foreman/api/authenticator.rb
109
109
  - lib/hammer_cli_foreman/api/connection.rb
110
110
  - lib/hammer_cli_foreman/api/interactive_basic_auth.rb
111
+ - lib/hammer_cli_foreman/api/negotiate_auth.rb
111
112
  - lib/hammer_cli_foreman/api/oauth/authentication_code_grant.rb
112
113
  - lib/hammer_cli_foreman/api/oauth/password_grant.rb
113
114
  - lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb
@@ -123,6 +124,7 @@ files:
123
124
  - lib/hammer_cli_foreman/bookmark.rb
124
125
  - lib/hammer_cli_foreman/combination.rb
125
126
  - lib/hammer_cli_foreman/command_extensions.rb
127
+ - lib/hammer_cli_foreman/command_extensions/domain.rb
126
128
  - lib/hammer_cli_foreman/command_extensions/fields.rb
127
129
  - lib/hammer_cli_foreman/command_extensions/hosts.rb
128
130
  - lib/hammer_cli_foreman/command_extensions/hosts/help.rb
@@ -203,6 +205,7 @@ files:
203
205
  - lib/hammer_cli_foreman/ssh_keys.rb
204
206
  - lib/hammer_cli_foreman/status.rb
205
207
  - lib/hammer_cli_foreman/subnet.rb
208
+ - lib/hammer_cli_foreman/table_preference.rb
206
209
  - lib/hammer_cli_foreman/task_helper.rb
207
210
  - lib/hammer_cli_foreman/template.rb
208
211
  - lib/hammer_cli_foreman/testing/api_expectations.rb
@@ -243,6 +246,7 @@ files:
243
246
  - test/data/2.4/foreman_api.json
244
247
  - test/data/2.5/foreman_api.json
245
248
  - test/data/3.1/foreman_api.json
249
+ - test/data/3.4/foreman_api.json
246
250
  - test/data/README.md
247
251
  - test/functional/architecture_test.rb
248
252
  - test/functional/associating_commands_test.rb
@@ -253,6 +257,8 @@ files:
253
257
  - test/functional/compute_attribute_test.rb
254
258
  - test/functional/compute_profile_test.rb
255
259
  - test/functional/compute_resource_test.rb
260
+ - test/functional/domain/create_test.rb
261
+ - test/functional/domain/update_test.rb
256
262
  - test/functional/filter_test.rb
257
263
  - test/functional/host_test.rb
258
264
  - test/functional/hostgroup/create_test.rb
@@ -264,6 +270,7 @@ files:
264
270
  - test/functional/model_test.rb
265
271
  - test/functional/operating_system_test.rb
266
272
  - test/functional/organization_test.rb
273
+ - test/functional/partition_table_test.rb
267
274
  - test/functional/personal_access_token_test.rb
268
275
  - test/functional/ping_test.rb
269
276
  - test/functional/realm_test.rb
@@ -275,6 +282,7 @@ files:
275
282
  - test/functional/status_test.rb
276
283
  - test/functional/subnet/create_test.rb
277
284
  - test/functional/subnet/update_test.rb
285
+ - test/functional/table_preference_test.rb
278
286
  - test/functional/template_test.rb
279
287
  - test/functional/test_helper.rb
280
288
  - test/functional/user_mail_notification_test.rb
@@ -342,7 +350,7 @@ homepage: https://github.com/theforeman/hammer-cli-foreman
342
350
  licenses:
343
351
  - GPL-3.0+
344
352
  metadata: {}
345
- post_install_message:
353
+ post_install_message:
346
354
  rdoc_options: []
347
355
  require_paths:
348
356
  - lib
@@ -358,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
358
366
  version: '0'
359
367
  requirements: []
360
368
  rubygems_version: 3.1.2
361
- signing_key:
369
+ signing_key:
362
370
  specification_version: 4
363
371
  summary: Foreman commands for Hammer
364
372
  test_files:
@@ -376,59 +384,65 @@ test_files:
376
384
  - test/data/1.24/foreman_api.json
377
385
  - test/data/2.0/foreman_api.json
378
386
  - test/data/2.1/foreman_api.json
387
+ - test/data/README.md
379
388
  - test/data/2.4/foreman_api.json
380
389
  - test/data/2.5/foreman_api.json
381
- - test/data/README.md
382
390
  - test/data/3.1/foreman_api.json
391
+ - test/data/3.4/foreman_api.json
383
392
  - test/functional/auth_source_test.rb
384
393
  - test/functional/commands/list_test.rb
385
394
  - test/functional/hostgroup/create_test.rb
386
395
  - test/functional/hostgroup/update_test.rb
387
- - test/functional/compute_profile_test.rb
388
- - test/functional/model_test.rb
389
- - test/functional/operating_system_test.rb
390
- - test/functional/personal_access_token_test.rb
391
- - test/functional/user_mail_notification_test.rb
392
- - test/functional/template_test.rb
396
+ - test/functional/architecture_test.rb
397
+ - test/functional/compute_attribute_test.rb
398
+ - test/functional/ping_test.rb
399
+ - test/functional/user_test.rb
393
400
  - test/functional/ssh_keys_test.rb
394
401
  - test/functional/subnet/update_test.rb
395
402
  - test/functional/subnet/create_test.rb
396
403
  - test/functional/test_helper.rb
397
- - test/functional/filter_test.rb
398
- - test/functional/http_proxy_test.rb
404
+ - test/functional/location_test.rb
399
405
  - test/functional/media_test.rb
400
- - test/functional/registration_test.rb
406
+ - test/functional/partition_table_test.rb
407
+ - test/functional/personal_access_token_test.rb
408
+ - test/functional/report_template_test.rb
409
+ - test/functional/settings_test.rb
410
+ - test/functional/status_test.rb
411
+ - test/functional/user_mail_notification_test.rb
412
+ - test/functional/compute_profile_test.rb
413
+ - test/functional/realm_test.rb
401
414
  - test/functional/usergroup_test.rb
402
- - test/functional/architecture_test.rb
403
- - test/functional/bookmark_test.rb
404
- - test/functional/compute_resource_test.rb
405
415
  - test/functional/organization_test.rb
406
- - test/functional/report_template_test.rb
407
- - test/functional/user_test.rb
408
416
  - test/functional/virtual_machine_test.rb
417
+ - test/functional/compute_resource_test.rb
418
+ - test/functional/domain/create_test.rb
419
+ - test/functional/domain/update_test.rb
420
+ - test/functional/filter_test.rb
421
+ - test/functional/host_test.rb
422
+ - test/functional/http_proxy_test.rb
409
423
  - test/functional/mail_notification_test.rb
410
- - test/functional/settings_test.rb
411
- - test/functional/compute_attribute_test.rb
424
+ - test/functional/operating_system_test.rb
425
+ - test/functional/template_test.rb
412
426
  - test/functional/associating_commands_test.rb
413
427
  - test/functional/audit_test.rb
414
- - test/functional/ping_test.rb
415
- - test/functional/realm_test.rb
416
428
  - test/functional/role_test.rb
417
- - test/functional/status_test.rb
418
- - test/functional/host_test.rb
419
- - test/functional/location_test.rb
429
+ - test/functional/bookmark_test.rb
430
+ - test/functional/model_test.rb
431
+ - test/functional/registration_test.rb
432
+ - test/functional/table_preference_test.rb
420
433
  - test/unit/api/void_auth_test.rb
421
434
  - test/unit/api/interactive_basic_auth_test.rb
422
435
  - test/unit/api/oauth/oauth_authentication_code_grant_test.rb
423
436
  - test/unit/api/oauth/oauth_password_grant_test.rb
424
437
  - test/unit/api/session_authenticator_wrapper_test.rb
425
438
  - test/unit/test_output_adapter.rb
426
- - test/unit/smart_proxy_test.rb
439
+ - test/unit/host_test.rb
427
440
  - test/unit/auth_source_ldap_test.rb
428
441
  - test/unit/config_report_test.rb
429
442
  - test/unit/compute_resource_test.rb
430
443
  - test/unit/data/test_api.json
431
444
  - test/unit/defaults_test.rb
445
+ - test/unit/id_resolver_test.rb
432
446
  - test/unit/external_usergroup_test.rb
433
447
  - test/unit/fact_test.rb
434
448
  - test/unit/helpers/fake_searchables.rb
@@ -437,24 +451,25 @@ test_files:
437
451
  - test/unit/image_test.rb
438
452
  - test/unit/location_test.rb
439
453
  - test/unit/messages_test.rb
454
+ - test/unit/mail_notification_test.rb
440
455
  - test/unit/option_sources/id_params_test.rb
441
456
  - test/unit/option_sources/ids_params_test.rb
442
457
  - test/unit/organization_test.rb
443
458
  - test/unit/output/formatters_test.rb
444
459
  - test/unit/common_parameter_test.rb
445
460
  - test/unit/realm_test.rb
446
- - test/unit/mail_notification_test.rb
447
- - test/unit/option_builders_test.rb
461
+ - test/unit/settings_test.rb
462
+ - test/unit/usergroup_test.rb
448
463
  - test/unit/subnet_test.rb
449
464
  - test/unit/test_helper.rb
450
465
  - test/unit/user_test.rb
451
466
  - test/unit/param_filters_test.rb
452
- - test/unit/partition_table_test.rb
453
467
  - test/unit/role_test.rb
468
+ - test/unit/model_test.rb
454
469
  - test/unit/operating_system_test.rb
455
- - test/unit/apipie_resource_mock.rb
470
+ - test/unit/option_builders_test.rb
456
471
  - test/unit/architecture_test.rb
457
- - test/unit/settings_test.rb
472
+ - test/unit/commands_test.rb
458
473
  - test/unit/audit_test.rb
459
474
  - test/unit/auth_source_external.rb
460
475
  - test/unit/dependency_resolver_test.rb
@@ -463,14 +478,12 @@ test_files:
463
478
  - test/unit/media_test.rb
464
479
  - test/unit/sessions_test.rb
465
480
  - test/unit/bookmark_test.rb
466
- - test/unit/commands_test.rb
481
+ - test/unit/hostgroup_test.rb
467
482
  - test/unit/api_test.rb
483
+ - test/unit/apipie_resource_mock.rb
468
484
  - test/unit/compute_profile_test.rb
469
- - test/unit/host_test.rb
470
- - test/unit/hostgroup_test.rb
471
- - test/unit/id_resolver_test.rb
472
- - test/unit/model_test.rb
485
+ - test/unit/partition_table_test.rb
473
486
  - test/unit/template_test.rb
474
- - test/unit/usergroup_test.rb
487
+ - test/unit/smart_proxy_test.rb
475
488
  - test/unit/domain_test.rb
476
489
  - test/test_helper.rb