• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

input-output-hk / atala-prism-building-blocks / 6800928555

08 Nov 2023 04:09PM UTC coverage: 30.962% (-0.2%) from 31.199%
6800928555

Pull #779

patlo-iog
chore: pr cleanup

Signed-off-by: Pat Losoponkul <pat.losoponkul@iohk.io>
Pull Request #779: feat(prism-agent): add multi-tenant wallet self-service capability [WIP]

52 of 292 new or added lines in 30 files covered. (17.81%)

427 existing lines in 97 files now uncovered.

4057 of 13103 relevant lines covered (30.96%)

0.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.85
/shared-test/src/main/scala/io/iohk/atala/sharedtest/containers/VaultContainerCustom.scala
1
package io.iohk.atala.sharedtest.containers
2

3
import com.dimafeng.testcontainers.{SingleContainer, VaultContainer}
4
import org.testcontainers.vault.{VaultContainer => JavaVaultContainer}
5
import org.testcontainers.utility.DockerImageName
6

7
/** See PostgreSQLContainerCustom for explanation */
8
class VaultContainerCustom(
9
    dockerImageNameOverride: DockerImageName,
×
10
    vaultToken: Option[String] = None,
1✔
11
    secrets: Option[VaultContainer.Secrets] = None,
×
12
    isOnGithubRunner: Boolean = false
13
) extends SingleContainer[JavaVaultContainer[_]] {
14

1✔
15
  private val vaultContainer: JavaVaultContainer[_] = new JavaVaultContainer(dockerImageNameOverride) {
1✔
16
    override def getHost: String = {
1✔
UNCOV
17
      if (isOnGithubRunner) super.getContainerId().take(12)
×
18
      else super.getHost()
19
    }
1✔
20
    override def getMappedPort(originalPort: Int): Integer = {
21
      if (isOnGithubRunner) 8200
×
22
      else super.getMappedPort(originalPort)
23
    }
×
24
  }
25

1✔
26
  if (vaultToken.isDefined) vaultContainer.withVaultToken(vaultToken.get)
1✔
27
  secrets.foreach { x =>
×
28
    vaultContainer.withSecretInVault(x.path, x.firstSecret, x.secrets: _*)
29
  }
30

31
  override val container: JavaVaultContainer[_] = vaultContainer
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc