cwl_utils/testdata/extensions/network-access_v1_0.cwl
raw| 1 | #!/usr/bin/env cwl-runner |
| 2 | class: CommandLineTool |
| 3 | cwlVersion: v1.0 |
| 4 | $namespaces: |
| 5 | cwltool: "http://commonwl.org/cwltool#" |
| 6 | requirements: |
| 7 | cwltool:NetworkAccess: |
| 8 | networkAccess: true |
| 9 | inputs: [] |
| 10 | outputs: [] |
| 11 | baseCommand: python |
| 12 | arguments: |
| 13 | - "-c" |
| 14 | - valueFrom: | |
| 15 | import urllib.request |
| 16 | assert(urllib.request.urlopen("http://commonwl.org").code == 200) |