Skip to content

Commit e595a72

Browse files
committed
Updated integration test with more assert statements
1 parent e459ac8 commit e595a72

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

linode_api4/objects/monitor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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}"

test/integration/models/monitor/test_monitor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)