spec/beaker/hypervisor/vmpooler_spec.rb in beaker-2.11.0 vs spec/beaker/hypervisor/vmpooler_spec.rb in beaker-2.12.0
- old
+ new
@@ -11,9 +11,10 @@
stub_const( "Net", MockNet )
allow( JSON ).to receive( :parse ) do |arg|
arg
end
allow( Socket ).to receive( :getaddrinfo ).and_return( true )
+ allow_any_instance_of( Beaker::Vmpooler ).to receive(:load_credentials).and_return(fog_file_contents)
end
describe '#get_template_url' do
it 'works returns the valid url when passed valid pooling_api and template name' do