From f8f8289c281883550d26193e28f74efbd0794847 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Jul 22 2019 06:00:18 +0000 Subject: ipatests: test ipa-server-upgrade in CA-less deployment Part of: https://pagure.io/freeipa/issue/7991 Reviewed-By: Rob Crittenden --- diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 77e1d2c..9a853e0 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -1249,6 +1249,10 @@ class TestIPACommands(CALessBase): with self.host(): self.master.run_command(['ipa', 'host-del', self.test_hostname]) + def test_invoke_upgrader(self): + """Test that ipa-server-upgrade runs without error.""" + self.master.run_command(['ipa-server-upgrade'], raiseonerr=True) + class TestCertInstall(CALessBase): @classmethod diff --git a/ipatests/test_integration/test_upgrade.py b/ipatests/test_integration/test_upgrade.py index 5cc890e..84f2dca 100644 --- a/ipatests/test_integration/test_upgrade.py +++ b/ipatests/test_integration/test_upgrade.py @@ -14,6 +14,13 @@ from ipatests.pytest_ipa.integration import tasks class TestUpgrade(IntegrationTest): + """ + Test ipa-server-upgrade. + + Note that ipa-server-upgrade on a CA-less installation is tested + in ``test_caless.TestIPACommands.test_invoke_upgrader``. + + """ @classmethod def install(cls, mh): tasks.install_master(cls.master, setup_dns=False)