Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-6645

Switch to REST client generated from Cruise Control OpenAPI spec

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      When the cruise control integration was originally written, then was no formal definition of the Cruise Control REST API. As a result we wrote our own client interface which we used for the main implementation and mocking for testing.

      Cruise Control now has a formal OpenAPI specification. We should use this to:

      • Replace the client interface with one generated from the OpenAPI spec (via tools such as the openapi-generator).
      • The generation should be part of the build (by using tools such as openapi-generator-maven-plugin) so that if we update the version we are pulling the relevant spec version.
      • Reimplement the Strimzi CC client on top of the generated client classes.
      • Use MockServer's OpenAPI support to ensure we are generating accurate test endpoints for the given version of Cruise Control. This will be a marked improvement compared to the current situation where we need to manually align the endpoints, parameters and responses.

              Unassigned Unassigned
              rh-ee-tcooper Thomas Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: