Skip to content

Commit 5b539b4

Browse files
committed
fix: use strong passwords in integration tests
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent 21fcef6 commit 5b539b4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/functional/api/test_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ def test_groups(gl):
1010
"email": "user@test.com",
1111
"username": "user",
1212
"name": "user",
13-
"password": "user_pass",
13+
"password": "E4596f8be406Bc3a14a4ccdb1df80587",
1414
}
1515
)
1616
user2 = gl.users.create(
1717
{
1818
"email": "user2@test.com",
1919
"username": "user2",
2020
"name": "user2",
21-
"password": "user2_pass",
21+
"password": "E4596f8be406Bc3a14a4ccdb1df80587$2",
2222
}
2323
)
2424
group1 = gl.groups.create(

tests/functional/api/test_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_create_user(gl, fixture_dir):
1313
"email": "foo@bar.com",
1414
"username": "foo",
1515
"name": "foo",
16-
"password": "foo_password",
16+
"password": "E4596f8be406Bc3a14a4ccdb1df80587$3",
1717
"avatar": open(fixture_dir / "avatar.png", "rb"),
1818
}
1919
)

tests/functional/cli/test_cli_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_create_user(gitlab_cli, gl):
104104
email = "fake@email.com"
105105
username = "user1"
106106
name = "User One"
107-
password = "fakepassword"
107+
password = "E4596f8be406Bc3a14a4ccdb1df80587"
108108

109109
cmd = [
110110
"user",

tests/functional/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def user(gl):
526526
email = f"user{_id}@email.com"
527527
username = f"user{_id}"
528528
name = f"User {_id}"
529-
password = "fakepassword"
529+
password = "E4596f8be406Bc3a14a4ccdb1df80587"
530530

531531
user = gl.users.create(email=email, username=username, name=name, password=password)
532532

0 commit comments

Comments
 (0)