puppet-vswitch/spec/acceptance/basic_vswitch_spec.rb
Emilien Macchi ae87d9b0f8 Acceptance: use common bits from puppet-openstack-integration
Change-Id: I775554de66e19b9ce269c6ce31a67529c2d0413e
2015-11-19 11:45:12 +01:00

33 lines
681 B
Ruby

require 'spec_helper_acceptance'
describe 'basic vswitch' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
include ::openstack_integration
include ::openstack_integration::repos
include ::vswitch::ovs
vs_bridge { 'br-beaker':
ensure => present,
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
describe command('ovs-vsctl show') do
describe '#stdout' do
subject { super().stdout }
it { is_expected.to match /br-beaker/ }
end
end
end
end