Files
cookbook-openstack-compute/spec/vncproxy_spec.rb
John Dewey ba1daa9b49 Removed local patches
These patches make assumptions that are a bit too liberal.
As these cookbooks are more widely used, these should be
moved into a wrapper cookbook.

Change-Id: I015ea209822ba81f0639b24f5df6957c89a6e7b2
2013-05-16 14:33:34 -07:00

36 lines
954 B
Ruby

require "spec_helper"
describe "nova::vncproxy" do
describe "ubuntu" do
before do
nova_common_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
@chef_run.converge "nova::vncproxy"
end
expect_runs_nova_common_recipe
it "installs vncproxy packages" do
expect(@chef_run).to upgrade_package "novnc"
expect(@chef_run).to upgrade_package "websockify"
expect(@chef_run).to upgrade_package "nova-novncproxy"
end
it "installs consoleauth packages" do
expect(@chef_run).to upgrade_package "nova-consoleauth"
end
it "starts nova vncproxy on boot" do
expect(@chef_run).to set_service_to_start_on_boot "nova-novncproxy"
end
it "starts nova consoleauth" do
expect(@chef_run).to start_service "nova-consoleauth"
end
it "starts nova consoleauth on boot" do
expect(@chef_run).to set_service_to_start_on_boot "nova-consoleauth"
end
end
end