spec/vra_spec.rb in kitchen-vra-3.0.1 vs spec/vra_spec.rb in kitchen-vra-3.1.0

- old
+ new

@@ -42,11 +42,10 @@ flavor_mapping: "Small", verify_ssl: true, subtenant_id: "160b473a-0ec9-473d-8156-28dd96c0b6b7", use_dns: false, deployment_name: "test-instance", - version: 1, } end let(:instance) do instance_double(Kitchen::Instance, @@ -419,11 +418,10 @@ tenant: "mytenant", verify_ssl: true, project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7", image_mapping: "VRA-nc-lnx-ce8.4-Docker", flavor_mapping: "Small", - version: 1, } end it "does not attempt to set params on the catalog_request" do expect(catalog_request).not_to receive(:subtenant_id=) @@ -440,18 +438,17 @@ tenant: "mytenant", verify_ssl: true, project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7", image_mapping: "VRA-nc-lnx-ce8.4-Docker", flavor_mapping: "Small", - version: 1, extra_parameters: { "key1" => { type: "string", value: "value1" }, "key2" => { type: "integer", value: 123 } }, } end it "sets extra parmeters" do - expect(catalog_request).to receive(:set_parameters).with("key1", type: "string", value: "value1") - expect(catalog_request).to receive(:set_parameters).with("key2", type: "integer", value: 123) + expect(catalog_request).to receive(:set_parameters).with("key1", { type: "string", value: "value1" }) + expect(catalog_request).to receive(:set_parameters).with("key2", { type: "integer", value: 123 }) driver.catalog_request end end end