-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to read application-test during tests
- Loading branch information
Showing
6 changed files
with
28 additions
and
7 deletions.
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
10 changes: 6 additions & 4 deletions
10
file-manager/src/main/scala/it/pagopa/interop/commons/files/StorageConfiguration.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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package it.pagopa.interop.commons.files | ||
|
||
import com.typesafe.config.ConfigFactory | ||
import com.typesafe.config.{Config, ConfigFactory} | ||
|
||
object StorageConfiguration { | ||
val maxConcurrency: Int = ConfigFactory.load().getInt("interop-commons.storage.max-concurrency") | ||
val getUrlDurationMinutes: Int = ConfigFactory.load().getInt("get-url-duration-minutes") | ||
val putUrlDurationMinutes: Int = ConfigFactory.load().getInt("put-url-duration-minutes") | ||
val config: Config = ConfigFactory.load() | ||
|
||
val maxConcurrency: Int = config.getInt("interop-commons.storage.max-concurrency") | ||
val getUrlDurationMinutes: Int = config.getInt("get-url-duration-minutes") | ||
val putUrlDurationMinutes: Int = config.getInt("put-url-duration-minutes") | ||
} |
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,2 @@ | ||
get-url-duration-minutes = 5 | ||
put-url-duration-minutes = 1 |
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
15 changes: 15 additions & 0 deletions
15
file-manager/src/test/scala/it/pagopa/interop/commons/files/SpecHelper.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,15 @@ | ||
package it.pagopa.interop.commons.files | ||
|
||
import com.typesafe.config.{Config, ConfigFactory} | ||
|
||
trait SpecHelper { | ||
|
||
val testData = ConfigFactory.parseString(s""" | ||
get-url-duration-minutes = 5 | ||
get-url-duration-minutes = 1 | ||
""") | ||
|
||
val config: Config = ConfigFactory | ||
.parseResourcesAnySyntax("application-test") | ||
.withFallback(testData) | ||
} |