Skip to content

Commit

Permalink
Draft added in the rest of the fixes for the tests
Browse files Browse the repository at this point in the history
* In the intergration tests there where two more tests that needed
  the extra input value "y" so that it would account for the new
  prompt
  • Loading branch information
Andrew-ang9 committed Sep 19, 2024
1 parent 5b91c41 commit 9cb6261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def test_c2r_version_latest_with_mocked_newer_version(convert2rhel, c2r_version,
c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

assert c2r.expect("Latest available convert2rhel version is installed.", timeout=300) == 0

c2r.sendcontrol("c")
Expand Down Expand Up @@ -153,6 +156,9 @@ def test_c2r_version_latest_override_inhibitor(convert2rhel, c2r_version, versio
c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

assert c2r.expect("You are currently running 0.01.0", timeout=300) == 0
assert (
c2r.expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def test_inhibitor_os_release_restored(shell, convert2rhel, fixture_satellite, r
c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

c2r.expect("Continue with the system conversion?")
c2r.sendline("y")

c2r.expect_exact("set the environment variable 'CONVERT2RHEL_INCOMPLETE_ROLLBACK", timeout=600)
# We expect the return code to be 2, given an error is raised
assert c2r.exitstatus == 2
Expand Down

0 comments on commit 9cb6261

Please sign in to comment.