-
Notifications
You must be signed in to change notification settings - Fork 360
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
BT-710 Add configs for BlobPathBuilderFactory #6817
Changes from 7 commits
b1ca0d8
75c265a
0c1da99
c34078b
6789acf
717bfa5
e57eca5
f1bb4b0
16bdb3a
3daa895
5b90821
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 |
---|---|---|
|
@@ -3,7 +3,8 @@ package cromwell.webservice.routes.wes | |
import akka.actor.Props | ||
import akka.http.scaladsl.testkit.ScalatestRouteTest | ||
import akka.util.Timeout | ||
import cromwell.languages.config.{CromwellLanguages, LanguageConfiguration} | ||
import cromwell.languages.config.CromwellLanguages | ||
import cromwell.languages.config.LanguageConfiguration | ||
import cromwell.webservice.routes.CromwellApiService | ||
import cromwell.webservice.routes.CromwellApiServiceSpec.MockWorkflowStoreActor | ||
import org.scalatest.flatspec.AsyncFlatSpec | ||
|
@@ -24,7 +25,7 @@ class ServiceInfoSpec extends AsyncFlatSpec with ScalatestRouteTest with Matcher | |
|
||
val expectedResponse = WesStatusInfoResponse(Map("CWL" -> Set("v1.0"), "WDL" -> Set("draft-2", "1.0", "biscayne")), | ||
List("1.0"), | ||
Set("ftp", "s3", "drs", "gcs", "http"), | ||
Set("ftp", "s3", "drs", "gcs", "http", "blob"), | ||
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. Hm, does this indicate that we're reporting the blob filesystem to WES users as something they can use? I don't think we want to do that yet. 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. Good point, I'll look into whats happening here |
||
Map("Cromwell" -> CromwellApiService.cromwellVersion), | ||
List(), | ||
Map(WesState.Running -> 5, WesState.Queued -> 3, WesState.Canceling -> 2), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cromwell.filesystems.blob | ||
|
||
import com.typesafe.config.ConfigFactory | ||
import org.scalatest.flatspec.AnyFlatSpec | ||
import org.scalatest.matchers.should.Matchers | ||
|
||
class BlobPathBuilderFactorySpec extends AnyFlatSpec with Matchers { | ||
|
||
it should "parse configs for a functioning factory" in { | ||
val endpoint = BlobPathBuilderSpec.buildEndpoint("coaexternalstorage") | ||
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. Let's not check in this storage account name. It might be worth taking another look at this test as part of our conversations about overall testing strategy, but I think it's fine to merge for now. |
||
val store = "inputs" | ||
val sasToken = "{SAS TOKEN HERE}" | ||
val workspaceId = "mockWorkspaceId" | ||
val workspaceManagerURL = "https://test.ws.org" | ||
val instanceConfig = ConfigFactory.parseString( | ||
s""" | ||
|sas-token = "$sasToken" | ||
|store = "$store" | ||
|endpoint = "$endpoint" | ||
|workspace-id = "$workspaceId" | ||
""".stripMargin) | ||
val singletonConfig = ConfigFactory.parseString(s"""workspace-manager-url = "$workspaceManagerURL" """) | ||
val globalConfig = ConfigFactory.parseString("""""") | ||
val factory = BlobPathBuilderFactory(globalConfig, instanceConfig, new BlobFileSystemConfig(singletonConfig)) | ||
factory.container should equal(store) | ||
factory.endpoint should equal(endpoint) | ||
factory.sasToken should equal(sasToken) | ||
factory.workspaceId should equal(workspaceId) | ||
factory.workspaceManagerURL should equal(workspaceManagerURL) | ||
} | ||
} |
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.
Would you mind backing out these changes since we didn't otherwise change the file?