-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
310b1fd
commit 0a0e3b7
Showing
13 changed files
with
210 additions
and
13 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
tests/functional/application-packages/DeployProcess_DockerNetCDF2Text.json
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,14 @@ | ||
{ | ||
"processDescription": { | ||
"process": { | ||
"id": "DockerNetCDF2Text", | ||
"description": "Mock WPS-1 operation followed by copy of images." | ||
} | ||
}, | ||
"executionUnit": [ | ||
{ | ||
"test": "DockerNetCDF2Text.cwl" | ||
} | ||
], | ||
"deploymentProfileName": "http://www.opengis.net/profiles/eoc/dockerizedApplication" | ||
} |
31 changes: 31 additions & 0 deletions
31
tests/functional/application-packages/DeployProcess_WPS1JsonArray2NetCDF.yml
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,31 @@ | ||
processDescription: | ||
process: | ||
id: WPS1JsonArray2NetCDF | ||
version: 0.0.1 | ||
description: Process that calls Weaver's own builtin process using its WPS-1 interface. | ||
inputs: | ||
- id: input_json | ||
formats: | ||
- mediaType: application/json | ||
outputs: | ||
- id: output_files | ||
formats: | ||
- mediaType: application/x-netcdf | ||
executionUnit: | ||
- unit: | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
hints: # cannot be in requirements since not official CWL | ||
WPS1Requirement: | ||
# note: this must match the WebTest TestApp endpoint and settings | ||
provider: "https://localhost/ows/wps" | ||
process: jsonarray2netcdf | ||
inputs: | ||
input_json: | ||
type: File | ||
outputs: | ||
output_files: | ||
type: File[] | ||
outputBinding: | ||
glob: "*.nc" | ||
deploymentProfileName: http://www.opengis.net/profiles/eoc/wpsApplication |
14 changes: 14 additions & 0 deletions
14
tests/functional/application-packages/DeployProcess_WorkflowWPS1CopyNetCDF.json
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,14 @@ | ||
{ | ||
"processDescription": { | ||
"process": { | ||
"id": "WorkflowWPS1CopyNetCDF", | ||
"description": "Mock WPS-1 operation followed by copy of images." | ||
} | ||
}, | ||
"executionUnit": [ | ||
{ | ||
"test": "WorkflowWPS1CopyNetCDF.cwl" | ||
} | ||
], | ||
"deploymentProfileName": "http://www.opengis.net/profiles/eoc/workflow" | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/functional/application-packages/DockerNetCDF2Text.cwl
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,28 @@ | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
baseCommand: | ||
- bash | ||
- script.sh | ||
requirements: | ||
DockerRequirement: | ||
dockerPull: debian:stretch-slim | ||
InitialWorkDirRequirement: | ||
listing: | ||
- entryname: script.sh | ||
entry: | | ||
set -x | ||
in="\${1}" | ||
out="\${2%.*}.txt" | ||
echo "Input: \${in}" | ||
echo "Output: \${out}" | ||
mv "\${in}" "\${out}" | ||
inputs: | ||
input_nc: | ||
type: File | ||
inputBinding: | ||
position: 1 | ||
outputs: | ||
output_txt: | ||
type: File | ||
outputBinding: | ||
glob: "*.txt" |
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
8 changes: 8 additions & 0 deletions
8
tests/functional/application-packages/Execute_DockerNetCDF2Text.yml
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,8 @@ | ||
mode: async | ||
response: document | ||
inputs: | ||
- id: input_nc | ||
href: https://mocked-file-server.com/file.nc | ||
outputs: | ||
- id: output_txt | ||
transmissionMode: reference |
8 changes: 8 additions & 0 deletions
8
tests/functional/application-packages/Execute_WPS1JsonArray2NetCDF.yml
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,8 @@ | ||
mode: async | ||
response: document | ||
inputs: | ||
- id: input_json | ||
href: https://mocked-file-server.com/netcdf-array.json | ||
outputs: | ||
- id: output_files | ||
transmissionMode: reference |
8 changes: 8 additions & 0 deletions
8
tests/functional/application-packages/Execute_WorkflowWPS1CopyNetCDF.yml
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,8 @@ | ||
mode: async | ||
response: document | ||
inputs: | ||
- id: input_json | ||
href: https://mocked-file-server.com/netcdf-array.json | ||
outputs: | ||
- id: output_files | ||
transmissionMode: reference |
27 changes: 27 additions & 0 deletions
27
tests/functional/application-packages/WorkflowWPS1CopyNetCDF.cwl
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,27 @@ | ||
cwlVersion: v1.0 | ||
class: Workflow | ||
requirements: | ||
ScatterFeatureRequirement: {} | ||
inputs: | ||
input_json: File | ||
outputs: | ||
output: | ||
type: | ||
type: array | ||
items: File | ||
outputSource: convert/output_txt | ||
steps: | ||
parse: | ||
# note: This cannot exist as CWL by itself. It uses Weaver WSP1Requirement. | ||
run: WPS1JsonArray2NetCDF.cwl | ||
in: | ||
input_json: input_json | ||
out: | ||
- output_files | ||
convert: | ||
run: DockerNetCDF2Text.cwl | ||
scatter: input_nc | ||
in: | ||
input_nc: parse/output_files | ||
out: | ||
- output_txt |
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
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
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
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