fix: remove name from maintenance monitors and status pages

This commit is contained in:
lucasheld 2023-08-12 16:37:28 +02:00
parent be97a4fd8f
commit 2611b344f1
2 changed files with 6 additions and 12 deletions

View file

@ -59,8 +59,7 @@ class TestMaintenance(UptimeKumaTestCase):
monitor_id = self.add_monitor(monitor_name)
monitors = [
{
"id": monitor_id,
"name": monitor_name
"id": monitor_id
},
]
r = self.api.add_monitor_maintenance(maintenance_id, monitors)
@ -76,8 +75,7 @@ class TestMaintenance(UptimeKumaTestCase):
status_page_id = self.add_status_page(status_page_title)
status_pages = [
{
"id": status_page_id,
"name": status_page_title
"id": status_page_id
}
]
r = self.api.add_status_page_maintenance(maintenance_id, status_pages)

View file

@ -3521,12 +3521,10 @@ class UptimeKumaApi(object):
>>> monitors = [
... {
... "id": 1,
... "name": "monitor 1"
... "id": 1
... },
... {
... "id": 2,
... "name": "monitor 2"
... "id": 2
... }
... ]
>>> api.add_monitor_maintenance(1, monitors)
@ -3575,12 +3573,10 @@ class UptimeKumaApi(object):
>>> status_pages = [
... {
... "id": 1,
... "name": "status page 1"
... "id": 1
... },
... {
... "id": 2,
... "name": "status page 2"
... "id": 2
... }
... ]
>>> api.add_status_page_maintenance(1, status_pages)