kumo_dockercloud 3.3.0 → 3.3.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3d4af0c97130e05f1bac754c1cca8df46cbb3f
|
4
|
+
data.tar.gz: bb00d5e929069a61e1e4bf07943e762f4ffa724f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a55dafe561b5bc79f8cf16905570b8e109838f198f6bdd6837aaf4aab12af2cacf097cb4c304c2991017475916a4d836c44114143c91a3d1a0d33c42f871a8d
|
7
|
+
data.tar.gz: caadb88f1c75b925c86c3c806744dbe0b8584e656a7e8b40eec348383c68ecc2730a765afc5042e87edfd66d95013ada17ab1cbe9525c67e768d87d6d3b90324
|
@@ -27,7 +27,7 @@ module KumoDockerCloud
|
|
27
27
|
command_output = haproxy_command.execute('show stat')
|
28
28
|
retry_counter += 1
|
29
29
|
end
|
30
|
-
raise HAProxyStateError.new("Could not get stats from HAProxy backend") if command_output.empty?
|
30
|
+
raise HAProxyStateError.new("Could not get stats from HAProxy backend from container id: #{@container_id}") if command_output.empty?
|
31
31
|
CSV.parse(command_output, headers: true)
|
32
32
|
end
|
33
33
|
|
@@ -12,8 +12,9 @@ module KumoDockerCloud
|
|
12
12
|
|
13
13
|
raise KumoDockerCloud::HAProxyStateError.new('Could not get instances of the haproxy container for this environment') if haproxy_containers.empty?
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
haproxy_containers.each do |haproxy_container|
|
16
|
+
haproxy_container.disable_server(service_to_disable)
|
17
|
+
end
|
17
18
|
end
|
18
19
|
|
19
20
|
def enable_service(service)
|
@@ -22,8 +23,9 @@ module KumoDockerCloud
|
|
22
23
|
|
23
24
|
raise KumoDockerCloud::HAProxyStateError.new('Could not get instances of the haproxy container for this environment') if haproxy_containers.empty?
|
24
25
|
|
25
|
-
|
26
|
-
|
26
|
+
haproxy_containers.each do |haproxy_container|
|
27
|
+
haproxy_container.enable_server(service_to_enable)
|
28
|
+
end
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
@@ -39,7 +39,7 @@ EOF
|
|
39
39
|
expect(haproxy_command).to receive(:execute).with('show stat').exactly(3).times.and_return('')
|
40
40
|
expect { subject.disable_server(server_name) }.to raise_error(
|
41
41
|
KumoDockerCloud::HAProxyStateError,
|
42
|
-
"Could not get stats from HAProxy backend"
|
42
|
+
"Could not get stats from HAProxy backend from container id: container-id"
|
43
43
|
)
|
44
44
|
end
|
45
45
|
|
@@ -69,7 +69,7 @@ EOF
|
|
69
69
|
expect(haproxy_command).to receive(:execute).with('show stat').exactly(3).times.and_return('')
|
70
70
|
expect { subject.enable_server(server_name) }.to raise_error(
|
71
71
|
KumoDockerCloud::HAProxyStateError,
|
72
|
-
"Could not get stats from HAProxy backend"
|
72
|
+
"Could not get stats from HAProxy backend from container id: container-id"
|
73
73
|
)
|
74
74
|
end
|
75
75
|
|