Files
cookbook-openstack-compute/spec/vncproxy_spec.rb
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00

36 lines
980 B
Ruby

require "spec_helper"
describe "openstack-compute::vncproxy" do
describe "ubuntu" do
before do
nova_common_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
@chef_run.converge "openstack-compute::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