-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add Bindings Tests for Java Endpoints #1068
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mythicaeda
added
the
test
Adding missing tests, correcting existing tests, or test infrastructure
label
Aug 4, 2023
skovati
approved these changes
Aug 8, 2023
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 really good! Thanks for doing this tedious work. I just had a few non-blocking comments.
merlin-server/src/test/java/gov/nasa/jpl/aerie/merlin/server/http/MerlinBindingsTest.java
Outdated
Show resolved
Hide resolved
Mythicaeda
force-pushed
the
add-java-bindings-tests
branch
from
August 8, 2023 20:53
5baaadb
to
63749f6
Compare
…hMissionModelException` `LocalMissionModelService.refreshResourceTypes()` needs to throw the `NoSuchMissionModelException` so it can be caught by the action binding, rather than converting it to a `RuntimeException`
- Remove StubConstraintService, which was only used in that file
- Add optional header parameter to some requests
Mythicaeda
force-pushed
the
add-java-bindings-tests
branch
from
August 8, 2023 21:32
63749f6
to
e47e35c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Commits (1) and (2) fix errors in our endpoint errors found while developing these tests.
Commit (3) removes an endpoint that should've been removed during #370. It was meant to be part of a Hasura Event that auto-updated activity validations when the arguments were updated, but was removed due to performance issues.
Commits (4) through (6) replace the stub Java version of MerlinBindingsTest with proper E2E tests.
Verification
See Description
Documentation
No docs need to be updated
Future work
One error that was not fixed was the
ConstraintDSLTypescript
endpoint failing to return a failure status whenplan_id
is invalid. This occurs because thePostgresPlanRepository
's implementation ofgetExternalResourceSchemas
doesn't check ifplanId
exists and quietly returns an empty list if it doesn't exist.