Skip to content

HttpGraphQlTester auto-configuration on a running server no longer works #47659

@snicoll

Description

@snicoll

The auto-configuration of HttpGraphQlTester is broken for a running server. Previously we had HttpGraphQlTesterContextCustomizer that would append /graphql to the base url and that customizer has been removed.

HttpGraphQlTesterAutoConfiguration is supposed to handle a server and mock. But it's left with the mock use case only. When it is invoked with a running server, it attempts to mutate the baseUrl which doesn't work. The customizer did retrieve the base url (with the random port, etc) and then adding the context path. We should find a way to do the same.

This breaks the AOT smoke tests so an integration test for that scenario is missing as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions