foreman_fog_proxmox 0.17.0 → 0.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4521dde2dff786a4f14fcf50c4eb68cd412596029a0f2ee32d54bd8154c51135
4
- data.tar.gz: 6e316973c79ab4e51f95578e3c282a0d5345dde397afb5d14ad9ac011a8fc9d0
3
+ metadata.gz: 5b4d4330c4fcf2a9c34654f0eb6fd815ff594e92c89cf3087668593c34eb5163
4
+ data.tar.gz: 299d35d38bc7acc751bcc6029ae81668c77885e008c2f05c44d821b3fc9b41b0
5
5
  SHA512:
6
- metadata.gz: 9d034e8a37538e334329ab3a8df9447325ca7d2809a0b185819bc0fe62757fc39cee691799fa8699802d50855da41d3e4f8df17a3a2ffe1924376dfbcbacfc20
7
- data.tar.gz: '09e3bd0ebb1cd6ece7103cc0d07f0d0c5a0c02598a8f72787359599ee8a8004c6c3add7d9d43a7ffdd9b2486c4fe2faeb5fa28b05ddc83cf290fe0ff55211b5a'
6
+ metadata.gz: a73e32847f12af16d70796f3d197126b4a0ade07d79ba8b5ced0d0c9663131af88d3ddaf21b1feef5dfe9209f066eae59cf0aab54c52ea7053a077bd85dbba13
7
+ data.tar.gz: bb05744d447e8dddcc864aaa44439cae3d6793f6d7d24b637ba627443cd1d0964c39c63e7adb72fc157284c36b0be9630a82e722765782b17d716a95040a8cc7
@@ -20,7 +20,8 @@
20
20
  Deface::Override.new(
21
21
  virtual_path: 'compute_attributes/_compute_form',
22
22
  name: 'remove_networks_and_volumes_partial',
23
- remove: "erb[loud]:contains('compute_resources_vms/form/networks'), erb[loud]:contains('compute_resources_vms/form/volumes')"
23
+ surround: "erb[loud]:contains('compute_resources_vms/form/networks'), erb[loud]:contains('compute_resources_vms/form/volumes')",
24
+ text: "<% unless compute_resource.class == ForemanFogProxmox::Proxmox %><%= render_original %><% end %>"
24
25
  )
25
26
 
26
27
  Deface::Override.new(
@@ -21,5 +21,6 @@ Deface::Override.new(
21
21
  :virtual_path => 'hosts/_compute',
22
22
  :name => 'update_react_component_to_virtual_machine_tab',
23
23
  :replace => "erb[loud]:contains('hosts/compute_detail')",
24
- :partial => 'compute_resources_vms/form/proxmox/update_react_component_to_host_form'
24
+ :partial => 'compute_resources_vms/form/proxmox/update_react_component_to_host_form',
25
+ :original => 'c71aceb245363af92515509d25cac0c066bd58ed'
25
26
  )
@@ -23,4 +23,7 @@ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
23
23
  <%= render :partial => provider_partial(compute_resource, 'base'),
24
24
  locals: { f: compute, host: host, compute_resource: compute_resource, new_host: host.new_record?, new_vm: !compute.object.persisted?,
25
25
  arch: host.architecture_id, os: host.operatingsystem_id } %>
26
+
27
+ <!--Storage-->
28
+ <%= render :partial => 'compute_resources_vms/form/volumes', :locals => { :f => compute, :compute_resource => compute_resource, :new_host => !compute.object.persisted?, :new_vm => !compute.object.persisted?, :item_layout => 'removable' } %>
26
29
  <% end %>
@@ -18,5 +18,5 @@
18
18
  # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module ForemanFogProxmox
21
- VERSION = '0.17.0'
21
+ VERSION = '0.17.1'
22
22
  end
data/package.json CHANGED
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.7.0",
31
- "@testing-library/react": "^10.4.9",
32
31
  "@theforeman/builder": ">= 12.0.1",
33
32
  "@theforeman/eslint-plugin-foreman": ">= 12.0.1",
34
33
  "@theforeman/find-foreman": ">= 12.0.1",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_fog_proxmox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Robert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-08 00:00:00.000000000 Z
12
+ date: 2024-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deface
@@ -293,29 +293,29 @@ signing_key:
293
293
  specification_version: 4
294
294
  summary: Foreman plugin that adds Proxmox VE compute resource using fog-proxmox
295
295
  test_files:
296
- - test/functional/compute_resources_controller_test.rb
296
+ - test/test_plugin_helper.rb
297
+ - test/unit/foreman_fog_proxmox/proxmox_test.rb
298
+ - test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb
299
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cloudinit_test.rb
300
+ - test/unit/foreman_fog_proxmox/proxmox_vm_new_test.rb
301
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
302
+ - test/unit/foreman_fog_proxmox/proxmox_compute_attributes_test.rb
303
+ - test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb
304
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
297
305
  - test/unit/foreman_fog_proxmox/semver_test.rb
306
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb
307
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cdrom_test.rb
308
+ - test/unit/foreman_fog_proxmox/proxmox_version_test.rb
298
309
  - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_hard_disk_test.rb
299
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
310
+ - test/unit/foreman_fog_proxmox/proxmox_images_test.rb
311
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb
312
+ - test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
300
313
  - test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
301
- - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_volumes_helper_test.rb
302
314
  - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_uuid_helper_test.rb
303
315
  - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
304
- - test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
305
- - test/unit/foreman_fog_proxmox/proxmox_version_test.rb
306
- - test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb
307
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
308
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb
309
- - test/unit/foreman_fog_proxmox/proxmox_compute_attributes_test.rb
310
- - test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb
311
- - test/unit/foreman_fog_proxmox/proxmox_images_test.rb
312
- - test/unit/foreman_fog_proxmox/proxmox_test.rb
313
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cdrom_test.rb
314
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cloudinit_test.rb
315
- - test/unit/foreman_fog_proxmox/proxmox_vm_new_test.rb
316
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb
317
- - test/test_plugin_helper.rb
318
- - test/factories/proxmox_factory.rb
316
+ - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_volumes_helper_test.rb
317
+ - test/functional/compute_resources_controller_test.rb
319
318
  - test/factories/foreman_fog_proxmox/proxmox_server_mock_factory.rb
320
319
  - test/factories/foreman_fog_proxmox/proxmox_container_mock_factory.rb
321
320
  - test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
321
+ - test/factories/proxmox_factory.rb