Skip to content

Commit 8dd0fb0

Browse files
committed
increase missed timeout in test and use function scope as we edit the test
1 parent 1d47cbf commit 8dd0fb0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def replica_set(namespace: str, custom_mdb_version) -> MongoDB:
4040
return resource.update()
4141

4242

43-
@fixture(scope="module")
43+
@fixture(scope="function")
4444
def scram_user(namespace: str) -> MongoDBUser:
4545
resource = MongoDBUser.from_yaml(find_fixture("scram-sha-user.yaml"), namespace=namespace)
4646

@@ -53,13 +53,13 @@ def scram_user(namespace: str) -> MongoDBUser:
5353
return resource.update()
5454

5555

56-
@fixture(scope="module")
56+
@fixture(scope="function")
5757
def standard_secret(replica_set: MongoDB):
5858
secret_name = "{}-{}-{}".format(replica_set.name, USER_NAME, USER_DATABASE)
5959
return read_secret(replica_set.namespace, secret_name)
6060

6161

62-
@fixture(scope="module")
62+
@fixture(scope="function")
6363
def connection_string_secret(replica_set: MongoDB):
6464
return read_secret(replica_set.namespace, CONNECTION_STRING_SECRET_NAME)
6565

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def test_user_can_authenticate_with_new_password(self):
117117
password="my-new-password",
118118
username="mms-user-1",
119119
auth_mechanism="SCRAM-SHA-256",
120-
attempts=20,
121120
)
122121

123122
def test_user_cannot_authenticate_with_old_password(self):

0 commit comments

Comments
 (0)