-
Notifications
You must be signed in to change notification settings - Fork 24
server.tests: Use generated TSP java client in all existing unit tests #249
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
server.tests: Use generated TSP java client in all existing unit tests #249
Conversation
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
FIXME: isFiltered flag for selection stats is not part of TSP Signed-off-by: Bernd Hufmann <[email protected]>
833b0c3 to
4c670fd
Compare
| /** | ||
| * XY API | ||
| */ | ||
| private static XyApi sfxyApi = new XyApi(sfApiClient); |
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.
sfXyApi? and should be static final?
| return Long.valueOf(callstackOptional.get().getId()).intValue(); // TODO | ||
| // ID | ||
| // is | ||
| // long |
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.
Fix wrapping
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.
Done. I actually replaced by a FIXME with link to the issue tracker: // FIXME eclipse-cdt-cloud/trace-server-protocol#140. I've done in both the xy and timegraph tests.
The following issues were identified and need fixes. eclipse-tracecompass-incubator#235 eclipse-tracecompass-incubator#213 eclipse-tracecompass-incubator#236 eclipse-cdt-cloud/trace-server-protocol#140 There is a workaround for eclipse-tracecompass-incubator#236 implemented that ignores the issue, but needs to be fixed to test the xy series models. Signed-off-by: Bernd Hufmann <[email protected]>
Needed fix: eclipse-tracecompass-incubator#240 eclipse-cdt-cloud/trace-server-protocol#140 Signed-off-by: Bernd Hufmann <[email protected]>
Needs fix for: eclipse-tracecompass-incubator#246 Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
Signed-off-by: Bernd Hufmann <[email protected]>
needs the following fix to fix the FIXME: eclipse-tracecompass-incubator#236 Signed-off-by: Bernd Hufmann <[email protected]>
Disable MapperFeature.ALLOW_COERCION_OF_SCALARS so that StateValue.deserialize() only tries to deserialize the received type and not the others, which would cause a parse exception. Signed-off-by: Bernd Hufmann <[email protected]>
Needs fix to be able to fix FIXME: eclipse-tracecompass-incubator#236 Signed-off-by: Bernd Hufmann <[email protected]>
After all tests having been migrated the class can be renamed to the original name. Signed-off-by: Bernd Hufmann <[email protected]>
They have been replaced by the generated TSP java client in plugin: org.eclipse.tracecompass.incubator.tsp.client.core Signed-off-by: Bernd Hufmann <[email protected]>
4c670fd to
9a56e16
Compare
88b0297
into
eclipse-tracecompass-incubator:master
What it does
Use generated TSP java client in all existing unit tests. The generated Java TSP client is introduced by PR #228.
RestServerTests#executePostErrorTests) which would have cause a lot copied code to do the same calls but with different input and output classes and apis.Note: Multiple issues have been indentified and some have been already fixed.
Note: Fix for #236 is needed to properly test the
SeriesModelsqueries of testsGenericXYDataProviderServiceTest,XyDataProviderServiceTestandSeriesModelSerializerTest. In this PR those tests ignore parsing errors (see FIXMEs)How to test
Successful CI run. Make sure that all unit tests are executed successfully.
Follow-ups
Add more test cases to validate more TSP models returned during queries.
Review checklist