vcloud-core 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +13 -1
- data/README.md +13 -8
- data/lib/vcloud/core/version.rb +1 -1
- data/spec/vcloud/core/config_loader_spec.rb +155 -159
- data/spec/vcloud/core/config_validator_spec.rb +615 -619
- data/spec/vcloud/core/edge_gateway_interface_spec.rb +65 -70
- data/spec/vcloud/core/edge_gateway_spec.rb +138 -144
- data/spec/vcloud/core/independent_disk_spec.rb +15 -15
- data/spec/vcloud/core/metadata_helper_spec.rb +73 -77
- data/spec/vcloud/core/org_vdc_network_spec.rb +226 -230
- data/spec/vcloud/core/query_runner_spec.rb +31 -31
- data/spec/vcloud/core/query_spec.rb +1 -1
- data/spec/vcloud/core/vapp_spec.rb +175 -179
- data/spec/vcloud/core/vapp_template_spec.rb +82 -86
- data/spec/vcloud/core/vdc_spec.rb +47 -53
- data/spec/vcloud/core/vm_spec.rb +354 -358
- data/vcloud-core.gemspec +4 -4
- metadata +28 -30
- data/spec/integration/README.md +0 -36
data/vcloud-core.gemspec
CHANGED
@@ -8,10 +8,10 @@ require 'vcloud/core/version'
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = 'vcloud-core'
|
10
10
|
s.version = Vcloud::Core::VERSION
|
11
|
-
s.authors = ['
|
12
|
-
s.email = ['
|
11
|
+
s.authors = ['GOV.UK Infrastructure']
|
12
|
+
s.email = ['vcloud-tools@digital.cabinet-office.gov.uk']
|
13
13
|
s.summary = 'Core tools for interacting with VMware vCloud Director'
|
14
|
-
s.description = 'Core tools for interacting with VMware vCloud Director. Includes
|
14
|
+
s.description = 'Core tools for interacting with VMware vCloud Director. Includes vCloud Query, a light wrapper round the vCloud Query API.'
|
15
15
|
s.homepage = 'http://github.com/gds-operations/vcloud-core'
|
16
16
|
s.license = 'MIT'
|
17
17
|
|
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
32
32
|
s.add_development_dependency 'rubocop', '~> 0.23.0'
|
33
33
|
s.add_development_dependency 'simplecov', '~> 0.7.1'
|
34
|
-
s.add_development_dependency 'vcloud-tools-tester'
|
34
|
+
s.add_development_dependency 'vcloud-tools-tester', '~> 1.0'
|
35
35
|
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- GOV.UK Infrastructure
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
16
|
-
requirement: &
|
16
|
+
requirement: &5950080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.25.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *5950080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mustache
|
27
|
-
requirement: &
|
27
|
+
requirement: &5949200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.99.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *5949200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: highline
|
38
|
-
requirement: &
|
38
|
+
requirement: &5948440 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *5948440
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: gem_publisher
|
49
|
-
requirement: &
|
49
|
+
requirement: &5947020 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - =
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.2.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *5947020
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: pry
|
60
|
-
requirement: &
|
60
|
+
requirement: &5945900 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *5945900
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
requirement: &
|
71
|
+
requirement: &5944360 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *5944360
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec
|
82
|
-
requirement: &
|
82
|
+
requirement: &4922220 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.14.1
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *4922220
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rubocop
|
93
|
-
requirement: &
|
93
|
+
requirement: &4920260 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.23.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *4920260
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: simplecov
|
104
|
-
requirement: &
|
104
|
+
requirement: &4919020 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,22 +109,22 @@ dependencies:
|
|
109
109
|
version: 0.7.1
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *4919020
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: vcloud-tools-tester
|
115
|
-
requirement: &
|
115
|
+
requirement: &4917760 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ~>
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '0'
|
120
|
+
version: '1.0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
124
|
-
description: Core tools for interacting with VMware vCloud Director. Includes
|
123
|
+
version_requirements: *4917760
|
124
|
+
description: Core tools for interacting with VMware vCloud Director. Includes vCloud
|
125
125
|
Query, a light wrapper round the vCloud Query API.
|
126
126
|
email:
|
127
|
-
-
|
127
|
+
- vcloud-tools@digital.cabinet-office.gov.uk
|
128
128
|
executables:
|
129
129
|
- vcloud-login
|
130
130
|
- vcloud-logout
|
@@ -171,7 +171,6 @@ files:
|
|
171
171
|
- lib/vcloud/core/vdc.rb
|
172
172
|
- lib/vcloud/core/version.rb
|
173
173
|
- lib/vcloud/core/vm.rb
|
174
|
-
- spec/integration/README.md
|
175
174
|
- spec/integration/core/edge_gateway_spec.rb
|
176
175
|
- spec/integration/core/fog/login_spec.rb
|
177
176
|
- spec/integration/core/fog_spec.rb
|
@@ -234,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
233
|
version: '0'
|
235
234
|
segments:
|
236
235
|
- 0
|
237
|
-
hash:
|
236
|
+
hash: -2320468645217141808
|
238
237
|
requirements: []
|
239
238
|
rubyforge_project:
|
240
239
|
rubygems_version: 1.8.11
|
@@ -242,7 +241,6 @@ signing_key:
|
|
242
241
|
specification_version: 3
|
243
242
|
summary: Core tools for interacting with VMware vCloud Director
|
244
243
|
test_files:
|
245
|
-
- spec/integration/README.md
|
246
244
|
- spec/integration/core/edge_gateway_spec.rb
|
247
245
|
- spec/integration/core/fog/login_spec.rb
|
248
246
|
- spec/integration/core/fog_spec.rb
|
data/spec/integration/README.md
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# Running vCloud Core Integration Tests
|
2
|
-
|
3
|
-
## Prerequisites
|
4
|
-
|
5
|
-
- Access to a suitable vCloud Director organisation.
|
6
|
-
|
7
|
-
**NB** It is not safe to run them against an environment that is in use
|
8
|
-
(e.g. production, preview) as many of the tests clear down all config at
|
9
|
-
the beginning and/or end to ensure the environment is as the tests expect.
|
10
|
-
|
11
|
-
- A config file with the settings configured.
|
12
|
-
|
13
|
-
There is a [template file](spec/integration/vcloud_tools_testing_config.yaml.template) to
|
14
|
-
help with this. Copy the template file to `spec/integration/vcloud_tools_testing_config.yaml`
|
15
|
-
and update with parameters suitable for your environment.
|
16
|
-
|
17
|
-
- You need to include the set-up for your testing environment in your
|
18
|
-
[fog file](https://github.com/gds-operations/vcloud-core#credentials).
|
19
|
-
|
20
|
-
- The tests use the [vCloud Tools Tester](http://rubygems.org/gems/vcloud-tools-tester) gem.
|
21
|
-
You do not need to install this, `bundler` will do this for you.
|
22
|
-
|
23
|
-
## Parameters
|
24
|
-
|
25
|
-
````
|
26
|
-
default: # This is the fog credential that refers to your testing environment, e.g. `test_credential`
|
27
|
-
vdc_1_name: # The name of a VDC
|
28
|
-
catalog: # A catalog
|
29
|
-
vapp_template: # A vApp Template within that catalog
|
30
|
-
network_1: # The name of the primary network
|
31
|
-
network_1_ip: # The IP address of the primary network
|
32
|
-
````
|
33
|
-
|
34
|
-
## To run the tests
|
35
|
-
|
36
|
-
`FOG_CREDENTIAL=test_credential bundle exec integration`
|