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

chore: update demo #591

Merged
merged 27 commits into from
Mar 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7c7c7e1
Federation: update demo to include cycles
clayne11 Jan 26, 2024
6db18ee
Show how using nested entity keys causes bugs.
clayne11 Feb 1, 2024
6f91769
Move hobby back to being an interface
clayne11 Feb 1, 2024
995e93e
Remove details and move to employees
clayne11 Feb 1, 2024
edde984
Fix some of the tests
clayne11 Feb 1, 2024
30a8bdf
Fix tests
clayne11 Feb 1, 2024
8ea3f76
Add new test
clayne11 Feb 2, 2024
9f7bfc7
Merge branch 'main' into curtis.layne/demo-federation
devsergiy Feb 16, 2024
d04000c
revert details as entity
devsergiy Mar 1, 2024
c72308d
add compose.sh
devsergiy Mar 1, 2024
a9703f3
Merge remote-tracking branch 'origin/main' into chore/update-demo
devsergiy Mar 1, 2024
279a3eb
go work sync
devsergiy Mar 1, 2024
22a2c5c
update test queries structure
devsergiy Mar 1, 2024
b288ad6
add goldie
devsergiy Mar 1, 2024
ce30842
add update test config cmd
devsergiy Mar 1, 2024
c90d6f5
update testenv router config
devsergiy Mar 1, 2024
67607be
fix replacing urls in the test env config
devsergiy Mar 1, 2024
138d355
update fixtures
devsergiy Mar 1, 2024
4c120ea
Merge branch 'main' into chore/update-demo
devsergiy Mar 1, 2024
8cbcfaa
fix go test config generation
devsergiy Mar 4, 2024
898034f
fix tracing test
devsergiy Mar 4, 2024
46b90fa
Merge branch 'main' into chore/update-demo
devsergiy Mar 4, 2024
6beb854
enable back report websocket stats
devsergiy Mar 4, 2024
334c62d
fix: do not require details in demo subgraphs
devsergiy Mar 4, 2024
c562272
chore: add to readme a guide how to update snaphots
devsergiy Mar 4, 2024
07ba69b
replace go-snaps with goldie
devsergiy Mar 4, 2024
d345173
chore: remove line break added by ide
devsergiy Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add to readme a guide how to update snaphots
  • Loading branch information
devsergiy committed Mar 4, 2024
commit c56227227ceb670e7bf66f2e4ce8c978c962a17d
15 changes: 15 additions & 0 deletions router-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ go test -race -v ./...
```

It can take a while until the tests finish.

## Updating fixtures

Some of the tests uses the [goldie](https://github.com/sebdah/goldie) based snaphots

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

```bash
go test -update ./...
```

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

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