ae87d9b0f8
Change-Id: I775554de66e19b9ce269c6ce31a67529c2d0413e
33 lines
681 B
Ruby
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
|