#7357 IntegrationTests do not fail even if the uninstall process fails
Closed: fixed Opened by fbarreto.

Issue

IntegrationTest do not fail even if the uninstall process fails

Steps to Reproduce

  1. Run an integration test knowing that the uninstall process will fail.
    Or change the code like this:
--- a/ipatests/pytest_plugins/integration/tasks.py
+++ b/ipatests/pytest_plugins/integration/tasks.py
@@ -699,7 +699,7 @@ def kinit_admin(host, raiseonerr=True):
 def uninstall_master(host, ignore_topology_disconnect=True,
                      ignore_last_of_role=True, clean=True):
     host.collect_log(paths.IPASERVER_UNINSTALL_LOG)
-    uninstall_cmd = ['ipa-server-install', '--uninstall', '-U']
+    uninstall_cmd = ['ipa-server-install', '--uninstall', '-INVALID_OPTION']

Actual behavior

It succeeds even if an error happens during the uninstall process.

Expected behavior

It should fail.

Version/Release/Distribution

Git master (last commit: dc4109c1a459919474dfb9c01996571d7fd5eae4)


Metadata Update from @fbarreto:
- Issue tagged with: tests

Metadata Update from @fbarreto:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1459

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.4

master:

  • d945583cc77a723f7108c36555cdbe2b4da2d495 Make IntegrationTest fail if an error happened during uninstall

ipa-4-6:

  • cd2c7213e91938eb539481cda4e6b59b45d77bd1 Make IntegrationTest fail if an error happened during uninstall

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata