From 801a2735cf21d5627b79ce336f2413a754469daa Mon Sep 17 00:00:00 2001 From: Jun Hong Li Date: Tue, 28 Oct 2014 15:58:36 +0800 Subject: [PATCH] Change spec since v2 api is used as default Since the cinder endpoint API version has been changed to v2 in https://review.openstack.org/#/c/130738, the spec needs to be adapted to this change accordingly. This patch will break unit test unless the patch in https://review.openstack.org/#/c/130738 is merged, because the API version is changed in cookbook-openstack-common project. I've run unit test in my local env successfully with these two matched patches. Change-Id: I28d182ff9e26fd31e5cd4f713dbffde3f04807dc Closes-bug: #1385099 --- spec/identity_registration_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/identity_registration_spec.rb b/spec/identity_registration_spec.rb index 0e0884d..8c7829c 100644 --- a/spec/identity_registration_spec.rb +++ b/spec/identity_registration_spec.rb @@ -33,9 +33,9 @@ describe 'openstack-block-storage::identity_registration' do service_type: 'volume', service_description: 'Cinder Volume Service', endpoint_region: 'RegionOne', - endpoint_adminurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s', - endpoint_internalurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s', - endpoint_publicurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s' + endpoint_adminurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s', + endpoint_internalurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s', + endpoint_publicurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s' ) end @@ -50,9 +50,9 @@ describe 'openstack-block-storage::identity_registration' do service_type: 'volume', service_description: 'Cinder Volume Service', endpoint_region: 'RegionOne', - endpoint_adminurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s', - endpoint_internalurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s', - endpoint_publicurl: 'http://127.0.0.1:8776/v1/%(tenant_id)s' + endpoint_adminurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s', + endpoint_internalurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s', + endpoint_publicurl: 'http://127.0.0.1:8776/v2/%(tenant_id)s' ) end