-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add test to verify WA job attachment settings
Signed-off-by: Yutong Li <52769999+YutongLi291@users.noreply.github.com>
- Loading branch information
1 parent
3db4cf6
commit 5e1823b
Showing
4 changed files
with
134 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ __pycache__/ | |
.vscode/ | ||
*_version.py | ||
tmp.* | ||
.deployed_resources.sh | ||
.deployed_resources.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Hi! This is a nice test input file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"specificationVersion": "jobtemplate-2023-09", | ||
"name": "AssetsExample", | ||
"parameterDefinitions": [ | ||
{ | ||
"name": "DataDir", | ||
"type": "PATH", | ||
"dataFlow": "INOUT", | ||
"userInterface": { | ||
"label": "Input/Output Directory", | ||
"control": "CHOOSE_DIRECTORY" | ||
} | ||
}, | ||
{ | ||
"name": "StringToAppend", | ||
"type": "STRING" | ||
} | ||
], | ||
"steps": [ | ||
|
||
{ | ||
"name": "AppendString", | ||
"script": { | ||
"actions": { | ||
"onRun": { | ||
"command": "{{ Task.File.runScript }}" | ||
} | ||
}, | ||
"embeddedFiles": [ | ||
{ | ||
"name": "runScript", | ||
"type": "TEXT", | ||
"runnable": true, | ||
"data": "#!/usr/bin/env bash\n\n echo -n $(cat {{Param.DataDir}}/files/test_input_file){{Param.StringToAppend}} > {{Param.DataDir}}/output_file.txt\n" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters