Skip to content

Commit 5323955

Browse files
author
Shota Jolbordi
committed
Fix tests
Signed-off-by: Shota Jolbordi <[email protected]>
1 parent c3db26b commit 5323955

File tree

7 files changed

+14
-4
lines changed

7 files changed

+14
-4
lines changed

node/src/main/scala/io/iohk/atala/prism/node/repositories/TransactorFactory.scala

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ object TransactorFactory {
5757
hikariConfig.setLeakDetectionThreshold(300000) // 5 mins
5858
hikariConfig.setMinimumIdle(poolSize)
5959
hikariConfig.setMaximumPoolSize(poolSize) // Both Pool size amd Minimum Idle should same and is recommended
60-
6160
for {
6261
// Resource yielding a transactor configured with a bounded connect EC and an unbounded
6362
// transaction EC. Everything will be closed and shut down cleanly after use.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nodeExplorer {
2+
whitelistDids = [
3+
"did:prism:5f0ffa312e8c6f260dbe6dbaa1e4e0d685aba03297c4e4f9ae80fa8d3fd7c0b0:Cj8KPRI7CgdtYXN0ZXIwEAFKLgoJc2VjcDI1NmsxEiEDhyJiYbQZs28bivj9PXsitEWca1MDg3yeW9ziiNcG-Cs"
4+
]
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CREATE TABLE config
2+
(
3+
key TEXT NOT NULL PRIMARY KEY,
4+
value TEXT NOT NULL
5+
);

node/src/test/scala/io/iohk/atala/prism/node/AtalaWithPostgresSpec.scala

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ class AtalaWithPostgresSpec extends PostgresRepositorySpec[IO] with ScalaFutures
1616
implicit val pc: PatienceConfig = PatienceConfig(20.seconds, 5.millis)
1717
val dbLiftedToTraceIdIO: Transactor[IOWithTraceIdContext] =
1818
db.mapK(TraceId.liftToIOWithTraceId)
19+
1920
}

node/src/test/scala/io/iohk/atala/prism/node/auth/utils/DidWhitelistLoaderSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DidWhitelistLoaderSpec extends AnyWordSpec with Matchers {
99
"DidWhitelistLoader" should {
1010
"be able to load whitelist from file" in {
1111
val globalConfig = ConfigFactory.load()
12-
DidWhitelistLoader.load(globalConfig, "managementConsole") must be(
12+
DidWhitelistLoader.load(globalConfig, "nodeExplorer") must be(
1313
Set(
1414
DID.fromString(
1515
"did:prism:5f0ffa312e8c6f260dbe6dbaa1e4e0d685aba03297c4e4f9ae80fa8d3fd7c0b0:Cj8KPRI7CgdtYXN0ZXIwEAFKLgoJc2VjcDI1NmsxEiEDhyJiYbQZs28bivj9PXsitEWca1MDg3yeW9ziiNcG-Cs"

node/src/test/scala/io/iohk/atala/prism/node/repositories/PostgresRepositorySpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ abstract class PostgresRepositorySpec[F[_]]
6363
}
6464
}
6565

66-
lazy val (database, releaseDatabase) =
66+
val (database, releaseDatabase) =
6767
TransactorFactory.transactor[IO](transactorConfig).allocated.unsafeRunSync()
6868

6969
lazy val databaseForStreaming = {

node/src/test/scala/io/iohk/atala/prism/node/repositories/daos/DbConfigDaoSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import io.iohk.atala.prism.node.AtalaWithPostgresSpec
77
class DbConfigDaoSpec extends AtalaWithPostgresSpec {
88

99
override protected def migrationScriptsLocation: String =
10-
"common/db/migration"
10+
"db/testmigration"
1111

1212
"DbConfigDao" should {
1313
"return None if a key doesn't exist" in {

0 commit comments

Comments
 (0)