Skip to content

Commit db49f08

Browse files
author
pki
committed
Reverting as not required.
1 parent bc95e8f commit db49f08

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

modules/systemtests/src-test/org/ejbca/core/protocol/cmp/CmpTestCase.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
import org.cesecore.certificates.certificate.CertificateRevokeException;
150150
import org.cesecore.certificates.certificate.CertificateStoreSessionRemote;
151151
import org.cesecore.certificates.certificate.IllegalKeyException;
152-
import org.cesecore.certificates.certificate.InternalCertificateStoreSessionRemote;
153152
import org.cesecore.certificates.certificate.exception.CertificateSerialNumberException;
154153
import org.cesecore.certificates.certificate.exception.CustomCertificateSerialNumberException;
155154
import org.cesecore.certificates.certificate.request.ResponseStatus;
@@ -309,14 +308,8 @@ private void cleanup() throws AuthorizationDeniedException {
309308
}
310309

311310
protected final void removeCAs(CA[] cas) throws AuthorizationDeniedException {
312-
final InternalCertificateStoreSessionRemote internalCertificateStoreSession = EjbRemoteHelper.INSTANCE.getRemoteSession(
313-
InternalCertificateStoreSessionRemote.class, EjbRemoteHelper.MODULE_TEST);
314311
for (CA ca : cas) {
315312
if (ca != null ) {
316-
317-
// Delete certs issued by the CA
318-
internalCertificateStoreSession.removeCertificatesByIssuer( ca.getSubjectDN());
319-
320313
CaTestUtils.removeCa(ADMIN, ca.getCAInfo());
321314
}
322315
}

modules/systemtests/src-test/org/ejbca/core/protocol/cmp/CrmfRARequestSystemTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ public static void beforeClass() throws Exception {
147147

148148
@AfterClass
149149
public static void tearDownFinal() throws RoleNotFoundException, AuthorizationDeniedException {
150-
// Remove issued certs
151-
internalCertStoreSession.removeCertificatesByIssuer(ISSUER_DN);
152-
153150
if (testx509ca != null) {
154151
CaTestUtils.removeCa(ADMIN, testx509ca.getCAInfo());
155152
}
@@ -802,7 +799,6 @@ public void test06CrmfEcdsaCA() throws Exception {
802799
} finally {
803800
try {
804801
this.endEntityManagementSession.deleteUser(ADMIN, userName1);
805-
internalCertStoreSession.removeCertificatesByUsername(userName1);
806802
} catch (NoSuchEndEntityException e) {// Do nothing
807803
}
808804
}

modules/systemtests/src-test/org/ejbca/core/protocol/ocsp/ProtocolOcspHttpSystemTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ public void test08OcspEcdsaGood() throws Exception {
505505
} finally {
506506
endEntityManagementSession.deleteUser(admin, "ocsptest");
507507
CryptoTokenTestUtils.removeCryptoToken(admin, caInfo.getCAToken().getCryptoTokenId());
508-
internalCertStoreSession.removeCertificatesByIssuer( caInfo.getSubjectDN());
509508
}
510509
} // test08OcspEcdsaGood
511510

0 commit comments

Comments
 (0)