integration

package module
v0.0.0-...-7bd2912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

README

Router Integration Tests

This directory contains integration tests for the router. It is a separate package to prevent dependencies of the tests and demos from becoming dependencies of github.com/wundergraph/cosmo/router.

Updating the demo subgraphs

Regenerate the router execution config with ./update-config-no-edg.sh. This will propagate any changes from the SDLs.

Running the tests

go test -race -v ./...

It can take a while until the tests finish.

Updating fixtures

Some tests use the goldie based snaphots.

In case you need to update all snapshots, run the following command:

GOLDIE_UPDATE=1 go test ./...

Be aware that this will overwrite all snapshots with the current output of the tests. Use this command with caution.

Alternatively you can update a single snapshot by temporarily replacing call to g.Assert with g.Update in the test and running the test.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
jwks-server command
Package freeport provides a helper for reserving free TCP ports across multiple processes on the same machine.
Package freeport provides a helper for reserving free TCP ports across multiple processes on the same machine.
retry
Package retry provides support for repeating operations in tests.
Package retry provides support for repeating operations in tests.
modules
custom-forbidden-handler
Package custom_forbidden_handler standardizes 403 auth failure responses from subgraphs.
Package custom_forbidden_handler standardizes 403 auth failure responses from subgraphs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL