fog-brightbox 1.1.0 → 1.2.0

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: cfa9b2e98e5691a853fa9b6e68f37de41f10ac081d04402d4be4c5842b1ba930
4
- data.tar.gz: d95737e730099ba23713c5f4c2c196c2e7aab63387c7febe1e3d2608a84174b9
3
+ metadata.gz: e26f79fc46a2f77a167b2bfdbec200eb894fe31564c2de8c032ef7b0988121ee
4
+ data.tar.gz: 907d351d14930aca9ac3163419b1b24cde2b38e51ed5018891330ddd220bc44f
5
5
  SHA512:
6
- metadata.gz: 43a52dc0cb5a4444eafd03d9ad6414bc3a08ab826d97e658a505229d4c7a32b2267ced2206e7d7e9f19cbc0dc02576d172fce9eb1f786c69d75f8808e0134ad8
7
- data.tar.gz: fbb69efe2d339176ba36bab0ba55da159e45a525adeeb0d742819e52617a3d0f61b9e5c6b7d2e0fc2a275fc56eac15ae026cad6f4fa8446145a6c510f19b5183
6
+ metadata.gz: 0fef06b499b0df676a162b957ec938dcde62ee20144c6adb17258d8b5589c635874bf4a67ec58a21392e5dfe88b048efce6aa8ef677ecb2a14672c149e9501ad
7
+ data.tar.gz: 7bd7aa1451f637f20f1746b5efbe51afadbe294a4117061be4751bdba55798c5256390b5d557827c4a95db19a3542fe541ab643644dea761abfba9b8d16da10f
@@ -1,3 +1,10 @@
1
+ ### 1.2.0 / 2020-11-16
2
+
3
+ Changes:
4
+
5
+ * Add `LoadBalancer#ssl_minimum_version` attribute to configure the TLS/SSL
6
+ version supported by the load balancer.
7
+
1
8
  ### 1.1.0 / 2020-06-30
2
9
 
3
10
  Changes:
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Brightbox
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Thornthwaite