-
Story
-
Resolution: Done
-
Normal
-
None
We have a working POC for local testing of the swatch-billable-usage component. Refer to the commits in SWATCH-3532 for implementation details. The objective is to extend this capability to all services. This card focuses on enabling local testing for the swatch contracts using the Wiremock profile.
Acceptance Criteria:
- Change the application.properties to support wiremock profile.
- It should be possible to run the following command successfully:
For maven: QUARKUS_HTTP_HOST=0.0.0.0 QUARKUS_PROFILE=wiremock ./mvnw -pl swatch-contracts -DskipTests quarkus:dev - The service should be reachable locally on ports 8001 and 8000, with the proxy correctly set up.
4. test_verify_subscription_sync_overwrites_invalid_records should connect to the local environment and pass successfully.
5. Make sure IQE have wiremocks setup in contracts for Partner gateway response, offering/product api call, subscription api call externally. If anything is missing create a card to add IQE wiremock for that call.
6. When you run all component tests for swatch-contracts make a note which ones are failing and then we should create a card to make it pure component tests.
7. Update the inscope document with the maven commands for local IQE testing so its upto date.
Note: I have discussed this plan with rh-ee-erthomps just incase if anyone else picks up ticket