X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fclub%2Fwpia%2Fgigi%2Fapi%2FImportCATSResult.java;h=c345257a67ea15155d6e05df169da64af9e21d5c;hb=601dc9522705bc8524dbe265174db69f8e0a1189;hp=18f1ae90538626f1b953c4b7ed56c40a8f21d9ef;hpb=08c941629aea14473e5c42ab6f5d590be4af4bf8;p=gigi.git diff --git a/tests/club/wpia/gigi/api/ImportCATSResult.java b/tests/club/wpia/gigi/api/ImportCATSResult.java index 18f1ae90..c345257a 100644 --- a/tests/club/wpia/gigi/api/ImportCATSResult.java +++ b/tests/club/wpia/gigi/api/ImportCATSResult.java @@ -14,15 +14,13 @@ import java.security.NoSuchAlgorithmException; import org.junit.Test; import club.wpia.gigi.GigiApiException; -import club.wpia.gigi.api.CATSImport; -import club.wpia.gigi.api.CATSResolve; +import club.wpia.gigi.dbObjects.CATS.CATSType; import club.wpia.gigi.dbObjects.Certificate; +import club.wpia.gigi.dbObjects.Certificate.CSRType; +import club.wpia.gigi.dbObjects.Certificate.SANType; import club.wpia.gigi.dbObjects.CertificateProfile; import club.wpia.gigi.dbObjects.Digest; import club.wpia.gigi.dbObjects.User; -import club.wpia.gigi.dbObjects.CATS.CATSType; -import club.wpia.gigi.dbObjects.Certificate.CSRType; -import club.wpia.gigi.dbObjects.Certificate.SANType; import club.wpia.gigi.testUtils.IOUtils; import club.wpia.gigi.testUtils.RestrictedApiTest; import club.wpia.gigi.util.ServerConstants; @@ -89,7 +87,7 @@ public class ImportCATSResult extends RestrictedApiTest { return doApi(CATSImport.PATH, query); } - private String apiLookup(Certificate target) throws IOException, GeneralSecurityException { + private String apiLookup(Certificate target) throws IOException, GeneralSecurityException, GigiApiException { HttpURLConnection connection = doApi(CATSResolve.PATH, "serial=" + target.cert().getSerialNumber().toString(16).toLowerCase()); if (connection.getResponseCode() != 200) { throw new Error(connection.getResponseMessage());