Skip to content

Commit

Permalink
Update testing docs
Browse files Browse the repository at this point in the history
Signed-off-by: derekbit <[email protected]>
  • Loading branch information
derekbit committed Sep 27, 2023
1 parent 5dfdc7c commit fa0695d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions integration/test_upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,12 @@ <h1 class="title">Module <code>tests.test_upgrade</code></h1>
if v.name != restore_vol_name:
volume = client.by_id_volume(v.name)
engine = get_volume_engine(volume)
assert engine.image == new_ei.image
if hasattr(engine, &#39;engineImage&#39;):
print(&#34;Checking engineImage...&#34;)
assert engine.engineImage == new_ei.image
else:
print(&#34;Checking image...&#34;)
assert engine.image == new_ei.image
assert engine.currentImage == new_ei.image

# Check All volumes data
Expand Down Expand Up @@ -1270,7 +1275,12 @@ <h2 id="prerequisite">Prerequisite</h2>
if v.name != restore_vol_name:
volume = client.by_id_volume(v.name)
engine = get_volume_engine(volume)
assert engine.image == new_ei.image
if hasattr(engine, &#39;engineImage&#39;):
print(&#34;Checking engineImage...&#34;)
assert engine.engineImage == new_ei.image
else:
print(&#34;Checking image...&#34;)
assert engine.image == new_ei.image
assert engine.currentImage == new_ei.image

# Check All volumes data
Expand Down

0 comments on commit fa0695d

Please sign in to comment.