]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestSeparateSessionScope.java
Implement fixed-time signing.
[gigi.git] / tests / org / cacert / gigi / TestSeparateSessionScope.java
index 840249f447a2a518950239e0460a1d488b424e62..961b3e32c5d80dbc6657c27a875d8a0cd29403e2 100644 (file)
@@ -18,7 +18,7 @@ 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);
@@ -26,7 +26,7 @@ public class TestSeparateSessionScope extends ManagedTest {
         String csr = generatePEMCSR(kp, "CN=felix@dogcraft.de");
         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);