- Now use cookbook-openstackclient to create endpoints role service and user - added domain creation and access granting - added values to work with identity_v3 - rewrote specs to work again - updated readme - updated neutron-package dependencies for debian Change-Id: I2d404a424bd79a6e9b282304e21591fa33a48981 Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
29 lines
747 B
Ruby
29 lines
747 B
Ruby
# Encoding: utf-8
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-network::openvswitch' do
|
|
describe 'ubuntu' do
|
|
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
|
|
let(:node) { runner.node }
|
|
let(:chef_run) do
|
|
runner.converge(described_recipe)
|
|
end
|
|
|
|
it 'upgrades openvswitch switch' do
|
|
expect(chef_run).to upgrade_package 'openvswitch-switch'
|
|
end
|
|
|
|
it 'upgrades linux bridge utils' do
|
|
expect(chef_run).to upgrade_package 'bridge-utils'
|
|
end
|
|
|
|
it 'sets the openvswitch service to start on boot' do
|
|
expect(chef_run).to enable_service 'openvswitch-switch'
|
|
end
|
|
|
|
it 'start the openvswitch service' do
|
|
expect(chef_run).to start_service 'openvswitch-switch'
|
|
end
|
|
end
|
|
end
|