Skip to content

Commit

Permalink
test: don't use weak passwords
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JohnVillalovos authored and nejch committed Apr 25, 2024
1 parent f8283ae commit c64d126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/functional/api/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ def test_groups(gl):
"email": "user@test.com",
"username": "user",
"name": "user",
"password": "E4596f8be406Bc3a14a4ccdb1df80587",
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!1",
}
)
user2 = gl.users.create(
{
"email": "user2@test.com",
"username": "user2",
"name": "user2",
"password": "E4596f8be406Bc3a14a4ccdb1df80587$2",
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!#2",
}
)
group1 = gl.groups.create(
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/api/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_delete_user(gl, wait_for_sidekiq):
"email": "delete-user@test.com",
"username": "delete-user",
"name": "delete-user",
"password": "delete-user-pass",
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!",
}
)

Expand Down Expand Up @@ -101,7 +101,7 @@ def test_list_multiple_users(gl, user):
"email": second_email,
"username": second_username,
"name": "Foo Bar",
"password": "foobar_password",
"password": "E4596f8be406Bc3a14a4ccdb1df80587#!",
}
)
assert gl.users.list(search=second_user.username)[0].id == second_user.id
Expand Down

0 comments on commit c64d126

Please sign in to comment.