hybrid_platforms_conductor 32.3.6 → 32.6.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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/bin/nodes_to_deploy +11 -5
  3. data/lib/hybrid_platforms_conductor/deployer.rb +33 -12
  4. data/lib/hybrid_platforms_conductor/hpc_plugins/connector/ssh.rb +82 -28
  5. data/lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/platform_handler_plugin.rb.sample +1 -1
  6. data/lib/hybrid_platforms_conductor/hpc_plugins/provisioner/proxmox.rb +1 -1
  7. data/lib/hybrid_platforms_conductor/hpc_plugins/test/deploy_freshness.rb +1 -1
  8. data/lib/hybrid_platforms_conductor/hpc_plugins/test/file_system.rb +1 -1
  9. data/lib/hybrid_platforms_conductor/hpc_plugins/test/hostname.rb +1 -1
  10. data/lib/hybrid_platforms_conductor/hpc_plugins/test/ip.rb +1 -1
  11. data/lib/hybrid_platforms_conductor/hpc_plugins/test/local_users.rb +1 -1
  12. data/lib/hybrid_platforms_conductor/hpc_plugins/test/mounts.rb +1 -1
  13. data/lib/hybrid_platforms_conductor/hpc_plugins/test/orphan_files.rb +1 -1
  14. data/lib/hybrid_platforms_conductor/hpc_plugins/test/spectre.rb +6 -7
  15. data/lib/hybrid_platforms_conductor/hpc_plugins/test/vulnerabilities.rb +7 -6
  16. data/lib/hybrid_platforms_conductor/nodes_handler.rb +45 -1
  17. data/lib/hybrid_platforms_conductor/services_handler.rb +9 -13
  18. data/lib/hybrid_platforms_conductor/version.rb +1 -1
  19. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/config_dsl_spec.rb +35 -0
  20. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connections_spec.rb +41 -2
  21. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/global_helpers_spec.rb +68 -12
  22. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/node_helpers_spec.rb +1 -1
  23. data/spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/remote_actions_spec.rb +23 -9
  24. data/spec/hybrid_platforms_conductor_test/api/deployer/config_dsl_spec.rb +15 -0
  25. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/common_spec.rb +28 -0
  26. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/config_dsl_spec.rb +71 -0
  27. data/spec/hybrid_platforms_conductor_test/api/nodes_handler/git_diff_impacts_spec.rb +10 -0
  28. data/spec/hybrid_platforms_conductor_test/executables/nodes_to_deploy_spec.rb +25 -0
  29. data/spec/hybrid_platforms_conductor_test/helpers/connector_ssh_helpers.rb +17 -7
  30. data/spec/hybrid_platforms_conductor_test/helpers/deployer_helpers.rb +14 -14
  31. data/spec/hybrid_platforms_conductor_test/helpers/deployer_test_helpers.rb +137 -33
  32. data/spec/hybrid_platforms_conductor_test/helpers/platforms_handler_helpers.rb +1 -1
  33. data/spec/hybrid_platforms_conductor_test/helpers/provisioner_proxmox_helpers.rb +2 -2
  34. metadata +13 -11
@@ -58,7 +58,7 @@ module HybridPlatformsConductorTest
58
58
  #
59
59
  # Parameters::
60
60
  # * *content* (String): hpc_config.rb's content
61
- # * Proc: Code called with the platforms.rb file created.
61
+ # * Proc: Code called with the hpc_config.rb file created.
62
62
  # * Parameters::
63
63
  # * *hybrid_platforms_dir* (String): The hybrid-platforms directory
64
64
  def with_platforms(content)
@@ -330,7 +330,7 @@ module HybridPlatformsConductorTest
330
330
  expect(actions).to eq({
331
331
  'node' => {
332
332
  remote_bash: {
333
- commands: "#{expected_sudo ? 'sudo -E ' : ''}./proxmox/reserve_proxmox_container --create ./proxmox/create/create_#{expected_file_id}.json --config ./proxmox/config/config_#{expected_file_id}.json",
333
+ commands: "#{expected_sudo ? 'sudo -u root -E ' : ''}./proxmox/reserve_proxmox_container --create ./proxmox/create/create_#{expected_file_id}.json --config ./proxmox/config/config_#{expected_file_id}.json",
334
334
  env: {
335
335
  'hpc_user_for_proxmox' => proxmox_user,
336
336
  'hpc_password_for_proxmox' => proxmox_password,
@@ -382,7 +382,7 @@ module HybridPlatformsConductorTest
382
382
  expect(actions).to eq({
383
383
  'node' => {
384
384
  remote_bash: {
385
- commands: "#{expected_sudo ? 'sudo -E ' : ''}./proxmox/reserve_proxmox_container --destroy ./proxmox/destroy/destroy_#{expected_file_id}.json --config ./proxmox/config/config_#{expected_file_id}.json",
385
+ commands: "#{expected_sudo ? 'sudo -u root -E ' : ''}./proxmox/reserve_proxmox_container --destroy ./proxmox/destroy/destroy_#{expected_file_id}.json --config ./proxmox/config/config_#{expected_file_id}.json",
386
386
  env: {
387
387
  'hpc_user_for_proxmox' => proxmox_user,
388
388
  'hpc_password_for_proxmox' => proxmox_password,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybrid_platforms_conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 32.3.6
4
+ version: 32.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: range_operators
@@ -281,20 +281,20 @@ description: Provides a complete toolset to help DevOps maintain, deploy, monito
281
281
  email:
282
282
  - muriel@x-aeon.com
283
283
  executables:
284
- - run
285
- - last_deploys
286
- - dump_nodes_json
284
+ - topograph
287
285
  - test
286
+ - free_veids
287
+ - free_ips
288
288
  - nodes_to_deploy
289
+ - last_deploys
289
290
  - check-node
290
- - deploy
291
- - free_veids
292
- - ssh_config
291
+ - run
293
292
  - report
294
- - topograph
295
- - setup
296
- - free_ips
297
293
  - get_impacted_nodes
294
+ - ssh_config
295
+ - deploy
296
+ - setup
297
+ - dump_nodes_json
298
298
  extensions: []
299
299
  extra_rdoc_files: []
300
300
  files:
@@ -435,6 +435,7 @@ files:
435
435
  - spec/hybrid_platforms_conductor_test/api/cmd_runner_spec.rb
436
436
  - spec/hybrid_platforms_conductor_test/api/config_spec.rb
437
437
  - spec/hybrid_platforms_conductor_test/api/deployer/check_spec.rb
438
+ - spec/hybrid_platforms_conductor_test/api/deployer/config_dsl_spec.rb
438
439
  - spec/hybrid_platforms_conductor_test/api/deployer/deploy_spec.rb
439
440
  - spec/hybrid_platforms_conductor_test/api/deployer/parse_deploy_output_spec.rb
440
441
  - spec/hybrid_platforms_conductor_test/api/deployer/provisioner_spec.rb
@@ -462,6 +463,7 @@ files:
462
463
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs/platform_handlers_spec.rb
463
464
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/cmdbs_plugins_api_spec.rb
464
465
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/common_spec.rb
466
+ - spec/hybrid_platforms_conductor_test/api/nodes_handler/config_dsl_spec.rb
465
467
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/git_diff_impacts_spec.rb
466
468
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/nodes_selectors_spec.rb
467
469
  - spec/hybrid_platforms_conductor_test/api/nodes_handler/platform_handlers_plugins_api_spec.rb