Removed glance_api_chef_role

This is dead code and should be removed.  Also,
needed to update tests, so that they passed.

Change-Id: Ib7df8f6036ccc1ace58854c713f6ce646e09820f
This commit is contained in:
John Dewey
2013-06-03 11:01:58 -07:00
parent ce19634ee3
commit c1e16f840f
6 changed files with 63 additions and 36 deletions

View File

@@ -1,24 +1,23 @@
require "chefspec"
require 'ostruct'
::LOG_LEVEL = :fatal
::REDHAT_OPTS = {
:platform => "redhat",
:log_level => ::LOG_LEVEL
:platform => "redhat",
:version => "6.3",
:log_level => ::LOG_LEVEL
}
::UBUNTU_OPTS = {
:platform => "ubuntu",
:version => "12.04",
:log_level => ::LOG_LEVEL
:platform => "ubuntu",
:version => "12.04",
:log_level => ::LOG_LEVEL
}
def block_storage_stubs
::Chef::Recipe.any_instance.stub(:config_by_role)
::Chef::Recipe.any_instance.stub(:config_by_role).
with("rabbitmq-server", "queue").and_return(
{'host' => 'rabbit-host', 'port' => 'rabbit-port'}
)
::Chef::Recipe.any_instance.stub(:config_by_role).
with("glance-api", "glance").and_return []
::Chef::Recipe.any_instance.stub(:secret).
with("secrets", "openstack_identity_bootstrap_token").
and_return "bootstrap-token"