Skip to content

Commit c0c70ce

Browse files
JohnVillalovosnejch
authored andcommitted
test: don't use weak passwords
Newer versions of GitLab will refuse to create a user with a weak password. In order for us to move to a newer GitLab version in testing use a stronger password for the tests that create a user.
1 parent 8201838 commit c0c70ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/functional/api/test_groups.py

+2-2
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": "E4596f8be406Bc3a14a4ccdb1df80587",
13+
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!1",
1414
}
1515
)
1616
user2 = gl.users.create(
1717
{
1818
"email": "user2@test.com",
1919
"username": "user2",
2020
"name": "user2",
21-
"password": "E4596f8be406Bc3a14a4ccdb1df80587$2",
21+
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!#2",
2222
}
2323
)
2424
group1 = gl.groups.create(

tests/functional/api/test_users.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_delete_user(gl, wait_for_sidekiq):
6666
"email": "delete-user@test.com",
6767
"username": "delete-user",
6868
"name": "delete-user",
69-
"password": "delete-user-pass",
69+
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!",
7070
}
7171
)
7272

@@ -101,7 +101,7 @@ def test_list_multiple_users(gl, user):
101101
"email": second_email,
102102
"username": second_username,
103103
"name": "Foo Bar",
104-
"password": "foobar_password",
104+
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!",
105105
}
106106
)
107107
assert gl.users.list(search=second_user.username)[0].id == second_user.id

0 commit comments

Comments
 (0)