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

[Release-1.4] CherryPick: Have the Hub UT framework send what it received #218

Merged

Conversation

anujc25
Copy link
Contributor

@anujc25 anujc25 commented Nov 5, 2024

Cherry-pick: #206

What this PR does / why we need it

Before this commit the UT framework would send the registered operation. This was not useful for unit tests as it is those same tests that registered the operation, so they are already aware of what it is. What the tests need is for the framework to send the actual received GraphQL request so that it can be verified. This commit does this.

Which issue(s) this PR fixes

Fixes #

Describe testing done for PR

Release note

Hub unit test framework now sends back the GraphQL request it received for more thorough testing.  This change breaks backwards-compatibility of the API used to write unit test for GraphQL: the `Responder` and `EventGenerator` types have a slightly different signature.

Additional information

Special notes for your reviewer

Before this commit the UT framework would send the registered operation.
This was not useful for unit tests as it is those same tests that
registered the operation, so they are already aware of what it is.  What the
tests need is for the framework to send the actual received GraphQL
request so that it can be verified. This commit does this.

Signed-off-by: Marc Khouzam <[email protected]>
@anujc25 anujc25 requested a review from a team as a code owner November 5, 2024 18:41
Copy link
Contributor

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks!

@anujc25 anujc25 merged commit 0fe7714 into vmware-tanzu:release-1.4 Nov 5, 2024
5 checks passed
@marckhouzam marckhouzam added this to the v1.4.5 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants