Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ tasks.test {
useJUnitPlatform {
excludeTags("integration")
}
testLogging {
showStandardStreams = true
}
}

jacoco {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.junit.jupiter.api.Assumptions.assumeTrue
import java.io.File
import java.io.IOException
import java.nio.charset.StandardCharsets
import java.security.MessageDigest
import java.util.Base64
import java.util.UUID

Expand Down Expand Up @@ -65,6 +66,11 @@ class IntegrationTest {
val project = System.getenv("STACKIT_PROJECT_ID")
assumeTrue({ project != null }, "STACKIT_PROJECT_ID environment variable not set")

val projectIdSha512 = MessageDigest.getInstance("SHA-512")
.digest(project.toByteArray(StandardCharsets.UTF_8))
.joinToString("") { "%02x".format(it) }
println("STACKIT_PROJECT_ID SHA512: $projectIdSha512")

val saKeyB64 = System.getenv("SA_KEY_B64")
val saKey = if (saKeyB64 != null && saKeyB64.isNotBlank()) {
String(Base64.getDecoder().decode(saKeyB64), StandardCharsets.UTF_8)
Expand Down
Loading