hybrid_platforms_conductor 32.11.0 → 32.11.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d3d8ff58b63ff1dbcadaeba8bea4c5e6469ace3ef68d9b39ab1eabc8f68a209
|
4
|
+
data.tar.gz: 3b02a1707c32c436e6d353775e38d116bba42e16cc35a2854a69f052377c85a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
31
|
-
|
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}")
|
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.
|
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-
|
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
|
-
-
|
285
|
-
- free_veids
|
286
|
-
- dump_nodes_json
|
287
|
-
- topograph
|
288
|
-
- last_deploys
|
289
|
-
- report
|
284
|
+
- run
|
290
285
|
- get_impacted_nodes
|
291
|
-
-
|
292
|
-
-
|
286
|
+
- dump_nodes_json
|
287
|
+
- check-node
|
293
288
|
- nodes_to_deploy
|
289
|
+
- free_veids
|
294
290
|
- free_ips
|
295
|
-
-
|
291
|
+
- test
|
296
292
|
- deploy
|
297
|
-
-
|
293
|
+
- report
|
294
|
+
- topograph
|
295
|
+
- setup
|
296
|
+
- last_deploys
|
297
|
+
- ssh_config
|
298
298
|
extensions: []
|
299
299
|
extra_rdoc_files: []
|
300
300
|
files:
|