File tree Expand file tree Collapse file tree
test/integration/models/monitor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -375,6 +375,9 @@ class AlertChannel(Base):
375375
376376 This class maps to the Monitor API's `/monitor/alert-channels` resource
377377 and is used by the SDK to list, load, and inspect channels.
378+
379+ NOTE: Only read operations are supported for AlertChannel at this time.
380+ Create, update, and delete (CRUD) operations are not allowed.
378381 """
379382
380383 api_endpoint = "/monitor/alert-channels/{id}"
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ def test_integration_create_get_update_delete_alert_definition(
198198 # transient errors while polling; continue until timeout
199199 pass
200200
201+ assert created .id == updated .id
202+ assert updated .label == f"{ label } -updated"
203+
201204 finally :
202205 if created :
203206 # Best-effort cleanup; allow transient errors.
@@ -206,7 +209,6 @@ def test_integration_create_get_update_delete_alert_definition(
206209 delete_alert = client .load (AlertDefinition , created .id , service_type )
207210 delete_alert .delete ()
208211 except Exception :
209-
210212 pass
211213
212214 # confirm it's gone (if API returns 404 or raises)
You can’t perform that action at this time.
0 commit comments