-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests for upgrade_document (#85)
* Add test for NetworkAccess * Add test for requirements in array notation
- Loading branch information
Showing
10 changed files
with
116 additions
and
24 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
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,13 @@ | ||
#!/usr/bin/env cwl-runner | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
inputs: | ||
d: Directory | ||
outputs: | ||
out: | ||
type: boolean | ||
outputBinding: | ||
outputEval: '$(inputs.d.listing.length === 1 && inputs.d.listing[0].listing.length === 1)' | ||
baseCommand: "true" |
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,10 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
inputs: [] | ||
outputs: [] | ||
baseCommand: python | ||
arguments: | ||
- "-c" | ||
- valueFrom: | | ||
import urllib.request | ||
assert(urllib.request.urlopen("http://commonwl.org").code == 200) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env cwl-runner | ||
class: CommandLineTool | ||
cwlVersion: v1.1 | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
- class: NetworkAccess | ||
networkAccess: true | ||
- class: LoadListingRequirement | ||
loadListing: deep_listing | ||
inputs: | ||
d: Directory | ||
outputs: | ||
out: | ||
type: boolean | ||
outputBinding: | ||
outputEval: '$(inputs.d.listing.length === 1 && inputs.d.listing[0].listing.length === 1)' | ||
baseCommand: "true" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.1 | ||
requirements: | ||
NetworkAccess: | ||
networkAccess: true | ||
LoadListingRequirement: | ||
loadListing: deep_listing | ||
inputs: [] | ||
outputs: [] | ||
baseCommand: python | ||
arguments: | ||
- "-c" | ||
- valueFrom: | | ||
import urllib.request | ||
assert(urllib.request.urlopen("http://commonwl.org").code == 200) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.2 | ||
requirements: | ||
NetworkAccess: | ||
networkAccess: true | ||
LoadListingRequirement: | ||
loadListing: deep_listing | ||
inputs: [] | ||
outputs: [] | ||
baseCommand: python | ||
arguments: | ||
- "-c" | ||
- valueFrom: | | ||
import urllib.request | ||
assert(urllib.request.urlopen("http://commonwl.org").code == 200) |
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