-
Notifications
You must be signed in to change notification settings - Fork 31
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(recordings): Add recording options itests #626
Conversation
Tests look good. Do you still observe #263? Either way, I think it would be worth writing some tests to capture that behaviour. |
Yes, new recordings are created with |
44c4a98
to
76b7e9e
Compare
}); | ||
|
||
JsonObject expectedGetResponse = | ||
new JsonObject(Map.of("maxAge", 0, "toDisk", false, "maxSize", 0)); |
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.
Could you put a FIXME
here with a link to #263? That's still something we should probably investigate further, although I am fairly convinced that it's just a JMC bug with how those OptionDescriptors are created or how the toDisk setting is read from the JVM.
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.
Looks good otherwise.
|
Hmm, now
|
Hmm. It sounds like it could simply be that the in-memory ring buffers filled up and some older event data was dropped in between the two recordings being retrieved, assuming that the recording isn't somehow configured with a maximum event age. It's not a good fix, but changing the template in that test from |
Aha - that would do it. |
Related #474
Tests successful scenarios for the
TargetRecordingOptionsGetHandler
,TargetRecordingOptionsPatchHandler
, and theTargetRecordingOptionsListGetHandler
.