Correct identity_registration test mock
To keep tests consistent, should follow the same mocking as the other cookbooks. Change-Id: I0b096715223e5fdb8e6338cceac848cc2bd58e6f Fixes: Bug 1183950
This commit is contained in:
@@ -2,28 +2,7 @@ require "spec_helper"
|
|||||||
|
|
||||||
describe "openstack-block-storage::identity_registration" do
|
describe "openstack-block-storage::identity_registration" do
|
||||||
before do
|
before do
|
||||||
@identity_register_mock = Class.new do
|
@identity_register_mock = double "identity_register"
|
||||||
def auth_uri(uri); end
|
|
||||||
def bootstrap_token(token); end
|
|
||||||
def service_name(name); end
|
|
||||||
def service_type(type); end
|
|
||||||
def service_description(desc); end
|
|
||||||
|
|
||||||
def endpoint_region(region); end
|
|
||||||
def endpoint_adminurl(url); end
|
|
||||||
def endpoint_internalurl(url); end
|
|
||||||
def endpoint_publicurl(url); end
|
|
||||||
|
|
||||||
def tenant_name(name); end
|
|
||||||
|
|
||||||
def user_name(user); end
|
|
||||||
def user_pass(pass); end
|
|
||||||
def user_enabled(enabled); end
|
|
||||||
|
|
||||||
def role_name(name); end
|
|
||||||
|
|
||||||
def action(action); end
|
|
||||||
end.new
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "registers cinder volume service" do
|
it "registers cinder volume service" do
|
||||||
|
|||||||
Reference in New Issue
Block a user