|
|
a99c7c |
From 5444da016edc416c0c9481c660c013053dbb93b5 Mon Sep 17 00:00:00 2001
|
|
|
a99c7c |
From: Mohammad Rizwan <myusuf@redhat.com>
|
|
|
a99c7c |
Date: Thu, 18 Nov 2021 18:43:22 +0530
|
|
|
a99c7c |
Subject: [PATCH] PEP8 Fixes
|
|
|
a99c7c |
|
|
|
a99c7c |
Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
|
|
|
a99c7c |
---
|
|
|
a99c7c |
.../test_integration/test_replica_promotion.py | 14 +++++++-------
|
|
|
a99c7c |
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
a99c7c |
|
|
|
a99c7c |
diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py
|
|
|
a99c7c |
index 1a4e9bc121abf41a3919aedda3d334de9404d1a0..c328b1a08ffc8ac5efb0986d2b18c5074f573432 100644
|
|
|
a99c7c |
--- a/ipatests/test_integration/test_replica_promotion.py
|
|
|
a99c7c |
+++ b/ipatests/test_integration/test_replica_promotion.py
|
|
|
a99c7c |
@@ -138,7 +138,6 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
|
|
|
a99c7c |
assert res.returncode == 1
|
|
|
a99c7c |
assert expected_err in res.stderr_text
|
|
|
a99c7c |
|
|
|
a99c7c |
-
|
|
|
a99c7c |
@replicas_cleanup
|
|
|
a99c7c |
def test_one_command_installation(self):
|
|
|
a99c7c |
"""
|
|
|
a99c7c |
@@ -150,11 +149,11 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
|
|
|
a99c7c |
Firewall(self.replicas[0]).enable_services(["freeipa-ldap",
|
|
|
a99c7c |
"freeipa-ldaps"])
|
|
|
a99c7c |
self.replicas[0].run_command(['ipa-replica-install', '-w',
|
|
|
a99c7c |
- self.master.config.admin_password,
|
|
|
a99c7c |
- '-n', self.master.domain.name,
|
|
|
a99c7c |
- '-r', self.master.domain.realm,
|
|
|
a99c7c |
- '--server', self.master.hostname,
|
|
|
a99c7c |
- '-U'])
|
|
|
a99c7c |
+ self.master.config.admin_password,
|
|
|
a99c7c |
+ '-n', self.master.domain.name,
|
|
|
a99c7c |
+ '-r', self.master.domain.realm,
|
|
|
a99c7c |
+ '--server', self.master.hostname,
|
|
|
a99c7c |
+ '-U'])
|
|
|
a99c7c |
# Ensure that pkinit is properly configured, test for 7566
|
|
|
a99c7c |
result = self.replicas[0].run_command(['ipa-pkinit-manage', 'status'])
|
|
|
a99c7c |
assert "PKINIT is enabled" in result.stdout_text
|
|
|
a99c7c |
@@ -321,7 +320,7 @@ class TestWrongClientDomain(IntegrationTest):
|
|
|
a99c7c |
result1 = client.run_command(['ipa-replica-install', '-U', '-w',
|
|
|
a99c7c |
self.master.config.dirman_password],
|
|
|
a99c7c |
raiseonerr=False)
|
|
|
a99c7c |
- assert(result1.returncode == 0), (
|
|
|
a99c7c |
+ assert (result1.returncode == 0), (
|
|
|
a99c7c |
'Failed to promote the client installed with the upcase domain name')
|
|
|
a99c7c |
|
|
|
a99c7c |
def test_client_rollback(self):
|
|
|
a99c7c |
@@ -355,6 +354,7 @@ class TestWrongClientDomain(IntegrationTest):
|
|
|
a99c7c |
assert("An error occurred while removing SSSD" not in
|
|
|
a99c7c |
result.stdout_text)
|
|
|
a99c7c |
|
|
|
a99c7c |
+
|
|
|
a99c7c |
class TestRenewalMaster(IntegrationTest):
|
|
|
a99c7c |
|
|
|
a99c7c |
topology = 'star'
|
|
|
a99c7c |
--
|
|
|
a99c7c |
2.34.1
|
|
|
a99c7c |
|