From: Thierry Parmentelat Date: Mon, 23 Sep 2024 16:32:20 +0000 (+0200) Subject: add test gor GetSlices with the ALL keyword X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0de2cf26036895afb48d0c5c8edf76c49215070e;p=tests.git add test gor GetSlices with the ALL keyword --- diff --git a/system/plcsh_stress_test.py b/system/plcsh_stress_test.py index f64dbe8..1dc6e97 100755 --- a/system/plcsh_stress_test.py +++ b/system/plcsh_stress_test.py @@ -1683,7 +1683,11 @@ class Test: self.api.DeleteSlice(slice_id) if self.check: + # Check that slice is gone assert not self.api.GetSlices([slice_id]) + # but we can still retrieve it with the ALL filter + assert len(self.api.GetSlices( + {'slice_id': slice_id, 'ALL': True})) == 1 if self.verbose: print("Deleted slice", slice_id)