Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-4503

Test case in CertificateCreateSessionTest uses wrong status constants

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.4.0
    • Component/s: None
    • Labels:

      Description

      The test case uses EndEntityConstants.STATUS_NEW to limit the search of certificates. But this value is only applicable to end entities, not certificates.

      In the particular test case, it doesn't make any sense to limit the search of certificates by their status, since old certificates are removed entirely and not just revoked after the test has finished.

      Previously, the test could most likely not ever fail, due to this bug.

        Attachments

          Activity

            People

            Assignee:
            samuel Samuel Lidén Borell
            Reporter:
            samuel Samuel Lidén Borell
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: