From 9078b1c34e2daa2de5e39921ac4efa6494d88591 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Wed, 2 Oct 2024 15:40:05 +0200 Subject: [PATCH] test: Add more tests for getTransformationFiles --- .../Test_Client_Transformation.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Integration/TransformationSystem/Test_Client_Transformation.py b/tests/Integration/TransformationSystem/Test_Client_Transformation.py index 3cf1287253c..ff7a3d3ee77 100644 --- a/tests/Integration/TransformationSystem/Test_Client_Transformation.py +++ b/tests/Integration/TransformationSystem/Test_Client_Transformation.py @@ -114,6 +114,17 @@ def test_addTasksAndFiles(self): for f in res["Value"]: self.assertEqual(f["Status"], TransformationFilesStatus.ASSIGNED) + # make sure we can selectively select LFNs + res = self.transClient.getTransformationFiles({"TransformationID": transID, "LFN": ["/aa/lfn.1.txt"]}) + assert res["OK"], res + assert len(res["Value"]) == 1, res + assert "TargetSE" in res["Value"][0].keys(), res + + # make sure we can selectively select columns + res = self.transClient.getTransformationFiles({"TransformationID": transID}, columns=["LFN", "Status"]) + assert res["OK"], res + assert res["Value"][0].keys() == ["LFN", "Status"], res + # now adding a new Transformation with new tasks, and introducing a mix of insertion, # to test that the trigger works as it should res = self.transClient.addTransformation(