|
262 | 262 | expect(server).to receive(:wait_for).and_return(ready = true) |
263 | 263 | allow(server).to receive(:password_enabled).and_return(false) |
264 | 264 | expect(cloudstack_compute).to receive(:servers).and_return(servers) |
265 | | - allow(cloudstack_compute).to receive(:send).with(:list_zones, available: true).and_return(list_zones_response) |
266 | | - allow(cloudstack_compute).to receive(:send).with(:list_service_offerings, listall: true) |
| 265 | + allow(cloudstack_compute).to receive(:send).with(:list_zones, available: true, name: ZONE_NAME).and_return(list_zones_response) |
| 266 | + allow(cloudstack_compute).to receive(:send).with(:list_service_offerings, listall: true, name: SERVICE_OFFERING_NAME) |
267 | 267 | .and_return(list_service_offerings_response) |
268 | 268 | allow(cloudstack_compute).to receive(:send) |
269 | | - .with(:list_templates, zoneid: ZONE_ID, templatefilter: 'executable', listall: true) |
| 269 | + .with(:list_templates, zoneid: ZONE_ID, templatefilter: 'executable', listall: true, name: TEMPLATE_NAME) |
270 | 270 | .and_return(list_templates_response) |
271 | 271 | allow(cloudstack_compute).to receive(:zones).and_return([cloudstack_zone]) |
272 | 272 | allow(servers).to receive(:create).with(create_servers_parameters).and_return(server) |
|
413 | 413 | let(:volume) { double('Fog::Compute::Cloudstack::Volume') } |
414 | 414 |
|
415 | 415 | before(:each) do |
416 | | - allow(cloudstack_compute).to receive(:send).with(:list_disk_offerings, listall: true) |
| 416 | + allow(cloudstack_compute).to receive(:send).with(:list_disk_offerings, listall: true, name: DISK_OFFERING_NAME) |
417 | 417 | .and_return(list_disk_offerings_response) |
418 | 418 | expect(cloudstack_compute).to receive(:volumes).and_return([volume]) |
419 | 419 | allow(volume).to receive(:server_id).and_return(SERVER_ID) |
|
0 commit comments