summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-02 21:10:40 +0000
committerGerrit Code Review <review@openstack.org>2015-04-02 21:10:40 +0000
commit388d95b8aa9336a3bc2e2b1d07680df30544c643 (patch)
treedd42ee83e0f1dc0435382ba0864218bf71133ad5 /spec
parentc836a99b044489e0024389eb3ad302d094793136 (diff)
parent1a7152c2d9f15445bc4f808f0193afd86691fa3a (diff)
Merge "Raise an error when san private key is missing"
Diffstat (limited to 'spec')
-rw-r--r--spec/volume_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/volume_spec.rb b/spec/volume_spec.rb
index 1fc98f9..28d6c3c 100644
--- a/spec/volume_spec.rb
+++ b/spec/volume_spec.rb
@@ -165,12 +165,13 @@ describe 'openstack-block-storage::volume' do
165 node.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.ibm.storwize_svc.StorwizeSVCDriver' 165 node.set['openstack']['block-storage']['volume']['driver'] = 'cinder.volume.drivers.ibm.storwize_svc.StorwizeSVCDriver'
166 end 166 end
167 167
168 it 'configures storewize private key' do 168 it 'download san private key if needed' do
169 san_key = chef_run.file chef_run.node['openstack']['block-storage']['san']['san_private_key'] 169 node.set['openstack']['block-storage']['storwize']['san_private_key_url'] = 'http://server/key'
170 expect(san_key.mode).to eq('0400') 170 expect(chef_run).to create_remote_file('/v7000_rsa').with(
171 expect(chef_run).to create_file('/v7000_rsa').with( 171 source: 'http://server/key',
172 user: 'cinder', 172 user: 'cinder',
173 group: 'cinder' 173 group: 'cinder',
174 mode: '0400'
174 ) 175 )
175 end 176 end
176 177