Skip to content

Commit

Permalink
Update cloud_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoehler authored and mvach committed May 16, 2024
1 parent f4cee7a commit dbdf465
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bosh_openstack_cpi/spec/unit/cloud_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,15 @@

expect { subject }.to raise_error(ArgumentError, /Invalid OpenStack cloud properties/)
end

it 'raises ArgumentError if too many credentials are provided' do
options['openstack']['api_key'] = 'fake_api_key'
options['openstack']['username'] = 'fake_username'
options['openstack']['application_credential_id'] = 'fake-application-credential-id'
options['openstack']['application_credential_secret'] = 'fake-application-credential-secret'

expect { subject }.to raise_error(ArgumentError, /Invalid OpenStack cloud properties/)
end
end

end
Expand Down

0 comments on commit dbdf465

Please sign in to comment.