-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWATCH-2558: Save events creates kafka message (#3554)
<!-- Replace XXXX with the issue number. Issue will be auto-linked --> Jira issue: SWATCH-2558 ## Description <!-- Provide a description of this PR. Try to provide answers to "what", "how", and "why" --> Previously, events were sent to this endpoint during testing and did not go through the eventController. This bypassed some of the verification and processing. This allows the event to be created, emitted, and consumed. ## Testing <!-- When possible, please use commands a developer can directly paste or modify --> The iqe test "test_event_uom_to_metric_id_via_api" sends data to the saveEvents endpoint. ### Setup <!-- Add any steps required to set up the test case --> 1. ```podman-compose up -d``` 2. ```RHSM_SUBSCRIPTIONS_ENABLE_SYNCHRONOUS_OPERATIONS=true DEV_MODE=true PROM_URL=http://localhost:8082/api/metrics/v1/telemeter/api/v1 SWATCH_CONTRACTS_INTERNAL_SERVICE=http://localhost:8882 SERVER_PORT=8000 SPRING_PROFILES_ACTIVE=worker,kafka-queue,api,capacity-ingress,rh-marketplace,rhsm-conduit ./gradlew clean :bootRun``` ### Steps <!-- Enter each step of the test below --> 1. Run the iqe test listed above. ### Verification <!-- Enter the steps needed to verify the test passed --> 1. The events table in the database will have a new row. 2. You will see ```[thread=swatch-instance-ingress-0-C-1] [INFO ] [org.candlepin.subscriptions.tally.billing.ServiceInstanceMessageConsumer] - Events received w/ event list size=1. Consuming events.``` in the logs.
- Loading branch information
Showing
3 changed files
with
133 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters