graph-quilt / graphql-orchestrator-java

GraphQL Orchestrator stitches the schemas from multiple micro-services and orchestrates the graphql queries to these services accurately at runtime
https://graph-quilt.github.io
Apache License 2.0
70 stars 31 forks source link

Add asserts for outgoing execution input for any 5 integration tests #179

Closed ameytotawar closed 1 year ago

ameytotawar commented 1 year ago

How to identify the tests ?

The tests are located in the integration folder. Find tests that use SimpleMockServiceProvider class Please create a new issue and comment/mention the 5 classes you will be working on so anyone else doesn't work on the same classes. Please check with other issues to avoid overlap. Code changes required

In the then or assert section of the test, access the executionInputArgumentCaptor. This should have the executionInput in the arguments array. You need to assert on this executionInput.

You can assert on the executionInput.query string using string contains and not contains OR even assert equals on the whole query.

@ameytotawar Working on below 5 classes - CustomScalarsSpec XtextConflictResolverSpec DirectivesOnVariableDefinitionSpec DeprecatedSpec DownstreamVariableSplittingSpec