mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
22 lines
586 B
Python
22 lines
586 B
Python
|
#
|
||
|
# 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
|
||
|
from ipatests.pytest_plugins.integration import tasks
|
||
|
|
||
|
|
||
|
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)
|
||
|
assert cmd.returncode == 0
|