-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Dependencies * Compiles but no tests * Formatting * Moar exclusions * Update to latest WSM * Add additional dependency * We need some UUID here to make the request * Formatting * Clarify what is fake * Formatting * Use our own version of Jersey and Jackson stuff * Port-in Khalid's changes (thank you!) Co-authored-by: Khalid Shakir <kshakir@broadinstitute.org> * Test longevity Don't break the test if someone decides to add a cert to `ws.org` * Cleanup * Cleanup * Cleanup * Adjust TES config file for CI Co-authored-by: Janet Gainer-Dewar <jdewar@broadinstitute.org> Co-authored-by: Khalid Shakir <kshakir@broadinstitute.org>
- Loading branch information
1 parent
432e72f
commit 95e4449
Showing
10 changed files
with
275 additions
and
28 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
centaur/src/main/resources/standardTestCases/blob_md5/blob_md5.inputs.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,3 @@ | ||
{ | ||
"fileChecksum.inputFile": "https://<storage-account>.blob.core.windows.net/cromwell/user-inputs/inputFile.txt" | ||
} |
20 changes: 20 additions & 0 deletions
20
centaur/src/main/resources/standardTestCases/blob_md5/blob_md5.wdl
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,20 @@ | ||
task md5 { | ||
File inputFile | ||
command { | ||
echo "`date`: Running checksum on ${inputFile}..." | ||
md5sum ${inputFile} > md5sum.txt | ||
echo "`date`: Checksum is complete." | ||
} | ||
output { | ||
File result = "md5sum.txt" | ||
} | ||
runtime { | ||
docker: 'ubuntu:18.04' | ||
preemptible: true | ||
} | ||
} | ||
|
||
workflow fileChecksum { | ||
File inputFile | ||
call md5 { input: inputFile=inputFile} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
...ems/blob/src/main/scala/cromwell/filesystems/blob/WorkspaceManagerApiClientProvider.scala
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,32 @@ | ||
package cromwell.filesystems.blob | ||
|
||
import bio.terra.workspace.api.ControlledAzureResourceApi | ||
import bio.terra.workspace.client.ApiClient | ||
|
||
/** | ||
* Represents a way to get various workspace manager clients | ||
* | ||
* Pared down from `org.broadinstitute.dsde.rawls.dataaccess.workspacemanager.WorkspaceManagerApiClientProvider` | ||
* | ||
* For testing, create an anonymous subclass as in `org.broadinstitute.dsde.rawls.dataaccess.workspacemanager.HttpWorkspaceManagerDAOSpec` | ||
*/ | ||
trait WorkspaceManagerApiClientProvider { | ||
def getApiClient: ApiClient | ||
|
||
def getControlledAzureResourceApi: ControlledAzureResourceApi | ||
|
||
} | ||
|
||
class HttpWorkspaceManagerClientProvider(baseWorkspaceManagerUrl: WorkspaceManagerURL, token: String) extends WorkspaceManagerApiClientProvider { | ||
def getApiClient: ApiClient = { | ||
val client: ApiClient = new ApiClient() | ||
client.setBasePath(baseWorkspaceManagerUrl.value) | ||
client.setAccessToken(token) | ||
|
||
client | ||
} | ||
|
||
def getControlledAzureResourceApi: ControlledAzureResourceApi = | ||
new ControlledAzureResourceApi(getApiClient) | ||
|
||
} |
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
Oops, something went wrong.