mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
feat(operations): jobs page
This commit is contained in:
parent
9c7943a0c8
commit
0fb0eb2bac
13 changed files with 564 additions and 2 deletions
|
|
@ -48,6 +48,7 @@ ALLOWED_FOR_ANY_USER = {
|
|||
"instance-flavor-detail": "API: flavor catalogue",
|
||||
"operation-list": "API: filtered to the user's own jobs",
|
||||
"operation-resource": "API: checks per resource who may see it",
|
||||
"operations:jobs": "lists only the user's own jobs",
|
||||
"schema": "API docs: any authenticated user (SERVE_PERMISSIONS)",
|
||||
"schema-json": "API docs: any authenticated user (SERVE_PERMISSIONS)",
|
||||
"schema-redoc": "API docs: any authenticated user (SERVE_PERMISSIONS)",
|
||||
|
|
@ -167,6 +168,8 @@ class AuthorizationMatrixTestCase(TestCase):
|
|||
for name, converter in params.items():
|
||||
if name in ("compute_id", "compute_pk"):
|
||||
kwargs[name] = self.compute.pk
|
||||
elif converter is not None and type(converter).__name__ == "UUIDConverter":
|
||||
kwargs[name] = "00000000-0000-0000-0000-000000000000"
|
||||
elif name in ("pk", "instance_id"):
|
||||
kwargs[name] = self.instance.pk if converter else str(self.instance.pk)
|
||||
elif name == "vname":
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ urlpatterns = [
|
|||
path("instances/", include("instances.urls")),
|
||||
path("i18n/", include("django.conf.urls.i18n")),
|
||||
path("logs/", include("logs.urls")),
|
||||
path("jobs/", include("operations.urls")),
|
||||
path('api/v1/', include("webvirtcloud.urls-api")),
|
||||
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
|
||||
re_path(r"^swagger\.(?P<format>json|yaml)$", SpectacularAPIView.as_view(), name="schema-json"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue