Skip to content

Commit 3fbfdeb

Browse files
committed
feat: [DPS-44447] Add integration test for stream quotas
1 parent 9a301d4 commit 3fbfdeb

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎test/integration/models/monitor/test_monitor_logs.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
AkamaiObjectStorageLogsDestinationDetails,
2020
LogsDestination,
2121
LogsStream,
22+
LogsStreamQuota,
2223
LogsStreamStatus,
2324
)
2425

@@ -519,3 +520,21 @@ def test_update_stream_destinations(
519520
assert (
520521
snapshot_updated.destinations[0].id == create_secondary_destination.id
521522
)
523+
524+
525+
@_SKIP_STREAM_TESTS
526+
def test_list_stream_quotas(test_linode_client: LinodeClient):
527+
"""Test that stream quota definitions can be retrieved from the API."""
528+
quotas = test_linode_client.monitor.stream_quotas()
529+
530+
assert isinstance(quotas, PaginatedList)
531+
assert len(quotas) > 0
532+
assert all(isinstance(quota, LogsStreamQuota) for quota in quotas)
533+
assert all(
534+
quota.quota_id
535+
and quota.quota_name
536+
and quota.quota_type
537+
and quota.description
538+
for quota in quotas
539+
)
540+
assert all(quota.quota_limit >= 0 for quota in quotas)

0 commit comments

Comments
 (0)