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

Create REST endpoint for CA Activation

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:

      Description

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

      Method type: PUT

      Responses:
      200 OK (if successful) https://restfulapi.net/http-methods/#put
      422 Bad Request (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 activated. Verify in GUI and database (CAData.status)
      • Run CaManagementRestResourceSystemTest and verify the result
      • Make sure activation fails if the requesting admin lacks role privilege /ca_functionality/activate_ca/ or the CA /ca/xx in question

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified