Skip to content

Commit fd08a6a

Browse files
authored
More tests for unions (#142)
1 parent 2f4ea6f commit fd08a6a

File tree

24 files changed

+432
-134
lines changed

24 files changed

+432
-134
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ This repository contains a set of tests to evaluate and compare the compatibilit
1010

1111
| Gateway | Compatibility | Test Cases | Test Suites |
1212
| :-------------------------------------------------------------: | :-----------: | :----------: | :---------: |
13-
| [Hive Gateway](https://the-guild.dev/graphql/hive/docs/gateway) | 100.00% | 🟢 179 | 🟢 41 |
14-
| [Apollo Router](https://www.apollographql.com/) | 97.77% | 🟢 175 ❌ 4 | 🟢 39 ❌ 2 |
15-
| [Apollo Gateway](https://www.apollographql.com/) | 97.21% | 🟢 174 ❌ 5 | 🟢 38 ❌ 3 |
16-
| [Cosmo Router](https://wundergraph.com) | 94.97% | 🟢 170 ❌ 9 | 🟢 36 ❌ 5 |
17-
| [Grafbase Gateway](https://grafbase.com) | 91.62% | 🟢 16415 | 🟢 365 |
18-
| [Inigo Gateway](https://inigo.io) | 49.72% | 🟢 8990 | 🟢 12 ❌ 29 |
13+
| [Hive Gateway](https://the-guild.dev/graphql/hive/docs/gateway) | 100.00% | 🟢 186 | 🟢 41 |
14+
| [Apollo Router](https://www.apollographql.com/) | 97.85% | 🟢 182 ❌ 4 | 🟢 39 ❌ 2 |
15+
| [Apollo Gateway](https://www.apollographql.com/) | 97.31% | 🟢 181 ❌ 5 | 🟢 38 ❌ 3 |
16+
| [Cosmo Router](https://wundergraph.com) | 95.16% | 🟢 177 ❌ 9 | 🟢 36 ❌ 5 |
17+
| [Grafbase Gateway](https://grafbase.com) | 90.86% | 🟢 16917 | 🟢 356 |
18+
| [Inigo Gateway](https://inigo.io) | 48.92% | 🟢 9195 | 🟢 12 ❌ 29 |
1919

2020
<!-- gateways:end -->
2121

@@ -65,7 +65,7 @@ First of all, you need to install and prepare the gateways. You can do this by r
6565
make install
6666
```
6767

68-
> [!IMPORTANT]
68+
> [!IMPORTANT]
6969
> Be aware that `Node` and `npm` are required to run the whole setup.
7070
7171
### Testing all gateways

REPORT.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
| Gateway | Compatibility | Test Cases | Test Suites |
66
| :-------------------------------------------------------------: | :-----------: | :----------: | :---------: |
7-
| [Hive Gateway](https://the-guild.dev/graphql/hive/docs/gateway) | 100.00% | 🟢 179 | 🟢 41 |
8-
| [Apollo Router](https://www.apollographql.com/) | 97.77% | 🟢 175 ❌ 4 | 🟢 39 ❌ 2 |
9-
| [Apollo Gateway](https://www.apollographql.com/) | 97.21% | 🟢 174 ❌ 5 | 🟢 38 ❌ 3 |
10-
| [Cosmo Router](https://wundergraph.com) | 94.97% | 🟢 170 ❌ 9 | 🟢 36 ❌ 5 |
11-
| [Grafbase Gateway](https://grafbase.com) | 91.62% | 🟢 16415 | 🟢 365 |
12-
| [Inigo Gateway](https://inigo.io) | 49.72% | 🟢 8990 | 🟢 12 ❌ 29 |
7+
| [Hive Gateway](https://the-guild.dev/graphql/hive/docs/gateway) | 100.00% | 🟢 186 | 🟢 41 |
8+
| [Apollo Router](https://www.apollographql.com/) | 97.85% | 🟢 182 ❌ 4 | 🟢 39 ❌ 2 |
9+
| [Apollo Gateway](https://www.apollographql.com/) | 97.31% | 🟢 181 ❌ 5 | 🟢 38 ❌ 3 |
10+
| [Cosmo Router](https://wundergraph.com) | 95.16% | 🟢 177 ❌ 9 | 🟢 36 ❌ 5 |
11+
| [Grafbase Gateway](https://grafbase.com) | 90.86% | 🟢 16917 | 🟢 356 |
12+
| [Inigo Gateway](https://inigo.io) | 48.92% | 🟢 9195 | 🟢 12 ❌ 29 |
1313

1414
## Detailed Results
1515

@@ -105,9 +105,9 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
105105
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
106106
<pre>🟢🟢</pre>
107107
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
108-
<pre>🟢🟢🟢🟢🟢🟢🟢</pre>
108+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
109109
<a href="./src/test-suites/union-intersection">union-intersection</a>
110-
<pre>🟢🟢🟢🟢🟢🟢🟢🟢</pre>
110+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
111111
</details>
112112

113113
<a id="apollo-router"></a>
@@ -198,9 +198,9 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
198198
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
199199
<pre>🟢🟢</pre>
200200
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
201-
<pre>🟢🟢🟢🟢🟢🟢🟢</pre>
201+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
202202
<a href="./src/test-suites/union-intersection">union-intersection</a>
203-
<pre>🟢🟢🟢🟢🟢🟢🟢🟢</pre>
203+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
204204
</details>
205205

206206
<a id="apollo-gateway"></a>
@@ -291,9 +291,9 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
291291
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
292292
<pre>🟢🟢</pre>
293293
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
294-
<pre>🟢🟢🟢🟢🟢🟢🟢</pre>
294+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
295295
<a href="./src/test-suites/union-intersection">union-intersection</a>
296-
<pre>🟢🟢🟢🟢🟢🟢🟢🟢</pre>
296+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
297297
</details>
298298

299299
<a id="cosmo-router"></a>
@@ -384,9 +384,9 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
384384
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
385385
<pre>🟢🟢</pre>
386386
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
387-
<pre>🟢🟢🟢🟢🟢🟢🟢</pre>
387+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
388388
<a href="./src/test-suites/union-intersection">union-intersection</a>
389-
<pre>🟢🟢🟢🟢🟢🟢🟢🟢</pre>
389+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
390390
</details>
391391

392392
<a id="grafbase-gateway"></a>
@@ -477,9 +477,9 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
477477
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
478478
<pre>🟢🟢</pre>
479479
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
480-
<pre>🟢🟢🟢🟢🟢🟢🟢</pre>
480+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢</pre>
481481
<a href="./src/test-suites/union-intersection">union-intersection</a>
482-
<pre>🟢🟢🟢🟢🟢🟢🟢🟢</pre>
482+
<pre>🟢🟢🟢🟢🟢🟢🟢🟢❌🟢🟢❌</pre>
483483
</details>
484484

485485
<a id="inigo-gateway"></a>
@@ -570,7 +570,7 @@ You can look at the full list of tests [here](./src/test-suites/). Every test id
570570
<a href="./src/test-suites/unavailable-override">unavailable-override</a>
571571
<pre>❌🟢</pre>
572572
<a href="./src/test-suites/union-interface-distributed">union-interface-distributed</a>
573-
<pre>❌❌🟢🟢🟢🟢🟢</pre>
573+
<pre>❌❌🟢🟢❌❌🟢🟢🟢🟢</pre>
574574
<a href="./src/test-suites/union-intersection">union-intersection</a>
575-
<pre>❌❌❌❌❌❌❌❌</pre>
575+
<pre>❌❌❌❌❌❌❌❌❌🟢❌❌</pre>
576576
</details>

gateways/apollo-gateway/results.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ typename
7777
unavailable-override
7878
..
7979
union-interface-distributed
80-
.......
80+
..........
8181
union-intersection
82-
........
82+
............
8383

8484
---
85-
Total: 179
86-
Passed: 174
85+
Total: 186
86+
Passed: 181
8787
Failed: 5

gateways/apollo-router/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# https://github.com/apollographql/router/releases
2-
curl -sSL https://router.apollo.dev/download/nix/v2.2.1 | sh
2+
curl -sSL https://router.apollo.dev/download/nix/v2.3.0 | sh

gateways/apollo-router/results.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ typename
7777
unavailable-override
7878
..
7979
union-interface-distributed
80-
.......
80+
..........
8181
union-intersection
82-
........
82+
............
8383

8484
---
85-
Total: 179
86-
Passed: 175
85+
Total: 186
86+
Passed: 182
8787
Failed: 4

gateways/cosmo-router/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -u
88
BINARY_DOWNLOAD_PREFIX="https://github.com/wundergraph/cosmo/releases/download"
99

1010
# https://github.com/wundergraph/cosmo/releases
11-
DOWNLOAD_VERSION="0.215.1"
11+
DOWNLOAD_VERSION="0.220.0"
1212

1313
download_binary() {
1414
downloader --check

gateways/cosmo-router/results.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ typename
7777
unavailable-override
7878
..
7979
union-interface-distributed
80-
.......
80+
..........
8181
union-intersection
82-
........
82+
............
8383

8484
---
85-
Total: 179
86-
Passed: 170
85+
Total: 186
86+
Passed: 177
8787
Failed: 9

gateways/grafbase-gateway/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
# to the current directory instead of /usr/local/bin
66

77
# https://github.com/grafbase/grafbase/releases
8-
VERSION="0.38.0"
8+
VERSION="0.40.0"
99

1010
error() {
1111
echo -e "${Red}error${Color_Off}:" "$@" >&2

gateways/grafbase-gateway/results.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ typename
7777
unavailable-override
7878
..
7979
union-interface-distributed
80-
.......
80+
..........
8181
union-intersection
82-
........
82+
........X..X
8383

8484
---
85-
Total: 179
86-
Passed: 164
87-
Failed: 15
85+
Total: 186
86+
Passed: 169
87+
Failed: 17

gateways/hive-gateway/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# https://github.com/graphql-hive/gateway/releases
2-
curl -sSL https://graphql-hive.com/install-gateway.sh | sh -s "1.15.0"
2+
curl -sSL https://graphql-hive.com/install-gateway.sh | sh -s "1.15.1"

0 commit comments

Comments
 (0)