Skip to content

Commit

Permalink
tests : delete aws keys unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Nov 15, 2024
1 parent f26d34b commit 12e4a0b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class AWSKeyTest {

println("Testing sign & verify JWS (payload: ${Config.payloadJWS})...")
awsTestSignJws()


println("Testing key deletion...")
awsTestDeleteKey()
}
}

Expand Down Expand Up @@ -108,4 +112,12 @@ class AWSKeyTest {
assertEquals(payloadJWS, verified.getOrThrow(), "JWS payload mismatch after verification")
}
}

private suspend fun awsTestDeleteKey() {
keys.forEach { key ->
println("Deleting key: ${key.getKeyId()}")
key.deleteKey()
}
}

}

0 comments on commit 12e4a0b

Please sign in to comment.