]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ManagedTest.java
add: external test for password reset
[gigi.git] / tests / org / cacert / gigi / testUtils / ManagedTest.java
index 3d5c124684132aa021fd8208a085582d88d6df76..bd35e821324dc0eff83b2d23be45f422258ac4f1 100644 (file)
@@ -321,7 +321,7 @@ public class ManagedTest extends ConfiguredTest {
     public static void makeAssurer(int uid) {
         GigiPreparedStatement ps1 = DatabaseConnection.getInstance().prepare("INSERT INTO `cats_passed` SET `user_id`=?, `variant_id`=?");
         ps1.setInt(1, uid);
-        ps1.setInt(2, 0);
+        ps1.setInt(2, 1);
         ps1.execute();
 
         GigiPreparedStatement ps2 = DatabaseConnection.getInstance().prepare("INSERT INTO `notary` SET `from`=?, `to`=?, points='100'");
@@ -330,7 +330,7 @@ public class ManagedTest extends ConfiguredTest {
         ps2.execute();
     }
 
-    static String stripCookie(String headerField) {
+    protected static String stripCookie(String headerField) {
         return headerField.substring(0, headerField.indexOf(';'));
     }
 
@@ -473,7 +473,7 @@ public class ManagedTest extends ConfiguredTest {
         return (HttpURLConnection) uc;
     }
 
-    public HttpURLConnection get(String cookie, String path, int formIndex) throws IOException {
+    public HttpURLConnection get(String cookie, String path) throws IOException {
         URLConnection uc = new URL("https://" + getServerName() + path).openConnection();
         uc.addRequestProperty("Cookie", cookie);
         return (HttpURLConnection) uc;