Skip to content

Commit

Permalink
Merge pull request #14756 from billfitzgerald0120/quota_helper_spec
Browse files Browse the repository at this point in the history
Automate - added vmware reconfigure model to quota helper.
  • Loading branch information
mkanoor authored Apr 17, 2017
2 parents 56c062e + 9c40867 commit da6b7d7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion spec/support/quota_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,21 @@ def vmware_model
create_vmware_vms
end

def vmware_reconfigure_model
@ems = FactoryGirl.create(:ems_vmware)
@storage = FactoryGirl.create(:storage_nfs)
create_hardware
create_vmware_vms
@reconfigure_request = FactoryGirl.create(:vm_reconfigure_request, :requester => @user)
@vm_hardware = FactoryGirl.build(:hardware, :virtual_hw_version => "07", :cpu_total_cores => 2,\
:memory_mb => 4096, :cpu_sockets => 2, :cpu_cores_per_socket => 1)
@vm_vmware = FactoryGirl.create(:vm_vmware, :hardware => @vm_hardware)
@vm_vmware.update_attributes(:ems_id => @ems.id)
end

def google_template
@ems = FactoryGirl.create(:ems_google_with_authentication,
:availability_zones => [FactoryGirl.create(:availability_zone_google)])
:availability_zones => [FactoryGirl.create(:availability_zone_google)])
FactoryGirl.create(:template_google, :ext_management_system => @ems)
end

Expand Down

0 comments on commit da6b7d7

Please sign in to comment.