vcloud-core 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +2 -2
- data/CHANGELOG.md +6 -0
- data/jenkins.sh +2 -0
- data/jenkins_tests.sh +2 -4
- data/lib/vcloud/core.rb +1 -0
- data/lib/vcloud/core/version.rb +1 -1
- data/rbenv_version.sh +1 -0
- data/spec/integration/core/fog/login_spec.rb +2 -3
- data/spec/integration/core/vdc_spec.rb +1 -4
- data/vcloud-core.gemspec +3 -3
- metadata +76 -50
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d075c4e72f92d0b54e3855234a88de8ff0ee55b0
|
4
|
+
data.tar.gz: 74c3dc522565a4c094012af88a199444522e0574
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c4c2953770b997c143a2e1b253f6fef898c50465021f74e58c00c0847de3fec21391c087db89fc826fdb440e7e72d6ebf4a49c825dc78573b13d0e4f663e361c
|
7
|
+
data.tar.gz: 5c6b1a96ee539135e3697a23bda3575202ff0948c7775a1b6eefe9c86aa9c77d68fcec0581f1246e58738b921af63158e07e1c5af48cccaf29aa3196ff96cf52
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/jenkins.sh
CHANGED
data/jenkins_tests.sh
CHANGED
@@ -18,11 +18,9 @@ ${FOG_CREDENTIAL}:
|
|
18
18
|
vcloud_director_password: ''
|
19
19
|
EOF
|
20
20
|
|
21
|
-
|
21
|
+
source ./rbenv_version.sh
|
22
22
|
|
23
|
-
|
24
|
-
# Ubuntu 12.04 has a bug we hit in Psych when loading YAML files.
|
25
|
-
export RBENV_VERSION="1.9.3"
|
23
|
+
git clean -ffdx
|
26
24
|
|
27
25
|
bundle install --path "${HOME}/bundles/${JOB_NAME}" --shebang="/usr/bin/env ruby"
|
28
26
|
|
data/lib/vcloud/core.rb
CHANGED
data/lib/vcloud/core/version.rb
CHANGED
data/rbenv_version.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export RBENV_VERSION="2.0.0"
|
@@ -37,7 +37,6 @@ describe Vcloud::Core::Fog::Login do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
context "fog credentials without password" do
|
40
|
-
let(:token_length) { 32 }
|
41
40
|
let(:envvar_token) { 'FOG_VCLOUD_TOKEN' }
|
42
41
|
let(:envvar_password) { 'API_PASSWORD' }
|
43
42
|
|
@@ -61,7 +60,7 @@ describe Vcloud::Core::Fog::Login do
|
|
61
60
|
|
62
61
|
expect(ENV).not_to have_key(envvar_token)
|
63
62
|
@temp_token = subject.token(@real_password)
|
64
|
-
expect(@temp_token
|
63
|
+
expect(@temp_token).not_to be_empty
|
65
64
|
end
|
66
65
|
end
|
67
66
|
|
@@ -76,7 +75,7 @@ describe Vcloud::Core::Fog::Login do
|
|
76
75
|
ENV[envvar_token] = old_token
|
77
76
|
@temp_token = subject.token(@real_password)
|
78
77
|
expect(@temp_token).to_not eq(old_token)
|
79
|
-
expect(@temp_token
|
78
|
+
expect(@temp_token).not_to be_empty
|
80
79
|
end
|
81
80
|
end
|
82
81
|
end
|
@@ -80,10 +80,7 @@ describe Vcloud::Core::Vdc do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
it "throws a Forbidden error when trying to access the #name of the Vdc" do
|
83
|
-
expect { subject.name }.to raise_error(
|
84
|
-
Fog::Compute::VcloudDirector::Forbidden,
|
85
|
-
/No access to entity/
|
86
|
-
)
|
83
|
+
expect { subject.name }.to raise_error(Fog::Compute::VcloudDirector::Forbidden)
|
87
84
|
end
|
88
85
|
|
89
86
|
end
|
data/vcloud-core.gemspec
CHANGED
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
21
|
s.require_paths = ['lib']
|
22
22
|
|
23
|
-
s.required_ruby_version = '>=
|
23
|
+
s.required_ruby_version = '>= 2.0.0'
|
24
24
|
|
25
|
-
s.add_runtime_dependency 'fog', '~> 1.
|
25
|
+
s.add_runtime_dependency 'fog', '~> 1.36.0'
|
26
26
|
s.add_runtime_dependency 'mustache', '~> 0.99.0'
|
27
27
|
s.add_runtime_dependency 'highline'
|
28
28
|
s.add_development_dependency 'gem_publisher', '1.2.0'
|
@@ -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.30.1'
|
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'
|
35
35
|
end
|
metadata
CHANGED
@@ -1,126 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- GOV.UK Infrastructure
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: fog
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
19
|
+
version: 1.36.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.36.0
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: mustache
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 0.99.0
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.99.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: highline
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: gem_publisher
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- - =
|
59
|
+
- - '='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: 1.2.0
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.0
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: pry
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - '>='
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: rspec
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
101
|
- - ~>
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: 2.14.1
|
88
104
|
type: :development
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.14.1
|
91
111
|
- !ruby/object:Gem::Dependency
|
92
112
|
name: rubocop
|
93
|
-
requirement:
|
94
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
95
114
|
requirements:
|
96
115
|
- - ~>
|
97
116
|
- !ruby/object:Gem::Version
|
98
117
|
version: 0.30.1
|
99
118
|
type: :development
|
100
119
|
prerelease: false
|
101
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.30.1
|
102
125
|
- !ruby/object:Gem::Dependency
|
103
126
|
name: simplecov
|
104
|
-
requirement:
|
105
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
106
128
|
requirements:
|
107
129
|
- - ~>
|
108
130
|
- !ruby/object:Gem::Version
|
109
131
|
version: 0.7.1
|
110
132
|
type: :development
|
111
133
|
prerelease: false
|
112
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.7.1
|
113
139
|
- !ruby/object:Gem::Dependency
|
114
140
|
name: vcloud-tools-tester
|
115
|
-
requirement:
|
116
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
117
142
|
requirements:
|
118
|
-
- -
|
143
|
+
- - '>='
|
119
144
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
145
|
+
version: '0'
|
121
146
|
type: :development
|
122
147
|
prerelease: false
|
123
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
124
153
|
description: Core tools for interacting with VMware vCloud Director. Includes vCloud
|
125
154
|
Query, a light wrapper round the vCloud Query API.
|
126
155
|
email:
|
@@ -171,6 +200,7 @@ files:
|
|
171
200
|
- lib/vcloud/core/vdc.rb
|
172
201
|
- lib/vcloud/core/version.rb
|
173
202
|
- lib/vcloud/core/vm.rb
|
203
|
+
- rbenv_version.sh
|
174
204
|
- spec/integration/core/edge_gateway_spec.rb
|
175
205
|
- spec/integration/core/fog/login_spec.rb
|
176
206
|
- spec/integration/core/fog_spec.rb
|
@@ -215,30 +245,26 @@ files:
|
|
215
245
|
homepage: http://github.com/gds-operations/vcloud-core
|
216
246
|
licenses:
|
217
247
|
- MIT
|
248
|
+
metadata: {}
|
218
249
|
post_install_message:
|
219
250
|
rdoc_options: []
|
220
251
|
require_paths:
|
221
252
|
- lib
|
222
253
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
-
none: false
|
224
254
|
requirements:
|
225
|
-
- -
|
255
|
+
- - '>='
|
226
256
|
- !ruby/object:Gem::Version
|
227
|
-
version:
|
257
|
+
version: 2.0.0
|
228
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
-
none: false
|
230
259
|
requirements:
|
231
|
-
- -
|
260
|
+
- - '>='
|
232
261
|
- !ruby/object:Gem::Version
|
233
262
|
version: '0'
|
234
|
-
segments:
|
235
|
-
- 0
|
236
|
-
hash: -4307019916057884210
|
237
263
|
requirements: []
|
238
264
|
rubyforge_project:
|
239
|
-
rubygems_version: 1.
|
265
|
+
rubygems_version: 2.1.11
|
240
266
|
signing_key:
|
241
|
-
specification_version:
|
267
|
+
specification_version: 4
|
242
268
|
summary: Core tools for interacting with VMware vCloud Director
|
243
269
|
test_files:
|
244
270
|
- spec/integration/core/edge_gateway_spec.rb
|