summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2015-05-07 13:41:12 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2015-05-08 13:21:49 +0900
commit12d1c1ab83707aa0eac3e072e5a7a45bc2349f3c (patch)
tree2e26b5a0f1499301b2f3b4b6d1f3e5fe1e9b29bf /spec
parentb4ae9f3deca43babcbf93d5dc3c45e5d182eed6f (diff)
Make service name and type configurable
Notes
Notes (review): Verified+2: Jenkins Code-Review+1: Ma Wen Cheng <wenchma@cn.ibm.com> Code-Review+2: Zhiwei Chen <zhiwchen@cn.ibm.com> Code-Review+2: Jan Klare <j.klare@x-ion.de> Workflow+1: Jan Klare <j.klare@x-ion.de> Submitted-by: Jenkins Submitted-at: Fri, 08 May 2015 09:24:17 +0000 Reviewed-on: https://review.openstack.org/180862 Project: stackforge/cookbook-openstack-block-storage Branch: refs/heads/master
Diffstat (limited to 'spec')
-rw-r--r--spec/identity_registration_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/identity_registration_spec.rb b/spec/identity_registration_spec.rb
index c726343..7f0547f 100644
--- a/spec/identity_registration_spec.rb
+++ b/spec/identity_registration_spec.rb
@@ -152,6 +152,25 @@ describe 'openstack-block-storage::identity_registration' do
152 ) 152 )
153 end 153 end
154 154
155 it 'with different service type/name' do
156 node.set['openstack']['block-storage']['service_name'] = 'cinder'
157 node.set['openstack']['block-storage']['service_type'] = 'volume'
158
159 expect(chef_run).to create_endpoint_openstack_identity_register(
160 'Register Cinder V2 Volume Endpoint'
161 ).with(
162 auth_uri: 'http://127.0.0.1:35357/v2.0',
163 bootstrap_token: 'bootstrap-token',
164 service_name: 'cinder',
165 service_type: 'volume',
166 service_description: 'Cinder Volume Service V2',
167 endpoint_region: 'RegionOne',
168 endpoint_adminurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s',
169 endpoint_internalurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s',
170 endpoint_publicurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s'
171 )
172 end
173
155 it 'with custom region override' do 174 it 'with custom region override' do
156 node.set['openstack']['block-storage']['region'] = 'volumeRegion' 175 node.set['openstack']['block-storage']['region'] = 'volumeRegion'
157 expect(chef_run).to create_endpoint_openstack_identity_register( 176 expect(chef_run).to create_endpoint_openstack_identity_register(