cookbook-openstack-identity/spec/registration_spec.rb
Lance Albertson b185a5205d Fixes to support fog-openstack-1.x
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.  In addition, comment out endpoint type until this PR [1] gets
merged and released.

[1] https://github.com/fog/fog-openstack/pull/494

Depends-On: https://review.opendev.org/666176
Change-Id: I2a73e87648bff58180c6ee2355a733a8e030fa4b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-03 16:03:07 -07:00

40 lines
999 B
Ruby

# encoding: UTF-8
#
require_relative 'spec_helper'
describe 'openstack-identity::registration' do
describe 'ubuntu' do
let(:node) { runner.node }
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
let(:chef_run) { runner.converge(described_recipe) }
include_context 'identity_stubs'
connection_params = {
openstack_auth_url: 'http://127.0.0.1:5000/v3',
openstack_username: 'admin',
openstack_api_key: 'admin',
openstack_project_name: 'admin',
openstack_domain_id: 'default',
# openstack_endpoint_type: 'internalURL',
}
describe 'keystone bootstrap' do
context 'default values' do
it do
expect(chef_run).to run_ruby_block('wait for identity endpoint')
end
it 'create service role' do
expect(chef_run).to create_openstack_role(
'service'
).with(
connection_params: connection_params
)
end
end
end
end
end