-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure blob read/write integration test (#7024)
Co-authored-by: Tom Wiseman <[email protected]>
- Loading branch information
Showing
9 changed files
with
131 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
centaur/src/main/resources/azureBlobTestCases/azure_blob_storage_read.test
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,16 @@ | ||
name: azure_blob_storage_read | ||
testFormat: workflowsuccess | ||
backends: [Local] | ||
tags: ["blob", "azure"] | ||
retryTestFailures: false | ||
|
||
files { | ||
workflow: azure_blob_storage_read/azure_blob_storage_read.wdl | ||
inputs: azure_blob_storage_read/azure_blob_storage_read.inputs | ||
options: azure_blob_storage_read/azure_blob_storage_read.options | ||
} | ||
|
||
metadata { | ||
status: Succeeded | ||
"outputs.azure_blob_storage_read.s1": "This is my test file! Did it work??" | ||
} |
3 changes: 3 additions & 0 deletions
3
.../main/resources/azureBlobTestCases/azure_blob_storage_read/azure_blob_storage_read.inputs
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 @@ | ||
{ | ||
"azure_blob_storage_read.file1": "https://centaurtesting.blob.core.windows.net/test-blob/testRead.txt" | ||
} |
3 changes: 3 additions & 0 deletions
3
...main/resources/azureBlobTestCases/azure_blob_storage_read/azure_blob_storage_read.options
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 @@ | ||
{ | ||
"final_workflow_log_dir": "https://centaurtesting.blob.core.windows.net/test-blob/test-cromwell-workflow-logs" | ||
} |
12 changes: 12 additions & 0 deletions
12
...src/main/resources/azureBlobTestCases/azure_blob_storage_read/azure_blob_storage_read.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,12 @@ | ||
version 1.0 | ||
|
||
workflow azure_blob_storage_read { | ||
|
||
input { | ||
File file1 | ||
} | ||
|
||
output { | ||
String s1 = read_string(file1) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset -o pipefail | ||
# import in shellcheck / CI / IntelliJ compatible ways | ||
# shellcheck source=/dev/null | ||
source "${BASH_SOURCE%/*}/test.inc.sh" || source test.inc.sh | ||
|
||
#NB: This function ensures that the correct .conf file is being used by cromwell (among other things). | ||
#Blob storage requires a configuration file tailored for Azure. | ||
cromwell::build::setup_common_environment | ||
|
||
cromwell::build::setup_centaur_environment | ||
|
||
cromwell::build::assemble_jars | ||
|
||
cromwell::build::run_centaur | ||
|
||
cromwell::build::generate_code_coverage |
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,66 @@ | ||
include required(classpath("application.conf")) | ||
include "build_application.inc.conf" | ||
|
||
filesystems { | ||
blob { | ||
class = "cromwell.filesystems.blob.BlobPathBuilderFactory" | ||
global { | ||
# One BFSM is shared across all BlobPathBuilders | ||
class = "cromwell.filesystems.blob.BlobFileSystemManager" | ||
config { | ||
container: "test-blob" | ||
endpoint: "https://centaurtesting.blob.core.windows.net" | ||
subscription: "62b22893-6bc1-46d9-8a90-806bb3cce3c9" | ||
} | ||
} | ||
} | ||
} | ||
|
||
engine { | ||
filesystems { | ||
local { | ||
enabled: false | ||
} | ||
http { | ||
enabled: false | ||
} | ||
blob { | ||
enabled: true | ||
} | ||
} | ||
} | ||
|
||
|
||
backend { | ||
# Note that the backend is not selected purposefully here, | ||
# the existing tests at the time of writing do not submit tasks to a backend. | ||
default = "TES" | ||
providers { | ||
TES { | ||
actor-factory = "cromwell.backend.impl.tes.TesBackendLifecycleActorFactory" | ||
config { | ||
# Use for running on blob storage | ||
#root = "https://<storage-account>.blob.core.windows.net/cromwell/cromwell-executions" | ||
root = "cromwell-executions" | ||
dockerRoot = "/cromwell-executions" | ||
endpoint = "http://127.0.0.1:9000/v1/tasks" | ||
concurrent-job-limit = 1000 | ||
transform-blob-to-local-path = false | ||
filesystems { | ||
blob { | ||
enabled: true | ||
} | ||
local { | ||
enabled: true | ||
} | ||
http { | ||
enabled: true | ||
} | ||
} | ||
} | ||
|
||
# Have the engine (maybe) authenticate to docker.io. See BT-141 for more info. | ||
include "dockerhub_provider_config_v1.inc.conf" | ||
} | ||
} | ||
} |