From 04a901771c13820c5766b51f56a12e4566b395dc Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Fri, 13 Oct 2017 16:18:18 +0800 Subject: [PATCH] Switch beaker tests to use Keystone V3 Change-Id: I4737d37b74d54c56daf385f724d8322025a7b35b Closes-Bug: #1723352 --- spec/acceptance/basic_barbican_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/basic_barbican_spec.rb b/spec/acceptance/basic_barbican_spec.rb index bc8716f5..4f35ac7c 100644 --- a/spec/acceptance/basic_barbican_spec.rb +++ b/spec/acceptance/basic_barbican_spec.rb @@ -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