Skip to content

Commit e31c007

Browse files
committed
test: skip in Gitlab 15
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent be5ff38 commit e31c007

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/functional/api/test_project_job_token_scope.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import pytest
2+
3+
4+
# TODO: can be enabled when https://github.com/python-gitlab/python-gitlab/pull/2790 merged
5+
@pytest.mark.xfail(reason="project job_token_scope api only in 16.*")
16
def test_add_project_to_job_token_scope_allowlist(gl, project):
27
project_to_add = gl.projects.create({"name": "Ci_Cd_token_add_proj"})
38

@@ -10,6 +15,7 @@ def test_add_project_to_job_token_scope_allowlist(gl, project):
1015
project_to_add.delete()
1116

1217

18+
@pytest.mark.xfail(reason="project job_token_scope api only in 16.*")
1319
def test_projects_job_token_scope_allowlist_contains_added_project_name(gl, project):
1420
scope = project.job_token_scope.get()
1521
assert len(scope.allowlist.list()) == 0
@@ -24,6 +30,7 @@ def test_projects_job_token_scope_allowlist_contains_added_project_name(gl, proj
2430
project_to_add.delete()
2531

2632

33+
@pytest.mark.xfail(reason="project job_token_scope api only in 16.*")
2734
def test_remove_project_by_id_from_projects_job_token_scope_allowlist(gl, project):
2835
scope = project.job_token_scope.get()
2936
assert len(scope.allowlist.list()) == 0

0 commit comments

Comments
 (0)