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

Extend tests for Custom Certificate Extensions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.15.0, EJBCA 7.0.0
    • Fix Version/s: EJBCA 7.0.0
    • Component/s: None

      Description

      Custom Certificate Extensions contains some new features and a behavioral change (see linked Epic). Extend the current system tests of the module to cover these.

      Proposed test cases:

      • Setup dynamic, non-required CCE configuration without static value.
          Configure certificate profile to use only this configuration
          Request certificate without including it OID + value in ExtensionData
          Expected outcome: Success (extension should be skipped)
      • Setup dynmic, required, wildcard CCE configuration without static value
          Configure certificate profile to use only this configuration
          Send request containing the actual OID which is expected to match
          Expected outcome: Success (extension included in certificate)
      • Setup any CCE configuration
          Configure certificate profile to use only this configuration
          Request a certificate with two extension, one matching the configuration, one non-matching.
          Expected outcome: Issuance rejected (request contains unmatched OIDs / more extensions than could be matched)

      Unit tests:

      • Add test for CertTools.getOidWildcardPattern()
      • Add test for CertTools.getOidFromString()

      Other:
      Currently the test class is a mess with chain tests. Take the time to clean it up.

        Attachments

          Activity

            People

            • Assignee:
              hsunmark Henrik Sunmark
              Reporter:
              hsunmark Henrik Sunmark
              Verified by:
              Tomas Gustavsson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - 1 day Remaining Estimate - 1 day
                1d