X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FTestSeparateSessionScope.java;h=961b3e32c5d80dbc6657c27a875d8a0cd29403e2;hb=a9e1e3275864b32c8d6a2f9ae0853f36d716b06f;hp=6f78dbac150142af354af80eb2f1e51dc1fca20f;hpb=a5c3e98a922e432d1ec2fd0b924045638c6c9376;p=gigi.git diff --git a/tests/org/cacert/gigi/TestSeparateSessionScope.java b/tests/org/cacert/gigi/TestSeparateSessionScope.java index 6f78dbac..961b3e32 100644 --- a/tests/org/cacert/gigi/TestSeparateSessionScope.java +++ b/tests/org/cacert/gigi/TestSeparateSessionScope.java @@ -18,15 +18,15 @@ import org.junit.Test; public class TestSeparateSessionScope extends ManagedTest { @Test - public void testSeparateScope() throws IOException, GeneralSecurityException, SQLException, InterruptedException { + public void testSeparateScope() throws IOException, GeneralSecurityException, SQLException, InterruptedException, GigiApiException { String mail = "thisgo" + createUniqueName() + "@example.com"; int user = createAssuranceUser("test", "tugo", mail, TEST_PASSWORD); String cookie = login(mail, TEST_PASSWORD); KeyPair kp = generateKeypair(); String csr = generatePEMCSR(kp, "CN=felix@dogcraft.de"); - Certificate c = new Certificate(user, "/CN=testmail@example.com", "sha256", csr, CSRType.CSR); + Certificate c = new Certificate(user, "/CN=testmail@example.com", "sha256", csr, CSRType.CSR, CertificateProfile.getById(1)); final PrivateKey pk = kp.getPrivate(); - c.issue().waitFor(60000); + c.issue(null, "2y").waitFor(60000); final X509Certificate ce = c.cert(); String scookie = login(pk, ce);