From c326c934210c6c9378578e78f54bc74ac63e3237 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 24 Sep 2024 10:12:23 +0200 Subject: [PATCH] adaptations to plcapi 7.2.1 --- system/plcsh_stress_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/plcsh_stress_test.py b/system/plcsh_stress_test.py index 1dc6e97..6479a06 100755 --- a/system/plcsh_stress_test.py +++ b/system/plcsh_stress_test.py @@ -1685,9 +1685,13 @@ class Test: if self.check: # Check that slice is gone assert not self.api.GetSlices([slice_id]) + assert not self.api.GetSlices( + {'slice_id': slice_id, 'EXPIRED':True}) # but we can still retrieve it with the ALL filter assert len(self.api.GetSlices( - {'slice_id': slice_id, 'ALL': True})) == 1 + {'slice_id': slice_id, 'DELETED': True})) == 1 + assert len(self.api.GetSlices( + {'slice_id': slice_id, 'DELETED': True, 'EXPIRED': True})) == 1 if self.verbose: print("Deleted slice", slice_id) -- 2.45.2