Switch beaker tests to use Keystone V3

Change-Id: I4737d37b74d54c56daf385f724d8322025a7b35b
Closes-Bug: #1723352
This commit is contained in:
ZhongShengping 2017-10-13 16:18:18 +08:00 committed by Mohammed Naser
parent 9b1287a9ee
commit 04a901771c
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ describe 'barbican::api basic test class' do
if os[:family].casecmp('RedHat') == 0
describe 'store a secret' do
it 'should store a secret' do
shell('barbican --os-username barbican --os-password a_big_secret --os-tenant-name services --os-auth-url http://127.0.0.1:5000/v2.0 --endpoint http://localhost:9311 secret store --payload "my big bad secret" --os-identity-api-version 2') do |r|
shell('barbican --os-username barbican --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 --endpoint http://localhost:9311 secret store --payload "my big bad secret" --os-identity-api-version 3') do |r|
expect(r.stdout).to match(/ACTIVE/)
end
end
@ -83,7 +83,7 @@ describe 'barbican::api basic test class' do
describe 'generate a secret' do
it 'should generate a secret' do
shell('barbican --os-username barbican --os-password a_big_secret --os-tenant-name services --os-auth-url http://127.0.0.1:5000/v2.0 --endpoint http://localhost:9311 secret order create key --name foo --os-identity-api-version 2') do |r|
shell('barbican --os-username barbican --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3 --endpoint http://localhost:9311 secret order create key --name foo --os-identity-api-version 3') do |r|
expect(r.stdout).to match(/Order href/)
end
end