hybrid_platforms_conductor 32.11.0 → 32.11.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: 465192e04717236671a6794a0c114d0aa862d5b6305d6554feff5590ced3cf5d
4
- data.tar.gz: f6df3a500c30840ea8f151dcd4a290a05a1b0ad6a1884641721e91b8fc558f67
3
+ metadata.gz: 2d3d8ff58b63ff1dbcadaeba8bea4c5e6469ace3ef68d9b39ab1eabc8f68a209
4
+ data.tar.gz: 3b02a1707c32c436e6d353775e38d116bba42e16cc35a2854a69f052377c85a4
5
5
  SHA512:
6
- metadata.gz: bac26c60bb434dee2d2bae35a4c652abf4d4fcd5aed9cd13fb494fd6661ef0c7cc93f54aa3b52bc3e4458773228644233aaaa50ca0fc48815c43e5edba6b8043
7
- data.tar.gz: e2a5dc1e158bcd70317c1bf6eba19cba6b3068bf1c334ed31b0a1e377194a41312e967974df5365a549bbe55711c938580d320c206af051247e5e254f44f1322
6
+ metadata.gz: f32880a9ab54d037caf3f9400bac31fcbc8993618c0859d22ff4d07585b8962683e295ee4a09847606a377aa343c78b09cddbc20026e34baeb03265409c66271
7
+ data.tar.gz: 2545b32a9aa07ea5cad6a01ba418d19eaa2ce28dcdd66146af07b98de6da44c30a9da8c35de33a4b054078f80f8813ceb05c12899b2f0c323b59ef383dc267da
@@ -11,24 +11,38 @@ module HybridPlatformsConductor
11
11
 
12
12
  # Check my_test_plugin.rb.sample documentation for signature details.
13
13
  def test
14
- example_platform = PlatformsHandler.new.known_platforms.first
15
- example_node = example_platform.known_nodes.first
16
- [
17
- "#{CmdRunner.executables_prefix}check-node --node #{example_node} --show-commands",
18
- "#{CmdRunner.executables_prefix}deploy --node #{example_node} --show-commands --why-run",
14
+ tests = [
19
15
  "#{CmdRunner.executables_prefix}dump_nodes_json --help",
20
16
  "#{CmdRunner.executables_prefix}free_ips",
21
17
  "#{CmdRunner.executables_prefix}free_veids",
22
- "#{CmdRunner.executables_prefix}get_impacted_nodes --platform #{example_platform.name} --show-commands",
23
- "#{CmdRunner.executables_prefix}last_deploys --node #{example_node} --show-commands",
24
- "#{CmdRunner.executables_prefix}nodes_to_deploy --node #{example_node} --show-commands",
25
- "#{CmdRunner.executables_prefix}report --node #{example_node} --format stdout",
26
- "#{CmdRunner.executables_prefix}run --node #{example_node} --show-commands --interactive",
27
18
  "#{CmdRunner.executables_prefix}setup --help",
28
19
  "#{CmdRunner.executables_prefix}ssh_config",
29
- "#{CmdRunner.executables_prefix}test --help",
30
- "#{CmdRunner.executables_prefix}topograph --from \"--node #{example_node}\" --to \"--node #{example_node}\" --skip-run --output graphviz:graph.gv"
31
- ].each do |cmd|
20
+ "#{CmdRunner.executables_prefix}test --help"
21
+ ]
22
+ example_platform = PlatformsHandler.new(
23
+ logger: @logger,
24
+ logger_stderr: @logger_stderr,
25
+ config: @config,
26
+ cmd_runner: @cmd_runner
27
+ ).known_platforms.first
28
+ unless example_platform.nil?
29
+ tests.concat [
30
+ "#{CmdRunner.executables_prefix}get_impacted_nodes --platform #{example_platform.name} --show-commands",
31
+ ]
32
+ example_node = example_platform.known_nodes.first
33
+ unless example_node.nil?
34
+ tests.concat [
35
+ "#{CmdRunner.executables_prefix}check-node --node #{example_node} --show-commands",
36
+ "#{CmdRunner.executables_prefix}deploy --node #{example_node} --show-commands --why-run",
37
+ "#{CmdRunner.executables_prefix}last_deploys --node #{example_node} --show-commands",
38
+ "#{CmdRunner.executables_prefix}nodes_to_deploy --node #{example_node} --show-commands",
39
+ "#{CmdRunner.executables_prefix}report --node #{example_node} --format stdout",
40
+ "#{CmdRunner.executables_prefix}run --node #{example_node} --show-commands --interactive",
41
+ "#{CmdRunner.executables_prefix}topograph --from \"--node #{example_node}\" --to \"--node #{example_node}\" --skip-run --output graphviz:graph.gv"
42
+ ]
43
+ end
44
+ end
45
+ tests.sort.each do |cmd|
32
46
  log_debug "Testing #{cmd}"
33
47
  exit_status, stdout, _stderr = @cmd_runner.run_cmd "#{cmd} 2>&1", no_exception: true, log_to_stdout: log_debug?
34
48
  assert_equal(exit_status, 0, "Command #{cmd} returned code #{exit_status}:\n#{stdout}")
@@ -1,5 +1,5 @@
1
1
  module HybridPlatformsConductor
2
2
 
3
- VERSION = '32.11.0'
3
+ VERSION = '32.11.1'
4
4
 
5
5
  end
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.11.0
4
+ version: 32.11.1
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-03-31 00:00:00.000000000 Z
11
+ date: 2021-04-05 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
- - setup
285
- - free_veids
286
- - dump_nodes_json
287
- - topograph
288
- - last_deploys
289
- - report
284
+ - run
290
285
  - get_impacted_nodes
291
- - ssh_config
292
- - test
286
+ - dump_nodes_json
287
+ - check-node
293
288
  - nodes_to_deploy
289
+ - free_veids
294
290
  - free_ips
295
- - check-node
291
+ - test
296
292
  - deploy
297
- - run
293
+ - report
294
+ - topograph
295
+ - setup
296
+ - last_deploys
297
+ - ssh_config
298
298
  extensions: []
299
299
  extra_rdoc_files: []
300
300
  files: