-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WX-743 Enable TES task creation with BlobPaths #6921
Changes from all commits
d4a57a8
f41ff6b
aacfd81
f2cba32
a2b10f9
26eca2f
3879df4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,17 @@ class BlobPathBuilderSpec extends AnyFlatSpec with Matchers with MockSugar { | |
val fileText = (is.readAllBytes.map(_.toChar)).mkString | ||
fileText should include ("This is my test file!!!! Did it work?") | ||
} | ||
|
||
ignore should "resolve a path without duplicating container name" in { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, ignored because it depends on the local environment being logged in to Azure, so it's useful for dev testing, not for Travis testing. I waffled on whether to include it at all; we still need to work out our approach for testing the "thin ring" of logic that depends on library internals. I ended up leaving it in since there are other tests in this file that follow the same pattern. I never went back and renamed it to something clearer, though, will do that. |
||
val endpoint = BlobPathBuilderSpec.buildEndpoint("coaexternalstorage") | ||
val store = BlobContainerName("inputs") | ||
val blobTokenGenerator = NativeBlobTokenGenerator(store, endpoint) | ||
val fsm: BlobFileSystemManager = BlobFileSystemManager(store, endpoint, 10, blobTokenGenerator) | ||
|
||
val rootString = s"${endpoint.value}/${store.value}/cromwell-execution" | ||
val blobRoot: BlobPath = new BlobPathBuilder(store, endpoint)(fsm) build rootString getOrElse fail() | ||
blobRoot.toAbsolutePath.pathAsString should equal ("https://coaexternalstorage.blob.core.windows.net/inputs/cromwell-execution") | ||
val otherFile = blobRoot.resolve("test/inputFile.txt") | ||
otherFile.toAbsolutePath.pathAsString should equal ("https://coaexternalstorage.blob.core.windows.net/inputs/cromwell-execution/test/inputFile.txt") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaning this up while I was in here.