vagrant-openstack-provider 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6700023eabc299f30f0c0403dac3955bd22c8d78
4
+ data.tar.gz: 5158ae5cdaeb3c306fed463f43a5adf33cff0190
5
+ SHA512:
6
+ metadata.gz: f7c0405fd3d9aecd3c2ad876018ce5bec702ad61f6cea4799a12e7288cbebd2e143a2731959c260e0f61afa0ef1fc8e3333131884b649bdb6c1cf0f18fa3211a
7
+ data.tar.gz: 1e12503398d53f5ac8a4b59e47267f8a8ca64f6f5ec4de5df291cc210a4307af0c34c557ffbdc72ea59e2ae15aecfc591ff9b71d23b313c4c711a1fc2280a782
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.1 (October 3, 2014)
2
+
3
+ BUG FIXES:
4
+
5
+ - initialize': must pass :url (ArgumentError) when neutron url is not present [#112](https://github.com/ggiamarchi/vagrant-openstack-provider/issues/112)
6
+
1
7
  # 0.4.0 (September 23, 2014)
2
8
 
3
9
  FEATURES:
@@ -45,7 +45,7 @@ module VagrantPlugins
45
45
  client.session.endpoints[service['type'].to_sym] = url unless url.empty?
46
46
  end
47
47
 
48
- read_network_api_version(env) if config.openstack_network_url.nil?
48
+ read_network_api_version(env) if config.openstack_network_url.nil? && !client.session.endpoints[:network].nil?
49
49
  end
50
50
 
51
51
  def read_network_api_version(env)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Openstack
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -187,5 +187,42 @@ describe VagrantPlugins::Openstack::Action::ConnectOpenstack do
187
187
  expect { @action.call(env) }.to raise_error(Errors::MultipleApiVersion)
188
188
  end
189
189
  end
190
+
191
+ context 'with only keystone and nova' do
192
+ it 'read service catalog and stores endpoints URL in session' do
193
+ catalog = [
194
+ {
195
+ 'endpoints' => [
196
+ {
197
+ 'publicURL' => 'http://nova/v2/projectId',
198
+ 'id' => '1'
199
+ }
200
+ ],
201
+ 'type' => 'compute',
202
+ 'name' => 'nova'
203
+ },
204
+ {
205
+ 'endpoints' => [
206
+ {
207
+ 'publicURL' => 'http://keystone/v2.0',
208
+ 'id' => '2'
209
+ }
210
+ ],
211
+ 'type' => 'identity',
212
+ 'name' => 'keystone'
213
+ }
214
+ ]
215
+
216
+ double.tap do |keystone|
217
+ keystone.stub(:authenticate).with(anything) { catalog }
218
+ env[:openstack_client].stub(:keystone) { keystone }
219
+ end
220
+
221
+ @action.call(env)
222
+
223
+ expect(env[:openstack_client].session.endpoints)
224
+ .to eq(compute: 'http://nova/v2/projectId', identity: 'http://keystone/v2.0')
225
+ end
226
+ end
190
227
  end
191
228
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openstack-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.4.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Guillaume Giamarchi
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-09-22 00:00:00.000000000 Z
12
+ date: 2014-10-03 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: json
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - '='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - '='
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rest-client
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: terminal-table
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - '='
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - '='
61
54
  - !ruby/object:Gem::Version
@@ -63,7 +56,6 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: sshkey
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
60
  - - '='
69
61
  - !ruby/object:Gem::Version
@@ -71,7 +63,6 @@ dependencies:
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
67
  - - '='
77
68
  - !ruby/object:Gem::Version
@@ -79,7 +70,6 @@ dependencies:
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: colorize
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
74
  - - '='
85
75
  - !ruby/object:Gem::Version
@@ -87,7 +77,6 @@ dependencies:
87
77
  type: :runtime
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
81
  - - '='
93
82
  - !ruby/object:Gem::Version
@@ -95,23 +84,20 @@ dependencies:
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: rake
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: rspec
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
102
  - - ~>
117
103
  - !ruby/object:Gem::Version
@@ -119,7 +105,6 @@ dependencies:
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
109
  - - ~>
125
110
  - !ruby/object:Gem::Version
@@ -127,17 +112,15 @@ dependencies:
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: aruba
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - '>='
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - '>='
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  description: Enables Vagrant to manage machines in Openstack Cloud.
@@ -221,33 +204,26 @@ files:
221
204
  - vagrant-openstack-provider.gemspec
222
205
  homepage: https://github.com/ggiamarchi/vagrant-openstack-provider
223
206
  licenses: []
207
+ metadata: {}
224
208
  post_install_message:
225
209
  rdoc_options: []
226
210
  require_paths:
227
211
  - lib
228
212
  required_ruby_version: !ruby/object:Gem::Requirement
229
- none: false
230
213
  requirements:
231
- - - ! '>='
214
+ - - '>='
232
215
  - !ruby/object:Gem::Version
233
216
  version: '0'
234
- segments:
235
- - 0
236
- hash: -4437050053646903495
237
217
  required_rubygems_version: !ruby/object:Gem::Requirement
238
- none: false
239
218
  requirements:
240
- - - ! '>='
219
+ - - '>='
241
220
  - !ruby/object:Gem::Version
242
221
  version: '0'
243
- segments:
244
- - 0
245
- hash: -4437050053646903495
246
222
  requirements: []
247
223
  rubyforge_project:
248
- rubygems_version: 1.8.23.2
224
+ rubygems_version: 2.0.14
249
225
  signing_key:
250
- specification_version: 3
226
+ specification_version: 4
251
227
  summary: Enables Vagrant to manage machines in Openstack Cloud.
252
228
  test_files:
253
229
  - spec/vagrant-openstack-provider/action/connect_openstack_spec.rb