vcloud-edge_gateway 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/lib/vcloud/edge_gateway.rb +0 -10
- data/lib/vcloud/edge_gateway/version.rb +1 -1
- data/lib/vcloud/edge_gateway_services.rb +1 -1
- data/spec/integration/edge_gateway/edge_gateway_services_spec.rb +1 -1
- data/spec/integration/edge_gateway/firewall_service_spec.rb +1 -1
- data/spec/integration/edge_gateway/load_balancer_service_spec.rb +2 -2
- data/spec/integration/edge_gateway/nat_service_spec.rb +2 -2
- data/vcloud-edge_gateway.gemspec +1 -1
- metadata +5 -5
data/CHANGELOG.md
CHANGED
data/lib/vcloud/edge_gateway.rb
CHANGED
@@ -20,13 +20,3 @@ require 'vcloud/edge_gateway/firewall_configuration_differ'
|
|
20
20
|
require 'vcloud/edge_gateway/load_balancer_configuration_differ'
|
21
21
|
require 'vcloud/edge_gateway/edge_gateway_configuration'
|
22
22
|
|
23
|
-
|
24
|
-
module Vcloud
|
25
|
-
module EdgeGateway
|
26
|
-
|
27
|
-
def self.logger
|
28
|
-
@logger ||=Logger.new(STDOUT)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
@@ -23,7 +23,7 @@ module Vcloud
|
|
23
23
|
if proposed_config.update_required?
|
24
24
|
edge_gateway.update_configuration proposed_config.config
|
25
25
|
else
|
26
|
-
Vcloud::
|
26
|
+
Vcloud::Core.logger.info("EdgeGatewayServices.update: Configuration is already up to date. Skipping.")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -140,7 +140,7 @@ module Vcloud
|
|
140
140
|
|
141
141
|
def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
|
142
142
|
vcloud_time = timestamp.strftime('%FT%T.000Z')
|
143
|
-
q = QueryRunner.new
|
143
|
+
q = Vcloud::Core::QueryRunner.new
|
144
144
|
|
145
145
|
q.run('task',
|
146
146
|
:filter =>
|
@@ -70,7 +70,7 @@ module Vcloud
|
|
70
70
|
end
|
71
71
|
|
72
72
|
it "and then should not configure the firewall service if updated again with the same configuration (idempotency)" do
|
73
|
-
expect(Vcloud::
|
73
|
+
expect(Vcloud::Core.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
|
74
74
|
EdgeGatewayServices.new.update(@initial_firewall_config_file)
|
75
75
|
end
|
76
76
|
|
@@ -103,7 +103,7 @@ module Vcloud
|
|
103
103
|
end
|
104
104
|
|
105
105
|
it "should not then configure the LoadBalancerService if updated again with the same configuration" do
|
106
|
-
expect(Vcloud::
|
106
|
+
expect(Vcloud::Core.logger).
|
107
107
|
to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
|
108
108
|
EdgeGatewayServices.new.update(@initial_load_balancer_config_file)
|
109
109
|
end
|
@@ -190,7 +190,7 @@ module Vcloud
|
|
190
190
|
|
191
191
|
def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
|
192
192
|
vcloud_time = timestamp.strftime('%FT%T.000Z')
|
193
|
-
q = QueryRunner.new
|
193
|
+
q = Vcloud::Core::QueryRunner.new
|
194
194
|
q.run('task',
|
195
195
|
:filter =>
|
196
196
|
"name==networkConfigureEdgeGatewayServices;objectName==#{@edge_name};startDate=ge=#{vcloud_time}",
|
@@ -90,7 +90,7 @@ module Vcloud
|
|
90
90
|
end
|
91
91
|
|
92
92
|
it "and then should not configure the firewall service if updated again with the same configuration (idempotency)" do
|
93
|
-
expect(Vcloud::
|
93
|
+
expect(Vcloud::Core.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
|
94
94
|
EdgeGatewayServices.new.update(@initial_nat_config_file)
|
95
95
|
end
|
96
96
|
|
@@ -200,7 +200,7 @@ module Vcloud
|
|
200
200
|
|
201
201
|
def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
|
202
202
|
vcloud_time = timestamp.strftime('%FT%T.000Z')
|
203
|
-
q = QueryRunner.new
|
203
|
+
q = Vcloud::Core::QueryRunner.new
|
204
204
|
q.run('task',
|
205
205
|
:filter => "name==networkConfigureEdgeGatewayServices;objectName==#{@edge_name};startDate=ge=#{vcloud_time}",
|
206
206
|
:sortDesc => 'startDate',
|
data/vcloud-edge_gateway.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.required_ruby_version = '>= 1.9.2'
|
23
23
|
|
24
24
|
s.add_runtime_dependency 'fog', '>= 1.21.0'
|
25
|
-
s.add_runtime_dependency 'vcloud-core', '~> 0.0
|
25
|
+
s.add_runtime_dependency 'vcloud-core', '~> 0.2.0'
|
26
26
|
s.add_runtime_dependency 'hashdiff'
|
27
27
|
s.add_development_dependency 'rake'
|
28
28
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-edge_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-05-
|
12
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.0
|
37
|
+
version: 0.2.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.0
|
45
|
+
version: 0.2.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: hashdiff
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
segments:
|
242
242
|
- 0
|
243
|
-
hash:
|
243
|
+
hash: 1568405041543007530
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
246
|
rubygems_version: 1.8.23
|