Skip to content

Commit 53440a4

Browse files
committed
revert changes
1 parent 6cb0f1d commit 53440a4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docker/mongodb-kubernetes-tests/tests/authentication/replica_set_ldap_tls.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def replica_set(
5050
"caConfigMapRef": {"name": issuer_ca_configmap, "key": "ca-pem"},
5151
}
5252

53-
return resource.update()
53+
resource.update()
54+
return resource
5455

5556

5657
@fixture(scope="module")
@@ -105,8 +106,9 @@ def wait_for_ac_pushed() -> bool:
105106

106107
wait_until(wait_for_ac_pushed, timeout=200)
107108

108-
replica_set["spec"]["security"]["authentication"]["ldap"]["transportSecurity"] = "tls"
109-
replica_set.update()
109+
resource = replica_set.load()
110+
resource["spec"]["security"]["authentication"]["ldap"]["transportSecurity"] = "tls"
111+
resource.update()
110112

111113

112114
@mark.e2e_replica_set_ldap_tls
@@ -138,6 +140,7 @@ def test_new_ldap_users_can_authenticate(replica_set: MongoDB, ldap_user_mongodb
138140
def test_remove_ldap_settings(replica_set: MongoDB):
139141
replica_set.assert_reaches_phase(Phase.Running, timeout=400)
140142

143+
replica_set.load()
141144
replica_set["spec"]["security"]["authentication"]["ldap"] = None
142145
replica_set["spec"]["security"]["authentication"]["modes"] = ["SCRAM"]
143146
replica_set.update()
@@ -152,4 +155,4 @@ def wait_for_ac_pushed() -> bool:
152155

153156
wait_until(wait_for_ac_pushed, timeout=400)
154157

155-
replica_set.assert_reaches_phase(Phase.Running, timeout=400)
158+
replica_set.assert_reaches_phase(Phase.Running, timeout=400)

0 commit comments

Comments
 (0)