Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ManageIQ/manageiq-content
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c8527667201c1cbf20dc88a4241c12f6fcce9691
Choose a base ref
..
head repository: ManageIQ/manageiq-content
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 085856f5f4eb4d453d8e5a29d419d20b354be08b
Choose a head ref
Showing with 6 additions and 2 deletions.
  1. +6 −2 ...rovisioning/StateMachines/Methods.class/__methods__/vmware_preprovision_clone_to_template_spec.rb
Original file line number Diff line number Diff line change
@@ -60,7 +60,9 @@ def validate_notes

it 'sets the folder' do
v_owning_datacenter = "v_owning_datacenter"
allow_any_instance_of(MiqAeMethodService::MiqAeServiceMiqTemplate).to receive(:v_owning_datacenter).and_return(v_owning_datacenter)
svc_template = MiqAeMethodService::MiqAeServiceMiqTemplate.find(template.id)
allow(ae_service.root["miq_provision"]).to receive(:vm_template).and_return(svc_template)
allow(svc_template).to receive(:v_owning_datacenter).and_return(v_owning_datacenter)
expect(ae_service.root["miq_provision"]).to receive(:set_folder).with(v_owning_datacenter)
described_class.new(ae_service).main
end
@@ -73,7 +75,9 @@ def validate_notes

it 'sets the tags' do
tag = category.children.first
allow_any_instance_of(MiqAeMethodService::MiqAeServiceMiqTemplate).to receive(:tags).and_return(["#{category.name}/#{tag.name}"])
svc_template = MiqAeMethodService::MiqAeServiceMiqTemplate.find(template.id)
allow(ae_service.root["miq_provision"]).to receive(:vm_template).and_return(svc_template)
allow(svc_template).to receive(:tags).and_return(["#{category.name}/#{tag.name}"])

expect(ae_service.root["miq_provision"]).to receive(:add_tag).with(category.name, tag.name)
described_class.new(ae_service).main