mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Complete resource pool support for projects
This commit is contained in:
1 parent
d53ef175f8
commit
a95dda0d1d
6 files changed
+256
-30
No files matched your search
@@ -42,6 +42,12 @@ class TestRolesRoutes:
|
||||
assert response.status_code == status.HTTP_200_OK
|
||||
assert response.json()["role_id"] == str(role_in_db.role_id)
|
||||
|
||||
async def test_get_privileges(self, app: FastAPI, client: AsyncClient):
|
||||
|
||||
response = await client.get(app.url_path_for("get_privileges"))
|
||||
assert response.status_code == status.HTTP_200_OK
|
||||
assert len(response.json()) == 45 # 45 built-in privileges
|
||||
|
||||
async def test_list_roles(self, app: FastAPI, client: AsyncClient) -> None:
|
||||
|
||||
response = await client.get(app.url_path_for("get_roles"))
|
||||
|
||||
Reference in new issue
Block a user