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

refactor: make consumer the only public interface for live event listener #91

Merged
merged 4 commits into from
Dec 28, 2023

Conversation

kishansairam9
Copy link

@kishansairam9 kishansairam9 commented Dec 27, 2023

No description provided.

@kishansairam9 kishansairam9 requested a review from a team as a code owner December 27, 2023 07:29
Copy link

github-actions bot commented Dec 27, 2023

Test Results

15 files  ±0  15 suites  ±0   29s ⏱️ -3s
66 tests ±0  66 ✅ ±0  0 💤 ±0  0 ❌ ±0 
84 runs  ±0  84 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit f361bf3. ± Comparison against base commit 7b78923.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (7b78923) 75.25% compared to head (f361bf3) 75.40%.

Files Patch % Lines
.../core/kafka/event/listener/KafkaConsumerUtils.java 0.00% 20 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #91      +/-   ##
============================================
+ Coverage     75.25%   75.40%   +0.14%     
  Complexity      238      238              
============================================
  Files            43       44       +1     
  Lines          1063     1061       -2     
  Branches         88       88              
============================================
  Hits            800      800              
+ Misses          228      226       -2     
  Partials         35       35              
Flag Coverage Δ
unit 75.40% <0.00%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;

public class KafkaMockConsumerTestUtil<K, V> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test utils can go in testFixtures so that production classes do not depend on them. Please refer to the following for a sample test fixture and its usage. https://github.com/Traceableai/activity-event-service/tree/main/policy-store-service-impl/src/testFixtures

Copy link
Author

@kishansairam9 kishansairam9 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, didn't know about them. Updated to use testFixtures

@kishansairam9 kishansairam9 merged commit 12462bd into main Dec 28, 2023
6 of 7 checks passed
@kishansairam9 kishansairam9 deleted the refactor-event-listener-consumer branch December 28, 2023 08:26
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.

3 participants