cookbook-openstack-object-s.../spec/setup_spec.rb
Mark Vanderwiel cc5870723b Add keystone support
New recipe for identity registration like other cookbooks.
Called during the setup recipe.  This is first patch to start down
road of getting swift cookbook up to date and supporting redhat.

Change-Id: I75f5f7a1a0cb1eb40d5442551f8844ba1170a627
2014-11-19 08:21:01 -06:00

27 lines
795 B
Ruby
Executable File

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-object-storage::setup' do
describe 'ubuntu' do
let(:runner) { ChefSpec::Runner.new(UBUNTU_OPTS) }
let(:node) { runner.node }
let(:chef_run) do
runner.converge(described_recipe)
end
include_context 'swift-stubs'
include_examples 'keystone-authmode'
it 'does not include the identity registration recipe' do
expect(chef_run).not_to include_recipe('openstack-object-storage::identity_registration')
end
it 'includes the identity registration recipe' do
node.set['openstack']['object-storage']['authmode'] = 'keystone'
expect(chef_run).to include_recipe('openstack-object-storage::identity_registration')
end
# TODO: flush out rest of this spec
end
end