Skip to content

Commit e0a3a41

Browse files
nejchJohnVillalovos
authored andcommitted
fix(objects): make resource access tokens and repos available in CLI
1 parent ff04900 commit e0a3a41

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

gitlab/v4/objects/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from .features import *
4040
from .files import *
4141
from .geo_nodes import *
42+
from .group_access_tokens import *
4243
from .groups import *
4344
from .hooks import *
4445
from .issues import *
@@ -58,9 +59,11 @@
5859
from .pages import *
5960
from .personal_access_tokens import *
6061
from .pipelines import *
62+
from .project_access_tokens import *
6163
from .projects import *
6264
from .push_rules import *
6365
from .releases import *
66+
from .repositories import *
6467
from .runners import *
6568
from .services import *
6669
from .settings import *
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
4+
def test_list_project_access_tokens(gitlab_cli, project):
5+
cmd = ["project-access-token", "list", "--project-id", project.id]
6+
ret = gitlab_cli(cmd)
7+
8+
assert ret.success
9+
10+
11+
@pytest.mark.skip(reason="Requires GitLab 14.7")
12+
def test_list_group_access_tokens(gitlab_cli, group):
13+
cmd = ["group-access-token", "list", "--group-id", group.id]
14+
ret = gitlab_cli(cmd)
15+
16+
assert ret.success

0 commit comments

Comments
 (0)