X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2FtestUtils%2FOrgTest.java;h=9f33686cee89dd64295d56ca7b0947e111e24a17;hb=HEAD;hp=2d79c5a497b0e15d289ff38e699599e8cabe414d;hpb=bac148715f26957637ce90d78a5ebd783da866c5;p=gigi.git diff --git a/tests/club/wpia/gigi/testUtils/OrgTest.java b/tests/club/wpia/gigi/testUtils/OrgTest.java index 2d79c5a4..9f33686c 100644 --- a/tests/club/wpia/gigi/testUtils/OrgTest.java +++ b/tests/club/wpia/gigi/testUtils/OrgTest.java @@ -3,6 +3,7 @@ package club.wpia.gigi.testUtils; import java.io.IOException; import club.wpia.gigi.GigiApiException; +import club.wpia.gigi.dbObjects.CATS.CATSType; import club.wpia.gigi.dbObjects.Country; import club.wpia.gigi.dbObjects.Country.CountryCodeType; import club.wpia.gigi.dbObjects.Group; @@ -14,8 +15,9 @@ public class OrgTest extends ClientTest { public OrgTest() throws IOException, GigiApiException { makeAgent(u.getId()); u.grantGroup(getSupporter(), Group.ORG_AGENT); + addChallenge(u.getId(), CATSType.ORG_AGENT_CHALLENGE); clearCaches(); - cookie = login(email, TEST_PASSWORD); + cookie = cookieWithCertificateLogin(u); } public Organisation createUniqueOrg() throws GigiApiException {