Skip to content

Commit 9d5b099

Browse files
committed
chore: swap assertions
- Will raise MR vs Gitlab docs to clarify on there too Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent a7218e5 commit 9d5b099

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/functional/api/test_project_job_token_scope.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ def test_enable_limit_access_to_this_project(gl, project):
77

88
scope.refresh()
99

10-
# https://docs.gitlab.com/ee/api/project_job_token_scopes.html#get-a-projects-cicd-job-token-access-settings
11-
# suggests inbound_enabled True, means other projects have access, i.e. Limit Access to is OFF
12-
assert not scope.inbound_enabled
10+
assert scope.inbound_enabled
1311

1412

1513
def test_disable_limit_access_to_this_project(gl, project):
@@ -20,9 +18,7 @@ def test_disable_limit_access_to_this_project(gl, project):
2018

2119
scope.refresh()
2220

23-
# https://docs.gitlab.com/ee/api/project_job_token_scopes.html#get-a-projects-cicd-job-token-access-settings
24-
# suggests inbound_enabled True, means other projects have access, i.e. Limit Access to is OFF
25-
assert scope.inbound_enabled
21+
assert not scope.inbound_enabled
2622

2723

2824
def test_add_project_to_job_token_scope_allowlist(gl, project):

0 commit comments

Comments
 (0)