From 4a8c22b9e1bf38f118146766de28f533a1804cf7 Mon Sep 17 00:00:00 2001 From: Marvin Buss <34542414+marvinbuss@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:13:21 +0200 Subject: [PATCH] Updating pipeline: TestOttRawToCurated --- .../pipeline/TestOttRawToCurated.json | 53 +++++++++++++++---- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/code/datafactory/pipeline/TestOttRawToCurated.json b/code/datafactory/pipeline/TestOttRawToCurated.json index e01a96d..af53891 100644 --- a/code/datafactory/pipeline/TestOttRawToCurated.json +++ b/code/datafactory/pipeline/TestOttRawToCurated.json @@ -34,39 +34,74 @@ "secureOutput": false, "secureInput": false }, - "userProperties": [] + "userProperties": [], + "typeProperties": { + "variableName": "sinkFileSystem", + "value": { + "value": "@string(activity('TestOttRawToCurated').output.pipelineReturnValue.sinkFileSystem)", + "type": "Expression" + } + } + }, + { + "name": "IfSinkFileSystem", + "description": "", + "type": "IfCondition", + "dependsOn": [ + { + "activity": "GetPipelineVariableSinkFileSystem", + "dependencyConditions": [ + "Succeeded" + ] + } + ], + "userProperties": [], + "typeProperties": { + "expression": { + "value": "@equals(variables('sinkFileSystem'), pipeline().parameters.expectedSinkFileSystem)", + "type": "Expression" + } + } } ], - "variables": { + "parameters": { "sourceFileSystem": { - "type": "String", + "type": "string", "defaultValue": "raw" }, "sourceFolderPath": { - "type": "String", + "type": "string", "defaultValue": "ott" }, "sourceFileName": { - "type": "String", + "type": "string", "defaultValue": "data.csv" }, "sinkFileSystem": { - "type": "String", + "type": "string", "defaultValue": "curated" }, "sinkFolderPath": { - "type": "String", + "type": "string", "defaultValue": "ott" }, "expectedSinkFileSystem": { - "type": "String", + "type": "string", "defaultValue": "curated" }, "expectedSinkFolderPath": { - "type": "String", + "type": "string", "defaultValue": "ott" } }, + "variables": { + "sinkFileSystem": { + "type": "String" + }, + "sinkFolderPath": { + "type": "String" + } + }, "folder": { "name": "Tests/OTT" },