Skip to content

Commit

Permalink
Change the config name
Browse files Browse the repository at this point in the history
  • Loading branch information
chetanmeh committed Apr 24, 2018
1 parent add85c6 commit e76b758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import whisk.core.entity.{DocumentReader, WhiskActivation, WhiskAuth, WhiskEntit

import scala.reflect.ClassTag

case class CosmosDBConfig(host: String, key: String, db: String)
case class CosmosDBConfig(endpoint: String, key: String, db: String)

case class ClientHolder(client: AsyncDocumentClient) extends Closeable {
override def close(): Unit = client.close()
Expand Down Expand Up @@ -103,7 +103,7 @@ object CosmosDBArtifactStoreProvider extends ArtifactStoreProvider {

private def createClient(config: CosmosDBConfig): AsyncDocumentClient =
new AsyncDocumentClient.Builder()
.withServiceEndpoint(config.host)
.withServiceEndpoint(config.endpoint)
.withMasterKey(config.key)
.withConnectionPolicy(ConnectionPolicy.GetDefault)
.withConsistencyLevel(ConsistencyLevel.Session)
Expand Down
6 changes: 3 additions & 3 deletions tests/src/test/resources/application.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ whisk {
}

cosmosdb {
host = ${?COSMOSDB_HOST}
key = ${?COSMOSDB_KEY}
db = ${?COSMOSDB_NAME}
endpoint = ${?COSMOSDB_ENDPOINT}
key = ${?COSMOSDB_KEY}
db = ${?COSMOSDB_NAME}
}

controller {
Expand Down

0 comments on commit e76b758

Please sign in to comment.