Files
cookbook-openstack-compute/spec/spiceproxy_spec.rb
Marek Szuba d15e1572ab Configure SPICE consoles
There is now a recipe - not really a new one, it's "vncproxy" with some
attributes renamed - which handles the relevant packages and services
(Debian names confirmed to have been valid at least since Jessie,
Ubuntu and RHEL ones based on existing convention + review comments).
Furthermore, nova.conf is now populated with required enpoint information
- with hopefully sane default values of relevant attributes.
Finally, the attribute node['openstack']['compute']['console_type']
can be used to enable the desired console type; it defaults to 'vnc'
in accordance with default Nova configuration.

Signed-off-by: Marek Szuba <m.szuba@gsi.de>
Change-Id: I0996daddda6d21633930ba73e174f99775a9e0c9
2021-10-14 22:47:24 +00:00

27 lines
763 B
Ruby

require_relative 'spec_helper'
describe 'openstack-compute::spiceproxy' do
describe 'ubuntu' do
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
let(:node) { runner.node }
cached(:chef_run) { runner.converge(described_recipe) }
include_context 'compute_stubs'
include_examples 'expect_runs_nova_common_recipe'
include_examples 'expect_creates_nova_state_dir'
include_examples 'expect_creates_nova_lock_dir'
it do
expect(chef_run).to upgrade_package %w(nova-spiceproxy spice-html5)
end
it 'starts nova spiceproxy' do
expect(chef_run).to start_service('nova-spiceproxy')
end
it 'starts nova spiceproxy on boot' do
expect(chef_run).to enable_service('nova-spiceproxy')
end
end
end