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

Create REST endpoint for CA Deactivation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:
      None
    • Provenance:
      Internal Delivery
    • Sprint:
      EJBCA Team Alice - 2019 w18, EJBCA Team Alice - 2019 w21

      Description

      Endpoint: /ejbca/ejbca-rest-api/v1/ca_management/{ca_name}/deactivate

      Method type: PUT

      Responses:
      200 OK (if successful) https://restfulapi.net/http-methods/#put
      422 Unprocessable Entity (if CA is unknown)

      Other responses should be handled by the existing ExceptionHandler for REST.

      • Write system tests in CaManagementRestResourceSystemTest

       

      How to test:

      • Using Swagger, try valid and invalid requests and verify that proper response code and error message / success message is returned. Using valid input, make sure the CA is actually deactivated. Verify in GUI and database (CAData.status)
      • Run CaManagementRestResourceSystemTest and verify the result
      • Make sure activation fails if the requesting admin lacks role privilege the CA /ca/xx in question (TODO investigate which other access rules (if any) we currently require to deactivate CA using GUI or CLI)

        Attachments

          Activity

            People

            Assignee:
            tarmo_helmes Tarmo Raudsep (Inactive)
            Reporter:
            hsunmark Henrik Sunmark
            Verified by:
            Lauri Kongas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                3h