require 'spec_helper' require_relative File.join(%w(.. libraries cib_objects)) describe Chef::Libraries::Pacemaker::CIBObjects do include Chef::Libraries::Pacemaker::CIBObjects shared_context "shellout stubs" do before(:each) do Mixlib::ShellOut.any_instance.stub(:run_command) end end shared_context "keystone config" do before(:all) do @params = { "os_password" => "adminpw", "os_auth_url" => "http://node1:5000/v2.0", "os_username" => "admin", "os_tenant_name" => "openstack" } params_string = @params.map { |k,v| %'#{k}="#{v}"' }.join(" ") @config = <