File tree Expand file tree Collapse file tree 3 files changed +8
-32
lines changed Expand file tree Collapse file tree 3 files changed +8
-32
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
28
28
cache : ' pip'
29
29
30
30
- name : Install the requirements
31
- run : pip install pdm && pdm install -g --no-self
31
+ run : pip install pdm && pdm install -g && pip list
32
32
33
33
- name : Execute the integrationtests (http1.1)
34
- run : PYTHONPATH=$PWD/src python3 -m unittest discover tests/integrationtest
34
+ run : python3 -m unittest discover tests/integrationtest
35
35
env :
36
36
GRAFANA_HOST : ${{ secrets.GRAFANA_HOST }}
37
37
GRAFANA_TOKEN : ${{ secrets.GRAFANA_TOKEN }}
45
45
run : sleep 20
46
46
47
47
- name : Execute the integrationtests (http2)
48
- run : PYTHONPATH=$PWD/src python3 -m unittest discover tests/integrationtest
48
+ run : python3 -m unittest discover tests/integrationtest
49
49
env :
50
50
GRAFANA_HOST : ${{ secrets.GRAFANA_HOST }}
51
51
GRAFANA_TOKEN : ${{ secrets.GRAFANA_TOKEN }}
Original file line number Diff line number Diff line change 23
23
cache : ' pip'
24
24
25
25
- name : Install the requirements
26
- run : pip install pdm && pdm install --no-self -d
26
+ run : pip install pdm && pdm install --no-self -d -g
27
27
28
28
- name : Execute the unittests
29
29
run : PYTHONPATH=$PWD/src python3 -m unittest discover tests/unittests
Original file line number Diff line number Diff line change @@ -106,35 +106,11 @@ def test_e_delete_folder(self):
106
106
self .assertEqual (1 , len (self .folder .get_folders ()))
107
107
108
108
def test_get_folder_permissions (self ):
109
- self .assertEqual (
110
- [
111
- {
112
- "created" : "2024-06-25T19:52:40+02:00" ,
113
- "folderId" : 72 ,
114
- "inherited" : False ,
115
- "isFolder" : True ,
116
- "permission" : 1 ,
117
- "permissionName" : "View" ,
118
- "role" : "Viewer" ,
119
- "slug" : "" ,
120
- "team" : "" ,
121
- "teamAvatarUrl" : "" ,
122
- "teamEmail" : "" ,
123
- "teamId" : 0 ,
124
- "teamUid" : "" ,
125
- "title" : "Github Integrationtest" ,
126
- "uid" : "6U_QdWJnz" ,
127
- "updated" : "2024-06-25T19:52:40+02:00" ,
128
- "url" : "/dashboards/f/6U_QdWJnz/github-integrationtest" ,
129
- "userAvatarUrl" : "" ,
130
- "userEmail" : "" ,
131
- "userId" : 0 ,
132
- "userLogin" : "" ,
133
- "userUid" : "" ,
134
- }
135
- ],
136
- self .folder .get_folder_permissions ("6U_QdWJnz" ),
109
+ folder_permission : dict = self .folder .get_folder_permissions ("6U_QdWJnz" )[0 ]
110
+
111
+ self .assertEqual ("View" , folder_permission ["permissionName" ],
137
112
)
113
+ self .assertEqual (1 , folder_permission ["permission" ])
138
114
139
115
def test_f_update_folder_permissions (self ):
140
116
permission_dict : dict = dict ({"items" : [{"role" : "Viewer" , "permission" : 2 }]})
You can’t perform that action at this time.
0 commit comments