-
Notifications
You must be signed in to change notification settings - Fork 556
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
Migrate the replay mode test #10879
Migrate the replay mode test #10879
Conversation
Rename NewStreamProcessorReplayModeTest to StreamProcessorContinouslyReplayModeTest to make more clear what the test contains and does.
Allow to reset the log context, useful for restart/restore tests. Allow to set the processing mode.
Migrate new tests: * shouldReplayContinuously * shouldReplayIfNoEventsAfterSnapshot (mark as regression test)
This test is already part of StreamProcessorReplayTest
Migrates the StreamProcessorReplayModeTest to JUNIT 5 and the StreamPlatform extension. New test is called StreamProcessorContinouslyReplayModeTest.java . The test execution is reduced and the tests have been rewriten and improved
de8063c
to
555f2b2
Compare
Add a new start method, instead of setting the process mode separately before starting the processor
@npepinpe I have rebased this PR please have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
@SuppressWarnings("unused") // injected by the extension | ||
private StreamPlatform streamPlatform; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 If we ever wanted to get rid of this warning, there is another way of injecting fields which is using a constructor parameter resolver. It's a more flexible way (if more verbose) to inject stuff, since you can either scope it to the instance lifecycle (via constructors) or to single tests. Just a thought 🤷 This is what I usually favor, but I wouldn't say there's very strong arguments for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah lets leave it for now like this. If we have a strong opinion for one or the other then lets change it everywhere so it is consistent.
bors r+ |
Build succeeded: |
10894: Remove StreamProcessorReprocessingTest r=Zelldon a=Zelldon ## Description :x: blocked by #10879 <!-- Please explain the changes you made here. --> Deletes test and verifies for each test method, whether we already have an replacement. ## Related issues <!-- Which issues are closed by this PR or are related --> related to #10455 Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
Description
❌ blocked by #10876Migrates the
StreamProcessorReplayModeTest
to JUNIT 5 and uses StreamPlatform extension. The new test is calledStreamProcessorContinouslyReplayModeTest.java
Similar to #10876 the test execution has been improved. Some additional improvements have been made to verify whether the state is restored and contains the last processed position etc.
One test has been removed since it is already tested in another class and one has been removed since the test doesn't make sense like that.
Related issues
related #10455
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation:
Please refer to our review guidelines.