signature sit: don't fail test when can not load private key

This commit is contained in:
Bixilon 2022-11-19 14:22:38 +01:00
parent 5ba3f5ef9a
commit bbd623ea5f
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -33,10 +33,12 @@ class SignatureSIT {
SignatureTestUtil.key = Jackson.MAPPER.readValue(string, MinecraftPrivateKey::class.java)
}
@Test(dependsOnMethods = ["loadPrivateKey"])
fun testKeyUUID() {
SignatureTestUtil.key.requireSignature("9e6ce7c5-40d3-483e-8e5a-b6350987d65f".toUUID()) // yep, that is really my private key
}
@Test(dependsOnMethods = ["loadPrivateKey"])
fun testRequireSignature() {
Assert.assertThrows { SignatureTestUtil.key.requireSignature("b876ec32-e396-476b-a115-8438d83c67d4".toUUID()) }
}