]> WPIA git - gigi.git/blobdiff - tests/club/wpia/gigi/testUtils/SEClientTest.java
add: ensure that for Support actions there is a valid Support Challenge
[gigi.git] / tests / club / wpia / gigi / testUtils / SEClientTest.java
index a77967295bd6c9bc87c33754284bbe8ff307cabd..32cb1d84f380c2b3913ee86e796b8f2e7d757262 100644 (file)
@@ -5,6 +5,7 @@ import static org.junit.Assert.*;
 import java.io.IOException;
 
 import club.wpia.gigi.GigiApiException;
+import club.wpia.gigi.dbObjects.CATS.CATSType;
 import club.wpia.gigi.dbObjects.Group;
 import club.wpia.gigi.pages.admin.support.SupportEnterTicketPage;
 
@@ -16,6 +17,7 @@ public abstract class SEClientTest extends ClientTest {
 
     public SEClientTest() throws IOException, GigiApiException {
         grant(u, Group.SUPPORTER);
+        addChallenge(u.getId(), CATSType.SUPPORT_DP_CHALLENGE_NAME);
         cookie = cookieWithCertificateLogin(u);
         assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode());
     }