Setting up repo for master Juno Branch
* Update metadata version * Adding Gemfile.lock to .gitignore * Removing Strainer file * Updating Gems * chef (11.12.0) * chefspec (4.0.0) * rspec (3.0.0) Change-Id: I15718d45fb2feb5f42f0e71fa201992df5508aee Partial-Bug: 1349865
This commit is contained in:
@@ -302,7 +302,7 @@ describe 'openstack-identity::server' do
|
||||
describe 'with pki' do
|
||||
describe 'without {certfile,keyfile,ca_certs}_url attributes set' do
|
||||
it 'executes' do
|
||||
::FileTest.should_receive(:exists?)
|
||||
expect(FileTest).to receive(:exists?)
|
||||
.with('/etc/keystone/ssl/private/signing_key.pem')
|
||||
.and_return(false)
|
||||
|
||||
@@ -329,7 +329,7 @@ describe 'openstack-identity::server' do
|
||||
end
|
||||
|
||||
it 'does not execute when dir exists' do
|
||||
::FileTest.should_receive(:exists?)
|
||||
expect(FileTest).to receive(:exists?)
|
||||
.with('/etc/keystone/ssl/private/signing_key.pem')
|
||||
.and_return(true)
|
||||
|
||||
@@ -394,7 +394,7 @@ describe 'openstack-identity::server' do
|
||||
describe 'bind_interface is eth0' do
|
||||
before do
|
||||
node.set['openstack']['endpoints']['identity-bind']['bind_interface'] = 'eth0'
|
||||
::Chef::Recipe.any_instance.stub(:address_for)
|
||||
allow_any_instance_of(Chef::Recipe).to receive(:address_for)
|
||||
.and_return('10.0.0.2')
|
||||
end
|
||||
|
||||
@@ -461,7 +461,8 @@ describe 'openstack-identity::server' do
|
||||
hosts = ['host1:111', 'host2:222']
|
||||
regex = line_regexp("servers = #{hosts.join(',')}")
|
||||
|
||||
::Chef::Recipe.any_instance.stub(:memcached_servers).and_return(hosts)
|
||||
allow_any_instance_of(Chef::Recipe).to receive(:memcached_servers)
|
||||
.and_return(hosts)
|
||||
expect(chef_run).to render_file(path).with_content(regex)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user