Skip to content

Commit 5d15d16

Browse files
committed
chore: fix tests
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent 9f36444 commit 5d15d16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/functional/api/test_project_job_token_scope.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def test_remove_project_by_id_from_projects_job_token_scope_allowlist(gl, projec
4343

4444
def test_add_group_to_job_token_scope_allowlist(gl, project):
4545
group_to_add = gl.groups.create(
46-
{"name": "Ci_Cd_token_add_proj", "path": "allowlisted"}
46+
{"name": "Ci_Cd_token_add_proj", "path": "allowlisted/add-test"}
4747
)
4848

4949
scope = project.job_token_scope.get()
50-
resp = scope.groups_allowlist.create({"target_project_id": group_to_add.id})
50+
resp = scope.groups_allowlist.create({"target_group_id": group_to_add.id})
5151

5252
assert resp.id == group_to_add.id
5353
assert resp.name == group_to_add.name
@@ -60,7 +60,9 @@ def test_projects_job_token_scope_groups_allowlist_contains_added_group_name(
6060
):
6161
scope = project.job_token_scope.get()
6262
group_name = "Ci_Cd_token_named_group"
63-
group_to_add = gl.groups.create({"name": group_name, "path": "allowlisted"})
63+
group_to_add = gl.groups.create(
64+
{"name": group_name, "path": "allowlisted/add-and-list-test"}
65+
)
6466

6567
scope.groups_allowlist.create({"target_group_id": group_to_add.id})
6668

0 commit comments

Comments
 (0)