Skip to content

Commit 9941f7c

Browse files
committed
dashboard/api: introduce clone as responsive grid dashboard endpoint
Change-Id: I200e6c1326fc55af3dda6d11ee8e92e21f0c4ce3
1 parent 2152cb2 commit 9941f7c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cmk/gui/openapi/restful_objects/type_defs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"cmk/bulk_discovery",
103103
"cmk/bulk_update",
104104
"cmk/clone_dashboard_relative_grid",
105+
"cmk/clone_dashboard_responsive_grid",
105106
"cmk/compute",
106107
"cmk/compute-list",
107108
"cmk/configure",

tests/testlib/unit/rest_api_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,16 @@ def create_responsive_grid_dashboard(
35093509
expect_ok=expect_ok,
35103510
)
35113511

3512+
def clone_as_responsive_grid_dashboard(
3513+
self, payload: dict[str, Any], expect_ok: bool = True
3514+
) -> Response:
3515+
return self.request(
3516+
"post",
3517+
url=f"/domain-types/{self.domain_responsive}/actions/clone/invoke",
3518+
body=payload,
3519+
expect_ok=expect_ok,
3520+
)
3521+
35123522
def edit_relative_grid_dashboard(
35133523
self, dashboard_id: str, payload: dict[str, Any], expect_ok: bool = True
35143524
) -> Response:

0 commit comments

Comments
 (0)