kontena-cli 1.4.0.pre9 → 1.4.0.pre10
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 +4 -4
- data/VERSION +1 -1
- data/lib/kontena/cli/stacks/validate_command.rb +3 -1
- data/lib/kontena/cli/volume_command.rb +0 -2
- data/lib/kontena/main_command.rb +1 -1
- data/spec/kontena/cli/nodes/health_command_spec.rb +6 -3
- data/spec/kontena/cli/stacks/validate_command_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf9375a2a08c843570d3497ffba6f5c9c08d8b26
|
4
|
+
data.tar.gz: 763a11db98a1dbeca9a8958b740335ed39154081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c169207ab0236f40286ae58719ab514820fb29adf76e60c095fbd8c657216e5beb4ffa908d151c0069cc80a9d8dc24cafbc5659bfeec97206f2d1669f209148
|
7
|
+
data.tar.gz: a2f237a79e37feb732263998d04012b8e54c3c35d9ea9266ee76784866de0fbef45703ed57f1ecf80ec2d81f2fc3a21d29fad074b5a9daf8552324e3c6b793d2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.0.
|
1
|
+
1.4.0.pre10
|
@@ -1,8 +1,6 @@
|
|
1
1
|
|
2
2
|
class Kontena::Cli::VolumeCommand < Kontena::Command
|
3
3
|
|
4
|
-
warn Kontena.pastel.yellow("[EXPERIMENTAL] The `kontena volume` commands are still experimental in Kontena #{Kontena.minor_version}, and may change in future releases")
|
5
|
-
|
6
4
|
subcommand "create", "Create a managed volume", load_subcommand('volumes/create_command')
|
7
5
|
subcommand "show", "Show details of a volume", load_subcommand('volumes/show_command')
|
8
6
|
subcommand ["remove", "rm"], "Remove a managed volume", load_subcommand('volumes/remove_command')
|
data/lib/kontena/main_command.rb
CHANGED
@@ -28,7 +28,7 @@ class Kontena::MainCommand < Kontena::Command
|
|
28
28
|
subcommand "certificate", "LE Certificate specific commands", load_subcommand('certificate_command')
|
29
29
|
subcommand "registry", "Registry specific commands", load_subcommand('registry_command')
|
30
30
|
subcommand "external-registry", "External registry specific commands", load_subcommand('external_registry_command')
|
31
|
-
subcommand "volume", "Volume specific commands
|
31
|
+
subcommand "volume", "Volume specific commands", load_subcommand('volume_command')
|
32
32
|
subcommand "plugin", "Plugin specific commands", load_subcommand('plugin_command')
|
33
33
|
subcommand "whoami", "Shows current logged in user", load_subcommand('whoami_command')
|
34
34
|
subcommand "version", "Show CLI and current master version", load_subcommand('version_command')
|
@@ -4,8 +4,11 @@ describe Kontena::Cli::Nodes::HealthCommand do
|
|
4
4
|
include ClientHelpers
|
5
5
|
include OutputHelpers
|
6
6
|
|
7
|
+
let(:connected_at) { (Time.now - 50.0).to_s }
|
8
|
+
|
7
9
|
before do
|
8
10
|
allow(subject).to receive(:health_icon) {|health| health.inspect }
|
11
|
+
allow(subject).to receive(:time_since).with(connected_at).and_return('50s')
|
9
12
|
end
|
10
13
|
|
11
14
|
context "for an online node" do
|
@@ -15,7 +18,7 @@ describe Kontena::Cli::Nodes::HealthCommand do
|
|
15
18
|
"node_number" => 4,
|
16
19
|
"initial_member" => false,
|
17
20
|
'status' => 'online',
|
18
|
-
'connected_at' =>
|
21
|
+
'connected_at' => connected_at,
|
19
22
|
"connected" => true,
|
20
23
|
'etcd_health' => {
|
21
24
|
'health' => true,
|
@@ -61,7 +64,7 @@ describe Kontena::Cli::Nodes::HealthCommand do
|
|
61
64
|
"node_number" => 1,
|
62
65
|
"initial_member" => true,
|
63
66
|
'status' => 'online',
|
64
|
-
'connected_at' =>
|
67
|
+
'connected_at' => connected_at,
|
65
68
|
"connected" => true,
|
66
69
|
'etcd_health' => {
|
67
70
|
'health' => true,
|
@@ -89,7 +92,7 @@ describe Kontena::Cli::Nodes::HealthCommand do
|
|
89
92
|
"node_number" => 4,
|
90
93
|
"initial_member" => false,
|
91
94
|
'status' => 'online',
|
92
|
-
'connected_at' =>
|
95
|
+
'connected_at' => connected_at,
|
93
96
|
"connected" => true,
|
94
97
|
'etcd_health' => {
|
95
98
|
'health' => false,
|
@@ -18,6 +18,13 @@ describe Kontena::Cli::Stacks::UpgradeCommand do
|
|
18
18
|
expect{Kontena.run!('stack', 'validate', fixture_path('kontena_v3.yml'))}.not_to exit_with_error
|
19
19
|
expect{Kontena.run!('stack', 'validate', fixture_path('kontena_v3.yml'))}.to output(/stack:.*version:.*services:.*variables:/m).to_stdout
|
20
20
|
end
|
21
|
+
|
22
|
+
context '--online' do
|
23
|
+
it 'validates a yaml file' do
|
24
|
+
expect{Kontena.run!('stack', 'validate', '--online', fixture_path('kontena_v3.yml'))}.to output(/stack:.*version:.*services:.*variables:/m).to_stdout
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
21
28
|
end
|
22
29
|
|
23
30
|
context 'with dependencies' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.
|
4
|
+
version: 1.4.0.pre10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|