2018-02-04 10:40:24 -06:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
"""
|
|
|
|
Module provides tests to verify that the upgrade script works.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from ipatests.test_integration.base import IntegrationTest
|
2018-08-02 06:45:19 -05:00
|
|
|
from ipatests.pytest_ipa.integration import tasks
|
2018-02-04 10:40:24 -06:00
|
|
|
|
|
|
|
|
|
|
|
class TestUpgrade(IntegrationTest):
|
|
|
|
@classmethod
|
|
|
|
def install(cls, mh):
|
|
|
|
tasks.install_master(cls.master, setup_dns=False)
|
|
|
|
|
|
|
|
def test_invoke_upgrader(self):
|
|
|
|
cmd = self.master.run_command(['ipa-server-upgrade'],
|
|
|
|
raiseonerr=False)
|
2018-08-09 03:43:26 -05:00
|
|
|
assert ("DN: cn=Schema Compatibility,cn=plugins,cn=config does not \
|
|
|
|
exists or haven't been updated" not in cmd.stdout_text)
|
2018-02-04 10:40:24 -06:00
|
|
|
assert cmd.returncode == 0
|