The #require_relative statement is relative to the file containing the the statement. Also, updated spec_helper constants to follow existing spacing format. Change-Id: I33c5c158ea34c30baf63bd72819b9d44b8516ca4
28 lines
642 B
Ruby
28 lines
642 B
Ruby
require_relative "spec_helper"
|
|
|
|
describe "openstack-compute::api-ec2" do
|
|
describe "ubuntu" do
|
|
before do
|
|
compute_stubs
|
|
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
|
|
@chef_run.converge "openstack-compute::api-ec2"
|
|
end
|
|
|
|
expect_runs_nova_common_recipe
|
|
|
|
expect_creates_nova_lock_dir
|
|
|
|
expect_installs_python_keystone
|
|
|
|
it "installs ec2 api packages" do
|
|
expect(@chef_run).to upgrade_package "nova-api-ec2"
|
|
end
|
|
|
|
it "starts ec2 api on boot" do
|
|
expect(@chef_run).to set_service_to_start_on_boot "nova-api-ec2"
|
|
end
|
|
|
|
expect_creates_api_paste "service[nova-api-ec2]"
|
|
end
|
|
end
|