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

Add Bindings Tests for Java Endpoints #1068

Merged
merged 6 commits into from
Aug 8, 2023
Merged

Conversation

Mythicaeda
Copy link
Contributor

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 when plan_id is invalid. This occurs because the PostgresPlanRepository's implementation of getExternalResourceSchemas doesn't check if planId exists and quietly returns an empty list if it doesn't exist.

@Mythicaeda Mythicaeda added the test Adding missing tests, correcting existing tests, or test infrastructure label Aug 4, 2023
@Mythicaeda Mythicaeda self-assigned this Aug 4, 2023
@Mythicaeda Mythicaeda requested a review from a team as a code owner August 4, 2023 22:44
@Mythicaeda Mythicaeda temporarily deployed to e2e-test August 4, 2023 22:44 — with GitHub Actions Inactive
@camargo camargo requested a review from skovati August 8, 2023 16:10
Copy link
Contributor

@skovati skovati left a 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.

@Mythicaeda Mythicaeda force-pushed the add-java-bindings-tests branch from 5baaadb to 63749f6 Compare August 8, 2023 20:53
@Mythicaeda Mythicaeda temporarily deployed to e2e-test August 8, 2023 20:53 — with GitHub Actions Inactive
…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 Mythicaeda force-pushed the add-java-bindings-tests branch from 63749f6 to e47e35c Compare August 8, 2023 21:32
@Mythicaeda Mythicaeda temporarily deployed to e2e-test August 8, 2023 21:32 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda merged commit 28d0ffa into develop Aug 8, 2023
@Mythicaeda Mythicaeda deleted the add-java-bindings-tests branch August 8, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Adding missing tests, correcting existing tests, or test infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finish MerlinBindingsTests
2 participants