vcloud-edge_gateway 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -169,9 +169,8 @@ module Vcloud
|
|
169
169
|
}
|
170
170
|
]
|
171
171
|
}
|
172
|
+
},
|
172
173
|
|
173
|
-
|
174
|
-
} ,
|
175
174
|
{
|
176
175
|
title: 'should send port as -1 if destination/source_port_ranges are ranges',
|
177
176
|
input: {
|
@@ -207,7 +206,8 @@ module Vcloud
|
|
207
206
|
}
|
208
207
|
]
|
209
208
|
}
|
210
|
-
}
|
209
|
+
},
|
210
|
+
|
211
211
|
{
|
212
212
|
title: 'should send port same as destination/source_port_range if destination/source_port_range are decimals and not ranges',
|
213
213
|
input: {
|
@@ -243,6 +243,45 @@ module Vcloud
|
|
243
243
|
}
|
244
244
|
]
|
245
245
|
},
|
246
|
+
},
|
247
|
+
|
248
|
+
{
|
249
|
+
title: 'should handle a rule specifiying "any" protocols',
|
250
|
+
input: {
|
251
|
+
firewall_rules: [
|
252
|
+
{
|
253
|
+
description: "allow any protocol",
|
254
|
+
protocols: "any",
|
255
|
+
destination_ip: "10.10.20.20",
|
256
|
+
source_ip: "192.0.2.2",
|
257
|
+
}
|
258
|
+
]
|
259
|
+
},
|
260
|
+
output: {
|
261
|
+
IsEnabled: 'true',
|
262
|
+
DefaultAction: "drop",
|
263
|
+
LogDefaultAction: 'false',
|
264
|
+
FirewallRule: [
|
265
|
+
{
|
266
|
+
Id: '1',
|
267
|
+
IsEnabled: 'true',
|
268
|
+
Description: "allow any protocol",
|
269
|
+
MatchOnTranslate: 'false',
|
270
|
+
Policy: "allow",
|
271
|
+
Protocols: {Any: 'true'},
|
272
|
+
Port: '-1',
|
273
|
+
SourcePort: '-1',
|
274
|
+
DestinationPortRange: "Any",
|
275
|
+
DestinationIp: "10.10.20.20",
|
276
|
+
SourcePortRange: "Any",
|
277
|
+
SourceIp: "192.0.2.2",
|
278
|
+
EnableLogging: 'false',
|
279
|
+
}
|
280
|
+
]
|
281
|
+
},
|
282
|
+
},
|
283
|
+
|
284
|
+
{
|
246
285
|
title: 'output rule order should be same as the input rule order',
|
247
286
|
input: {
|
248
287
|
firewall_rules: [
|
@@ -361,6 +400,7 @@ module Vcloud
|
|
361
400
|
]
|
362
401
|
}
|
363
402
|
}
|
403
|
+
|
364
404
|
]
|
365
405
|
|
366
406
|
test_cases.each do |test_case|
|
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.2.
|
4
|
+
version: 0.2.1
|
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-02-
|
12
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
segments:
|
222
222
|
- 0
|
223
|
-
hash:
|
223
|
+
hash: 2498590766883653195
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
226
|
rubygems_version: 1.8.23
|