vcloud-net-spinner 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -40,11 +40,12 @@ module Component
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def https(options = {})
|
43
|
-
|
43
|
+
raise "vCloud Director does not support health check URI for SSL" unless options[:health_check_path].nil?
|
44
|
+
defaults = { :enabled => true, :health_check_path => "", :port => 443, :health_check_mode => "SSL" }
|
44
45
|
options = defaults.merge(options)
|
45
|
-
@current_pool[:ports] << { :port => options[:port], :health_check_port => options[:health_check_port],
|
46
|
-
:
|
47
|
-
:
|
46
|
+
@current_pool[:ports] << { :port => options[:port], :health_check_port => options[:health_check_port], # Health check path (URI) not supported for SSL
|
47
|
+
:enabled => options[:enabled], :type => :https,
|
48
|
+
:health_check_mode => options[:health_check_mode] }
|
48
49
|
end
|
49
50
|
|
50
51
|
def load_balances(port, options = {})
|
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.
|
1
|
+
VERSION = '0.2.0'
|
data/spec/component/lb.xml
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
<HealthCheckPort>9401</HealthCheckPort>
|
28
28
|
<HealthCheck>
|
29
29
|
<Mode>SSL</Mode>
|
30
|
-
<Uri
|
30
|
+
<Uri/>
|
31
31
|
<HealthThreshold>2</HealthThreshold>
|
32
32
|
<UnhealthThreshold>3</UnhealthThreshold>
|
33
33
|
<Interval>5</Interval>
|
@@ -113,7 +113,7 @@
|
|
113
113
|
<HealthCheckPort>9409</HealthCheckPort>
|
114
114
|
<HealthCheck>
|
115
115
|
<Mode>SSL</Mode>
|
116
|
-
<Uri
|
116
|
+
<Uri/>
|
117
117
|
<HealthThreshold>2</HealthThreshold>
|
118
118
|
<UnhealthThreshold>3</UnhealthThreshold>
|
119
119
|
<Interval>5</Interval>
|
@@ -218,7 +218,7 @@
|
|
218
218
|
<HealthCheckPort/>
|
219
219
|
<HealthCheck>
|
220
220
|
<Mode>SSL</Mode>
|
221
|
-
<Uri
|
221
|
+
<Uri/>
|
222
222
|
<HealthThreshold>2</HealthThreshold>
|
223
223
|
<UnhealthThreshold>3</UnhealthThreshold>
|
224
224
|
<Interval>5</Interval>
|
@@ -323,7 +323,7 @@
|
|
323
323
|
<HealthCheckPort/>
|
324
324
|
<HealthCheck>
|
325
325
|
<Mode>SSL</Mode>
|
326
|
-
<Uri
|
326
|
+
<Uri/>
|
327
327
|
<HealthThreshold>2</HealthThreshold>
|
328
328
|
<UnhealthThreshold>3</UnhealthThreshold>
|
329
329
|
<Interval>5</Interval>
|
@@ -69,5 +69,19 @@ describe "load balancer" do
|
|
69
69
|
end
|
70
70
|
end }.to raise_error
|
71
71
|
end
|
72
|
+
|
73
|
+
it "should raise an exception if a healthcheck URI is defined for a healthcheck using a protocol other than HTTP" do
|
74
|
+
expect {
|
75
|
+
load_balancer do
|
76
|
+
configure "Oz" do
|
77
|
+
pool ["172.16.0.2", "172.16.0.3"] do
|
78
|
+
https :health_check_port => 9401, :health_check_path => "/yellowbrick"
|
79
|
+
end
|
80
|
+
|
81
|
+
virtual_server :name => "Wizard of Oz", :interface => "TestData", :ip => "200.11.99.71"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
}.to raise_error
|
85
|
+
end
|
72
86
|
end
|
73
87
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-net-spinner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -243,7 +243,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
segments:
|
245
245
|
- 0
|
246
|
-
hash:
|
246
|
+
hash: -1483965208478825235
|
247
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
248
|
none: false
|
249
249
|
requirements:
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
segments:
|
254
254
|
- 0
|
255
|
-
hash:
|
255
|
+
hash: -1483965208478825235
|
256
256
|
requirements: []
|
257
257
|
rubyforge_project: vcloud-net-spinner
|
258
258
|
rubygems_version: 1.8.23
|