1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-05 03:41:07 +01:00

Enabled some formerly disabled tests

This commit is contained in:
Paul Schaub 2025-09-26 13:14:42 +02:00
parent 12a727287d
commit f8d9f3ccbb
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
5 changed files with 1 additions and 11 deletions

View file

@ -136,7 +136,6 @@ public class RoundTripEncryptDecryptCmdTest extends CLITest {
}
@Test
// @Disabled("Disabled, since we now read certificates from secret keys")
public void testEncryptingForKeyFails() throws IOException {
File notACert = writeFile("key.asc", KEY);

View file

@ -29,7 +29,7 @@ DhxJVTgA/1WaFrKdP3AgL0Ffdooc5XXbjQsj0uHo6FZSHRI4pchMAQCyJnKQ3RvW
-----END PGP PRIVATE KEY BLOCK-----"""
@Test
@Disabled("Disabled since BC 1.77 chokes on the test key")
@Disabled("Disabled since BC 1.82 chokes on the test key")
fun testExtractCertificate() {
val key = PGPainless.getInstance().readKey().parseKey(KEY)!!
val cert = key.toCertificate()

View file

@ -4,7 +4,6 @@
package sop.testsuite.pgpainless.operation;
import org.junit.jupiter.api.Disabled;
import sop.SOP;
import sop.testsuite.operation.DetachedSignDetachedVerifyTest;
@ -13,13 +12,11 @@ import java.io.IOException;
public class PGPainlessDetachedSignDetachedVerifyTest extends DetachedSignDetachedVerifyTest {
@Override
@Disabled("Since we allow for dynamic cert loading, we can ignore this test")
public void verifyMissingCertCausesMissingArg(SOP sop) {
super.verifyMissingCertCausesMissingArg(sop);
}
@Override
@Disabled("Carol is an ElGamal key, which are no longer supported.")
public void signVerifyWithCarolKey(SOP sop) throws IOException {
super.signVerifyWithCarolKey(sop);
}

View file

@ -6,25 +6,21 @@ package sop.testsuite.pgpainless.operation;
import java.io.IOException;
import org.junit.jupiter.api.Disabled;
import sop.SOP;
import sop.testsuite.operation.ExtractCertTest;
public class PGPainlessExtractCertTest extends ExtractCertTest {
@Disabled("BC uses old CTBs causing mismatching byte arrays :/")
@Override
public void extractAliceCertFromAliceKeyTest(SOP sop) throws IOException {
super.extractAliceCertFromAliceKeyTest(sop);
}
@Disabled("BC uses old CTBs causing mismatching byte arrays :/")
@Override
public void extractBobsCertFromBobsKeyTest(SOP sop) throws IOException {
super.extractBobsCertFromBobsKeyTest(sop);
}
@Disabled("BC uses old CTBs causing mismatching byte arrays :/")
@Override
public void extractCarolsCertFromCarolsKeyTest(SOP sop) throws IOException {
super.extractCarolsCertFromCarolsKeyTest(sop);

View file

@ -4,7 +4,6 @@
package sop.testsuite.pgpainless.operation;
import org.junit.jupiter.api.Disabled;
import sop.SOP;
import sop.testsuite.operation.InlineSignInlineVerifyTest;
@ -13,7 +12,6 @@ import java.io.IOException;
public class PGPainlessInlineSignInlineVerifyTest extends InlineSignInlineVerifyTest {
@Override
@Disabled("Carol is an ElGamal key, which is no longer supported.")
public void inlineSignVerifyCarol(SOP sop) throws IOException {
super.inlineSignVerifyCarol(sop);
}