Merge "Debian/Ubuntu: Enable validations in acceptance tests"
This commit is contained in:
commit
9a343b0de5
|
@ -35,26 +35,24 @@ describe 'barbican::api basic test class' do
|
|||
apply_manifest(pp, :catch_changes => true)
|
||||
end
|
||||
|
||||
if os[:family].casecmp('RedHat') == 0
|
||||
describe 'store a secret' do
|
||||
it 'should store a secret' do
|
||||
command('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
|
||||
describe 'store a secret' do
|
||||
it 'should store a secret' do
|
||||
command('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
|
||||
end
|
||||
|
||||
describe 'generate a secret' do
|
||||
it 'should generate a secret' do
|
||||
command('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
|
||||
describe 'generate a secret' do
|
||||
it 'should generate a secret' do
|
||||
command('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
|
||||
end
|
||||
|
||||
describe port(9311) do
|
||||
it { is_expected.to be_listening }
|
||||
end
|
||||
describe port(9311) do
|
||||
it { is_expected.to be_listening }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue