diff options
author | Oleg Fayans <ofayans@redhat.com> | 2016-09-21 11:48:30 +0200 |
---|---|---|
committer | David Kupka <dkupka@redhat.com> | 2016-09-22 15:20:42 +0200 |
commit | b8cf212e8bbe301f6d44551ecac063d12a042520 (patch) | |
tree | 79b07df5eb1a848474e20a57ab02dcef7a0bdc88 /ipatests/test_integration | |
parent | dbf0d141c5a4d1ccd1b681ac49cb57e47234aaa4 (diff) | |
download | freeipa-b8cf212e8bbe301f6d44551ecac063d12a042520.tar.gz freeipa-b8cf212e8bbe301f6d44551ecac063d12a042520.tar.xz freeipa-b8cf212e8bbe301f6d44551ecac063d12a042520.zip |
tests: Replaced unused setUp method with install
setUp method does not get executed in recent versions of pytest
Replaced with the install method derived from the parent IntegrationTest class
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r-- | ipatests/test_integration/test_caless.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 88eec0ad5..f362517f2 100644 --- a/ipatests/test_integration/test_caless.py +++ b/ipatests/test_integration/test_caless.py @@ -766,13 +766,13 @@ class TestServerInstall(CALessBase): class TestReplicaInstall(CALessBase): num_replicas = 1 - def setUp(self): - # Install the master for every test - self.export_pkcs12('ca1/server') - with open(self.pem_filename, 'w') as f: - f.write(self.get_pem('ca1')) - - result = self.install_server() + @classmethod + def install(cls, mh): + super(TestReplicaInstall, cls).install(mh) + cls.export_pkcs12('ca1/server') + with open(cls.pem_filename, 'w') as f: + f.write(cls.get_pem('ca1')) + result = cls.install_server() assert result.returncode == 0 @replica_install_teardown |