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.*" )
6
1
def test_add_project_to_job_token_scope_allowlist (gl ,project ):
7
2
project_to_add = gl .projects .create ({"name" :"Ci_Cd_token_add_proj" })
8
3
@@ -15,7 +10,6 @@ def test_add_project_to_job_token_scope_allowlist(gl, project):
15
10
project_to_add .delete ()
16
11
17
12
18
- @pytest .mark .xfail (reason = "project job_token_scope api only in 16.*" )
19
13
def test_projects_job_token_scope_allowlist_contains_added_project_name (gl ,project ):
20
14
scope = project .job_token_scope .get ()
21
15
assert len (scope .allowlist .list ())== 0
@@ -30,7 +24,6 @@ def test_projects_job_token_scope_allowlist_contains_added_project_name(gl, proj
30
24
project_to_add .delete ()
31
25
32
26
33
- @pytest .mark .xfail (reason = "project job_token_scope api only in 16.*" )
34
27
def test_remove_project_by_id_from_projects_job_token_scope_allowlist (gl ,project ):
35
28
scope = project .job_token_scope .get ()
36
29
assert len (scope .allowlist .list ())== 0