Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add local dev container for consuming event-bus events #619

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Jan 10, 2025

ENT-9901

Testing

Launching the container:

(enterprise-access) ubuntu@ip-10-13-20-242:~/edx-repos/enterprise-access$ make dev.up
...
 ✔ Container enterprise_access.consume_enterprise_subsidies_transaction_lifecycle  Started                                                                                                                                                                                         0.3s 

Container logs after launch:

(enterprise-access) ubuntu@ip-10-13-20-242:~/edx-repos/enterprise-access$ make consume_enterprise_subsidies_transaction_lifecycle-logs
...
enterprise_access.consume_enterprise_subsidies_transaction_lifecycle  | 2025-01-10 19:55:14,558 INFO 7 [edx_event_bus_kafka.internal.consumer] [user None] [ip None] [request_id None] consumer.py:284 - Running consumer for {'full_topic': 'dev-enterprise-subsidies-transaction-lifecycle', 'consumer_group': 'enterprise_access_dev'}

Container logs after emitting a TRANSACTION_REVERSED event from enterprise-subsidy:

enterprise_access.consume_enterprise_subsidies_transaction_lifecycle  | 2025-01-10 19:57:44,638 INFO 7 [edx_event_bus_kafka.internal.consumer] [user None] [ip None] [request_id None] consumer.py:513 - Message received from Kafka: topic=dev-enterprise-subsidies-transaction-lifecycle, partition=0, offset=29, message_id=28559382-cf8d-11ef-82b5-0242ac120020, key=b'\x00\x00\x00\x00\x01H7382cea3-6a3a-430f-9251-ee791cdab25e', event_timestamp_ms=1736539064581
enterprise_access.consume_enterprise_subsidies_transaction_lifecycle  | 2025-01-10 19:57:44,639 INFO 7 [enterprise_access.apps.content_assignments.signals] [user None] [ip None] [request_id None] signals.py:53 - No LearnerContentAssignment exists with transaction uuid: 7382cea3-6a3a-430f-9251-ee791cdab25e
enterprise_access.consume_enterprise_subsidies_transaction_lifecycle  | 2025-01-10 19:57:44,639 INFO 7 [edx_event_bus_kafka.internal.consumer] [user None] [ip None] [request_id None] consumer.py:393 - Message from Kafka processed successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant