hammer_cli_foreman 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/doc/host_create.md +0 -1
  3. data/doc/release_notes.md +8 -0
  4. data/lib/hammer_cli_foreman/compute_resource/libvirt.rb +0 -1
  5. data/lib/hammer_cli_foreman/compute_resource/vmware.rb +23 -20
  6. data/lib/hammer_cli_foreman/testing/api_expectations.rb +1 -1
  7. data/lib/hammer_cli_foreman/version.rb +1 -1
  8. data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  9. data/locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  10. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  11. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  12. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  13. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  14. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  15. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  16. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  17. data/locale/ka/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  18. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  19. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  20. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  21. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  22. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  23. data/test/data/3.12/foreman_api.json +1 -0
  24. data/test/functional/architecture_test.rb +1 -1
  25. data/test/functional/bookmark_test.rb +1 -1
  26. data/test/functional/compute_profile_test.rb +1 -1
  27. data/test/functional/host_test.rb +1 -1
  28. data/test/functional/mail_notification_test.rb +1 -1
  29. data/test/functional/model_test.rb +1 -1
  30. data/test/functional/operating_system_test.rb +1 -1
  31. data/test/functional/settings_test.rb +1 -1
  32. data/test/functional/usergroup_test.rb +1 -1
  33. data/test/test_helper.rb +1 -1
  34. metadata +6 -36
  35. data/test/data/1.10/foreman_api.json +0 -1
  36. data/test/data/1.11/foreman_api.json +0 -1
  37. data/test/data/1.14/_foreman_api.json +0 -1
  38. data/test/data/1.14/foreman_api.json +0 -1
  39. data/test/data/1.15/foreman_api.json +0 -1
  40. data/test/data/1.16/foreman_api.json +0 -1
  41. data/test/data/1.17/foreman_api.json +0 -1
  42. data/test/data/1.18/foreman_api.json +0 -1
  43. data/test/data/1.20/foreman_api.json +0 -1
  44. data/test/data/1.21/foreman_api.json +0 -1
  45. data/test/data/1.22/foreman_api.json +0 -1
  46. data/test/data/1.24/foreman_api.json +0 -1
  47. data/test/data/2.0/foreman_api.json +0 -1
  48. data/test/data/2.1/foreman_api.json +0 -1
  49. data/test/data/2.4/foreman_api.json +0 -1
  50. data/test/data/2.5/foreman_api.json +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcd19371b69ac0ebe721df5446a820ca45a3bca5c6ba3c7d71b3b5c47b53c841
4
- data.tar.gz: 8b2f5982ecfddfe6acaa53c50fd0682c243b7f361ae02c02c756f7b860d22eb2
3
+ metadata.gz: ec9e20c7ec98e682b439d6c2bd817335cf9eec30ab716419fff5e2dcd4ad68f7
4
+ data.tar.gz: 40126935fdcf9759052c7a345c5e77525137cc778ed855e71ab3593dc0747ddf
5
5
  SHA512:
6
- metadata.gz: e2933a9baaf1a04838e496f34a9b67cc2b7ab33435af7be46229f4a65fa8f88c8c69404628d3436e6d4b847e03804e11696b52512ab853eb946b4cc9eaeea2d9
7
- data.tar.gz: a4052c22780771257778d4cb4f29a6e8d9a1f56e52f0e13115c4a1808aca2e40f15ce7201d0c6c76398e50b7aa178facac9269d2540dd246cfb47d7da76fa0ed
6
+ metadata.gz: 56901f6e3fe1e51bf5333267c7083a46207251d6c6b10331e9fafe337aac516a999e49e1f21c62ea107dcdd0061bc10704764f4c4e5945d4aadf77f90b4f0e91
7
+ data.tar.gz: 1dd75b9103aa2b3640b9f64c089a4edbb7a74239d00e6053ac21efd031ec8e7a28afc3403a29d845cccf05643ea5baf98973d44e4e92741a9a65c18df036b362
data/doc/host_create.md CHANGED
@@ -194,7 +194,6 @@ Available keys for `--compute-attributes`:
194
194
  ```
195
195
  cpus # number of CPUs
196
196
  memory # string, amount of memory, value in bytes
197
- cpu_mode # possible values: default, host-model, host-passthrough
198
197
  start # Must be a 1 or 0, whether to start the machine or not
199
198
  ```
200
199
 
data/doc/release_notes.md CHANGED
@@ -1,5 +1,13 @@
1
1
  Release notes
2
2
  =============
3
+ ### 3.12.0 (2024-08-14)
4
+ * Ensure foreman_version usage in all tests
5
+ * Prune test data prior to 3.0
6
+ * Use 3.12 test data
7
+ * Drop cpu mode option for libvirt, [#36999](http://projects.theforeman.org/issues/36999)
8
+ * Add nvme controllers to hammer help ([PR #628](https://github.com/theforeman/hammer-cli-foreman/pull/628)), [#37689](http://projects.theforeman.org/issues/37689)
9
+ * Bump to 3.12.0-develop
10
+
3
11
  ### 3.11.0 (2024-05-22)
4
12
  * Update test data to 3.11
5
13
  * Bump to 3.11.0-develop
@@ -9,7 +9,6 @@ module HammerCLIForeman
9
9
  [
10
10
  ['cpus', _('Number of CPUs'), { bold: true }],
11
11
  ['memory', _('String, amount of memory, value in bytes'), { bold: true }],
12
- ['cpu_mode', _('Possible values: %{modes}') % { modes: 'default, host-model, host-passthrough' }],
13
12
  ['boot_order', _('Device names to specify the boot order')]
14
13
  ]
15
14
  end
@@ -10,7 +10,8 @@ module HammerCLIForeman
10
10
  def compute_attributes
11
11
  [
12
12
  ['cluster', _('Cluster ID from VMware'), { bold: true }],
13
- ['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)'), { bold: true }],
13
+ ['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)'),
14
+ { bold: true }],
14
15
  ['cpus', _('CPU count'), { bold: true }],
15
16
  ['memory_mb', _('Integer number, amount of memory in MB'), { bold: true }],
16
17
  ['path', _('Path to folder'), { bold: true }],
@@ -23,10 +24,12 @@ module HammerCLIForeman
23
24
  ['add_cdrom', _('Must be a 1 or 0, Add a CD-ROM drive to the virtual machine')],
24
25
  ['annotation', _('Annotation Notes')],
25
26
  ['scsi_controllers', [_('List with SCSI controllers definitions'),
26
- ' type - ' + _('ID of the controller from VMware'),
27
- ' key - ' + _('Key of the controller (e.g. 1000)')
28
- ].flatten(1).join("\n")],
29
- ['boot_order', _('Device names to specify the boot order')]
27
+ ' type - ' + _('ID of the controller type from VMware'),
28
+ ' key - ' + _('Key of the controller (e.g. 1000)')].flatten(1).join("\n")],
29
+ ['nvme_controllers', [_('List with NVME controllers definitions'),
30
+ ' type - ' + _('ID of the controller type from VMware'),
31
+ ' key - ' + _('Key of the controller (e.g. 2000)')].flatten(1).join("\n")],
32
+ ['boot_order', _('Device names to specify the boot order')]
30
33
  ]
31
34
  end
32
35
 
@@ -45,7 +48,7 @@ module HammerCLIForeman
45
48
  ['size_gb', _('Integer number, volume size in GB')],
46
49
  ['thin', 'true/false'],
47
50
  ['eager_zero', 'true/false'],
48
- ['controller_key', 'Associated SCSI controller key']
51
+ ['controller_key', 'Associated controller key']
49
52
  ]
50
53
  end
51
54
 
@@ -63,25 +66,25 @@ module HammerCLIForeman
63
66
 
64
67
  def provider_specific_fields
65
68
  super + [
66
- Fields::Field.new(:label => _('Datacenter'), :path => [:datacenter]),
67
- Fields::Field.new(:label => _('Server'), :path => [:server]),
68
- Fields::Boolean.new(:label => _('Console password set'), :path => [:set_console_password]),
69
- Fields::Boolean.new(:label => _('Caching enabled'), :path => [:caching_enabled])
69
+ Fields::Field.new(label: _('Datacenter'), path: [:datacenter]),
70
+ Fields::Field.new(label: _('Server'), path: [:server]),
71
+ Fields::Boolean.new(label: _('Console password set'), path: [:set_console_password]),
72
+ Fields::Boolean.new(label: _('Caching enabled'), path: [:caching_enabled])
70
73
  ]
71
74
  end
72
75
 
73
76
  def provider_vm_specific_fields
74
77
  [
75
- Fields::Field.new(:label => _('CPUs'), :path => [:cpus]),
76
- Fields::Field.new(:label => _('Memory'), :path => [:memory_mb]),
77
- Fields::Field.new(:label => _('Power Status'), :path => [:power_state]),
78
- Fields::Field.new(:label => _('Host Name'), :path => [:hostname]),
79
- Fields::Field.new(:label => _('Connection Status'), :path => [:connection_status]),
80
- Fields::Field.new(:label => _('Hardware Version'), :path => [:hardware_version]),
81
- Fields::Field.new(:label => _('Path'), :path => [:path]),
82
- Fields::Field.new(:label => _('Operating System'), :path => [:operatingsystem]),
83
- Fields::Field.new(:label => _('Mac'), :path => [:mac]),
84
- Fields::List.new(:label => _('Boot order'), :path => [:boot_order])
78
+ Fields::Field.new(label: _('CPUs'), path: [:cpus]),
79
+ Fields::Field.new(label: _('Memory'), path: [:memory_mb]),
80
+ Fields::Field.new(label: _('Power Status'), path: [:power_state]),
81
+ Fields::Field.new(label: _('Host Name'), path: [:hostname]),
82
+ Fields::Field.new(label: _('Connection Status'), path: [:connection_status]),
83
+ Fields::Field.new(label: _('Hardware Version'), path: [:hardware_version]),
84
+ Fields::Field.new(label: _('Path'), path: [:path]),
85
+ Fields::Field.new(label: _('Operating System'), path: [:operatingsystem]),
86
+ Fields::Field.new(label: _('Mac'), path: [:mac]),
87
+ Fields::List.new(label: _('Boot order'), path: [:boot_order])
85
88
  ]
86
89
  end
87
90
 
@@ -155,7 +155,7 @@ module HammerCLIForeman
155
155
  end
156
156
  end
157
157
 
158
- def api_connection(options={}, version = '1.15')
158
+ def api_connection(options={}, version = FOREMAN_VERSION)
159
159
  FakeApiConnection.new({
160
160
  :uri => 'https://test.org',
161
161
  :apidoc_cache_dir => "test/data/#{version}",
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForeman
2
2
  def self.version
3
- @version ||= Gem::Version.new "3.11.0"
3
+ @version ||= Gem::Version.new "3.12.0"
4
4
  end
5
5
  end