Skip to content

Commit

Permalink
Fix spec tests for DVS
Browse files Browse the repository at this point in the history
PRs ManageIQ#4 and ManageIQ#5 changed the name and key of the same DVS causing a
conflict and leading to the tests failing to find the Lan
  • Loading branch information
agrare committed Feb 27, 2017
1 parent 2f232b4 commit 894fd98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def assert_specific_storage_profile
def assert_specific_dvportgroup
# Check that a dvPortgroup with a slash in the name is decoded from
# %2f to / by the RefreshParser
dvpg = Lan.find_by(:uid_ems => 'dvportgroup-122')
dvpg = Lan.find_by(:uid_ems => 'dvportgroup-12222')
expect(dvpg.name).to eq('DC1 / DVPG1')
end

Expand Down Expand Up @@ -441,10 +441,10 @@ def assert_specific_host

# If a dvPortgroup has a different key than its MOR ensure
# that we use config.key as the uid_ems
dvslan = dvswitch.lans.find_by(:name => "DC1_DVPG1")
dvslan = dvswitch.lans.find_by(:name => "DC1 / DVPG1")
expect(dvslan).to have_attributes(
:uid_ems => 'dvportgroup-12222',
:name => 'DC1_DVPG1'
:name => 'DC1 / DVPG1'
)

switch = @host.switches.find_by(:name => "vSwitch0")
Expand Down

0 comments on commit 894fd98

Please sign in to comment.