vcloud-net_launcher 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.6.0 (2014-09-11)
|
2
|
+
|
3
|
+
- Fix schema bug preventing use of 'description', 'is_shared', 'dns_suffix' options
|
4
|
+
- Upgrade dependency on vCloud Core to 0.11.0 which prevents plaintext
|
5
|
+
passwords in FOG_RC. Please use tokens via vcloud-login as per
|
6
|
+
the documentation: http://gds-operations.github.io/vcloud-tools/usage/
|
7
|
+
|
1
8
|
## 0.5.1 (2014-08-12)
|
2
9
|
|
3
10
|
- Upgrade dependency on vCloud Core to 0.10.0 for parity with other vCloud
|
@@ -15,6 +15,10 @@ module Vcloud
|
|
15
15
|
type: 'string',
|
16
16
|
required: true,
|
17
17
|
},
|
18
|
+
description: {
|
19
|
+
type: 'string',
|
20
|
+
required: false,
|
21
|
+
},
|
18
22
|
edge_gateway: {
|
19
23
|
type: 'string',
|
20
24
|
required: false,
|
@@ -28,6 +32,10 @@ module Vcloud
|
|
28
32
|
required: false,
|
29
33
|
acceptable_values: %w{ isolated natRouted },
|
30
34
|
},
|
35
|
+
is_shared: {
|
36
|
+
type: 'boolean',
|
37
|
+
required: false,
|
38
|
+
},
|
31
39
|
is_inherited: {
|
32
40
|
type: 'boolean',
|
33
41
|
required: false,
|
@@ -44,6 +52,10 @@ module Vcloud
|
|
44
52
|
type: 'ip_address',
|
45
53
|
required: false,
|
46
54
|
},
|
55
|
+
dns_suffix: {
|
56
|
+
type: 'string',
|
57
|
+
required: false,
|
58
|
+
},
|
47
59
|
dns1: {
|
48
60
|
type: 'ip_address',
|
49
61
|
required: false,
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Vcloud::NetLauncher do
|
4
4
|
context "NetLaunch schema validation" do
|
5
|
-
it "validates a legal schema" do
|
5
|
+
it "validates a legal minimal schema" do
|
6
6
|
test_config = {
|
7
7
|
:org_vdc_networks => [
|
8
8
|
:name => "Valid network",
|
@@ -15,6 +15,27 @@ describe Vcloud::NetLauncher do
|
|
15
15
|
expect(validator.errors).to be_empty
|
16
16
|
end
|
17
17
|
|
18
|
+
it "validates a legal more complete schema" do
|
19
|
+
test_config = {
|
20
|
+
:org_vdc_networks => [ {
|
21
|
+
:name => "Valid network",
|
22
|
+
:description => "A description of this network",
|
23
|
+
:vdc_name => "Some vDC",
|
24
|
+
:fence_mode => "isolated",
|
25
|
+
:is_shared => true,
|
26
|
+
:gateway => "192.0.2.1",
|
27
|
+
:netmask => "255.255.255.0",
|
28
|
+
:dns_suffix => "mynet.example.com",
|
29
|
+
:dns1 => "192.0.2.11",
|
30
|
+
:dns2 => "192.0.2.12",
|
31
|
+
}]
|
32
|
+
}
|
33
|
+
|
34
|
+
validator = Vcloud::Core::ConfigValidator.validate(:base, test_config, Vcloud::NetLauncher::Schema::NET_LAUNCH)
|
35
|
+
expect(validator.valid?).to be_true
|
36
|
+
expect(validator.errors).to be_empty
|
37
|
+
end
|
38
|
+
|
18
39
|
it "does not validate an illegal schema" do
|
19
40
|
test_config = {
|
20
41
|
:no_networks_here => {
|
data/vcloud-net_launcher.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.required_ruby_version = '>= 1.9.3'
|
24
24
|
|
25
|
-
s.add_runtime_dependency 'vcloud-core', '~> 0.
|
25
|
+
s.add_runtime_dependency 'vcloud-core', '~> 0.11.0'
|
26
26
|
s.add_development_dependency 'gem_publisher', '1.2.0'
|
27
27
|
s.add_development_dependency 'pry'
|
28
28
|
s.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-net_launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,43 +9,33 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: vcloud-core
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &9595440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.11.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.10.0
|
24
|
+
version_requirements: *9595440
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: gem_publisher
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &9593640 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
|
-
- -
|
30
|
+
- - =
|
36
31
|
- !ruby/object:Gem::Version
|
37
32
|
version: 1.2.0
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - '='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.2.0
|
35
|
+
version_requirements: *9593640
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: pry
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &9592600 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ! '>='
|
@@ -53,15 +43,10 @@ dependencies:
|
|
53
43
|
version: '0'
|
54
44
|
type: :development
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
46
|
+
version_requirements: *9592600
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
48
|
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &9591440 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
51
|
requirements:
|
67
52
|
- - ! '>='
|
@@ -69,15 +54,10 @@ dependencies:
|
|
69
54
|
version: '0'
|
70
55
|
type: :development
|
71
56
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
57
|
+
version_requirements: *9591440
|
78
58
|
- !ruby/object:Gem::Dependency
|
79
59
|
name: rspec
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &9590540 !ruby/object:Gem::Requirement
|
81
61
|
none: false
|
82
62
|
requirements:
|
83
63
|
- - ~>
|
@@ -85,15 +65,10 @@ dependencies:
|
|
85
65
|
version: 2.14.1
|
86
66
|
type: :development
|
87
67
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 2.14.1
|
68
|
+
version_requirements: *9590540
|
94
69
|
- !ruby/object:Gem::Dependency
|
95
70
|
name: rubocop
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &9589420 !ruby/object:Gem::Requirement
|
97
72
|
none: false
|
98
73
|
requirements:
|
99
74
|
- - ~>
|
@@ -101,15 +76,10 @@ dependencies:
|
|
101
76
|
version: 0.23.0
|
102
77
|
type: :development
|
103
78
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 0.23.0
|
79
|
+
version_requirements: *9589420
|
110
80
|
- !ruby/object:Gem::Dependency
|
111
81
|
name: simplecov
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &9604920 !ruby/object:Gem::Requirement
|
113
83
|
none: false
|
114
84
|
requirements:
|
115
85
|
- - ~>
|
@@ -117,15 +87,10 @@ dependencies:
|
|
117
87
|
version: 0.7.1
|
118
88
|
type: :development
|
119
89
|
prerelease: false
|
120
|
-
version_requirements:
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 0.7.1
|
90
|
+
version_requirements: *9604920
|
126
91
|
- !ruby/object:Gem::Dependency
|
127
92
|
name: vcloud-tools-tester
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirement: &9603860 !ruby/object:Gem::Requirement
|
129
94
|
none: false
|
130
95
|
requirements:
|
131
96
|
- - ~>
|
@@ -133,12 +98,7 @@ dependencies:
|
|
133
98
|
version: 0.2.0
|
134
99
|
type: :development
|
135
100
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ~>
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 0.2.0
|
101
|
+
version_requirements: *9603860
|
142
102
|
description: Tool to launch and configure vCloud networks. Uses vcloud-core.
|
143
103
|
email:
|
144
104
|
- anna.shipman@digital.cabinet-office.gov.uk
|
@@ -197,10 +157,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
157
|
version: '0'
|
198
158
|
segments:
|
199
159
|
- 0
|
200
|
-
hash:
|
160
|
+
hash: 2977754542599519080
|
201
161
|
requirements: []
|
202
162
|
rubyforge_project:
|
203
|
-
rubygems_version: 1.8.
|
163
|
+
rubygems_version: 1.8.11
|
204
164
|
signing_key:
|
205
165
|
specification_version: 3
|
206
166
|
summary: Tool to launch and configure vCloud networks
|