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 @@ -757,6 +757,7 @@ class LogsStreamStatus(StrEnum):
757757 active = "active"
758758 inactive = "inactive"
759759 provisioning = "provisioning"
760+ deactivating = "deactivating"
760761
761762
762763class LogsStreamType (StrEnum ):
Original file line number Diff line number Diff line change @@ -420,19 +420,19 @@ def test_update_stream_label_and_status(
420420
421421 new_label = original_label + "-upd"
422422 new_status = (
423- LogsStreamStatus .inactive
423+ [ LogsStreamStatus .inactive , LogsStreamStatus . deactivating ]
424424 if original_status == LogsStreamStatus .active
425- else LogsStreamStatus .active
425+ else [ LogsStreamStatus .active , LogsStreamStatus . provisioning ]
426426 )
427427
428428 stream .label = new_label
429- stream .status = new_status
429+ stream .status = new_status [ 0 ]
430430 result = stream .save ()
431431 assert result is True
432432
433433 updated = test_linode_client .load (LogsStream , provisioned_stream .id )
434434 assert updated .label == new_label
435- assert updated .status == new_status
435+ assert updated .status in new_status
436436
437437 history = updated .history
438438 snapshot_original = next (h for h in history if h .version == version_before )
You can’t perform that action at this time.
0 commit comments