fog-brightbox 1.1.0 → 1.2.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e26f79fc46a2f77a167b2bfdbec200eb894fe31564c2de8c032ef7b0988121ee
|
4
|
+
data.tar.gz: 907d351d14930aca9ac3163419b1b24cde2b38e51ed5018891330ddd220bc44f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fef06b499b0df676a162b957ec938dcde62ee20144c6adb17258d8b5589c635874bf4a67ec58a21392e5dfe88b048efce6aa8ef677ecb2a14672c149e9501ad
|
7
|
+
data.tar.gz: 7bd7aa1451f637f20f1746b5efbe51afadbe294a4117061be4751bdba55798c5256390b5d557827c4a95db19a3542fe541ab643644dea761abfba9b8d16da10f
|
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,8 @@ module Fog
|
|
18
18
|
attribute :healthcheck
|
19
19
|
attribute :listeners
|
20
20
|
|
21
|
+
attribute :ssl_minimum_version
|
22
|
+
|
21
23
|
# These SSL attributes act only as setters. You can not read certs or keys via the API
|
22
24
|
attribute :certificate_pem
|
23
25
|
attribute :certificate_private_key
|
@@ -58,6 +60,7 @@ module Fog
|
|
58
60
|
:buffer_size => buffer_size,
|
59
61
|
:certificate_pem => certificate_pem,
|
60
62
|
:certificate_private_key => certificate_private_key,
|
63
|
+
:ssl_minimum_version => ssl_minimum_version,
|
61
64
|
:sslv3 => ssl3?
|
62
65
|
}.delete_if { |_k, v| v.nil? || v == "" }
|
63
66
|
data = service.create_load_balancer(options)
|
@@ -18,4 +18,28 @@ describe Fog::Brightbox::Compute::LoadBalancer do
|
|
18
18
|
assert_equal "load_balancer", subject.resource_name
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
describe "when creating" do
|
23
|
+
it "send correct JSON" do
|
24
|
+
options = {
|
25
|
+
healthcheck: {},
|
26
|
+
listeners: [
|
27
|
+
{
|
28
|
+
protocol: "http",
|
29
|
+
in: 80,
|
30
|
+
out: 80
|
31
|
+
}
|
32
|
+
],
|
33
|
+
nodes: []
|
34
|
+
}
|
35
|
+
|
36
|
+
stub_request(:post, "http://localhost/1.0/load_balancers").
|
37
|
+
with(:query => hash_including(:account_id),
|
38
|
+
:headers => { "Authorization" => "Bearer FAKECACHEDTOKEN" }).
|
39
|
+
to_return(:status => 202, :body => %q({"id": "lba-12345"}), :headers => {})
|
40
|
+
|
41
|
+
@load_balancer = Fog::Brightbox::Compute::LoadBalancer.new({ :service => service }.merge(options))
|
42
|
+
assert @load_balancer.save
|
43
|
+
end
|
44
|
+
end
|
21
45
|
end
|