Skip to content

Commit 5ed29a9

Browse files
committed
WIP
1 parent 5a21807 commit 5ed29a9

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

.github/workflows/integrationtest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
cache: 'pip'
2929

3030
- name: Install the requirements
31-
run: pip install pdm && pdm install -g --no-self
31+
run: pip install pdm && pdm install -g && pip list
3232

3333
- 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
3535
env:
3636
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
3737
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
@@ -45,7 +45,7 @@ jobs:
4545
run: sleep 20
4646

4747
- name: Execute the integrationtests (http2)
48-
run: PYTHONPATH=$PWD/src python3 -m unittest discover tests/integrationtest
48+
run: python3 -m unittest discover tests/integrationtest
4949
env:
5050
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
5151
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}

.github/workflows/pull-request-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: 'pip'
2424

2525
- 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
2727

2828
- name: Execute the unittests
2929
run: PYTHONPATH=$PWD/src python3 -m unittest discover tests/unittests

tests/integrationtest/test_folder.py

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -106,35 +106,11 @@ def test_e_delete_folder(self):
106106
self.assertEqual(1, len(self.folder.get_folders()))
107107

108108
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"],
137112
)
113+
self.assertEqual(1, folder_permission["permission"])
138114

139115
def test_f_update_folder_permissions(self):
140116
permission_dict: dict = dict({"items": [{"role": "Viewer", "permission": 2}]})

0 commit comments

Comments
 (0)