Skip to content

Commit 199d592

Browse files
committed
fix tests
Signed-off-by: Benjamin <[email protected]>
1 parent 18ab294 commit 199d592

15 files changed

+56
-0
lines changed

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert-3.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
source: apollo-router/src/plugins/response_cache/tests.rs
3+
description: "Make sure everything is in status 'cached' and we have all the entities and root fields"
34
expression: cache_keys
45
---
56
[
67
{
8+
"key": "test_insert_simple-version:1.0:subgraph:user:type:Query:hash:26ab4118dbabffe5dfbef4462513caa8b6c8941363cf2eafa874bf1d47a3c468:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
79
"invalidationKeys": [
810
"currentUser",
911
"version:1.0:subgraph:user:type:Query"
@@ -35,6 +37,7 @@ expression: cache_keys
3537
}
3638
},
3739
{
40+
"key": "version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:a7ccf1576978c6598f6d10d8855fc683f71242533dc6d5a706743bd9bbfa554c:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3841
"invalidationKeys": [
3942
"organization",
4043
"organization-1",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ expression: cache_keys
55
---
66
[
77
{
8+
"key": "version:1.0:subgraph:user:type:Query:hash:26ab4118dbabffe5dfbef4462513caa8b6c8941363cf2eafa874bf1d47a3c468:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
89
"invalidationKeys": [
910
"currentUser",
1011
"version:1.0:subgraph:user:type:Query"
@@ -36,6 +37,7 @@ expression: cache_keys
3637
}
3738
},
3839
{
40+
"key": "version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:a7ccf1576978c6598f6d10d8855fc683f71242533dc6d5a706743bd9bbfa554c:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3941
"invalidationKeys": [
4042
"organization",
4143
"organization-1",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert_with_nested_field_set-3.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
source: apollo-router/src/plugins/response_cache/tests.rs
3+
description: "Make sure everything is in status 'cached' and we have all the entities and root fields"
34
expression: cache_keys
45
---
56
[
67
{
8+
"key": "test_insert_with_nested_field_set-version:1.0:subgraph:products:type:Query:hash:1d6a4bed1b509c596aa33b20897cfb1639570bcd9a0e25e7b103ca887b8290bb:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
79
"invalidationKeys": [
810
"allProducts",
911
"version:1.0:subgraph:products:type:Query"
@@ -41,6 +43,7 @@ expression: cache_keys
4143
}
4244
},
4345
{
46+
"key": "version:1.0:subgraph:users:type:User:entity:210e26346d676046faa9fb55d459273a43e5b5397a1a056f179a3521dc5643aa:representation:7cd02a08f4ea96f0affa123d5d3f56abca20e6014e060fe5594d210c00f64b27:hash:d62875543fbc76830c980c1ccc0fc838c1cfa5dbb61ee82a6299aeb1a9250dc0:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
4447
"invalidationKeys": [
4548
"user-email:[email protected]:France",
4649
"version:1.0:subgraph:users:type:User",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert_with_nested_field_set.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
source: apollo-router/src/plugins/response_cache/tests.rs
3+
description: "Make sure everything is in status 'new' and we have all the entities and root fields"
34
expression: cache_keys
45
---
56
[
67
{
8+
"key": "version:1.0:subgraph:products:type:Query:hash:1d6a4bed1b509c596aa33b20897cfb1639570bcd9a0e25e7b103ca887b8290bb:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
79
"invalidationKeys": [
810
"allProducts",
911
"version:1.0:subgraph:products:type:Query"
@@ -41,6 +43,7 @@ expression: cache_keys
4143
}
4244
},
4345
{
46+
"key": "version:1.0:subgraph:users:type:User:entity:210e26346d676046faa9fb55d459273a43e5b5397a1a056f179a3521dc5643aa:representation:7cd02a08f4ea96f0affa123d5d3f56abca20e6014e060fe5594d210c00f64b27:hash:d62875543fbc76830c980c1ccc0fc838c1cfa5dbb61ee82a6299aeb1a9250dc0:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
4447
"invalidationKeys": [
4548
"user-email:[email protected]:France",
4649
"version:1.0:subgraph:users:type:User",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert_with_requires-3.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
source: apollo-router/src/plugins/response_cache/tests.rs
3+
description: "Make sure everything is in status 'cached' and we have all the entities and root fields"
34
expression: cache_keys
45
---
56
[
67
{
8+
"key": "version:1.0:subgraph:inventory:type:Product:entity:72bafad9ffe61307806863b13856470e429e0cf332c99e5b735224fb0b1436f7:representation:7a26bc9b6cfab31cd9278921710167eaf9cde6c17d5f86102c898a04a06aeb6c:hash:ea89086f7f644d0d328416ab58e8fdd3adbbd9209ad59f9ce79ef762bb4c3546:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
79
"invalidationKeys": [
810
"product",
911
"product-1",
@@ -34,6 +36,7 @@ expression: cache_keys
3436
}
3537
},
3638
{
39+
"key": "test_insert_with_requires-version:1.0:subgraph:products:type:Query:hash:cb5a89f1c324570b58144094abb4d100350bbf988e178a06584018fdd08a55db:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3740
"invalidationKeys": [
3841
"topProducts",
3942
"topProducts-5",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__insert_with_requires.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
source: apollo-router/src/plugins/response_cache/tests.rs
3+
description: "Make sure everything is in status 'new' and we have all the entities and root fields"
34
expression: cache_keys
45
---
56
[
67
{
8+
"key": "version:1.0:subgraph:inventory:type:Product:entity:72bafad9ffe61307806863b13856470e429e0cf332c99e5b735224fb0b1436f7:representation:7a26bc9b6cfab31cd9278921710167eaf9cde6c17d5f86102c898a04a06aeb6c:hash:ea89086f7f644d0d328416ab58e8fdd3adbbd9209ad59f9ce79ef762bb4c3546:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
79
"invalidationKeys": [
810
"product",
911
"product-1",
@@ -41,6 +43,7 @@ expression: cache_keys
4143
}
4244
},
4345
{
46+
"key": "version:1.0:subgraph:products:type:Query:hash:cb5a89f1c324570b58144094abb4d100350bbf988e178a06584018fdd08a55db:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
4447
"invalidationKeys": [
4548
"topProducts",
4649
"topProducts-5",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__invalidate-3.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ expression: cache_keys
44
---
55
[
66
{
7+
"key": "test_invalidate-version:1.0:subgraph:user:type:Query:hash:26ab4118dbabffe5dfbef4462513caa8b6c8941363cf2eafa874bf1d47a3c468:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
78
"invalidationKeys": [
89
"currentUser",
910
"version:1.0:subgraph:user:type:Query"
@@ -35,6 +36,7 @@ expression: cache_keys
3536
}
3637
},
3738
{
39+
"key": "version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:a7ccf1576978c6598f6d10d8855fc683f71242533dc6d5a706743bd9bbfa554c:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3840
"invalidationKeys": [
3941
"organization",
4042
"organization-1",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__invalidate-5.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ expression: cache_keys
44
---
55
[
66
{
7+
"key": "test_invalidate-version:1.0:subgraph:user:type:Query:hash:26ab4118dbabffe5dfbef4462513caa8b6c8941363cf2eafa874bf1d47a3c468:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
78
"invalidationKeys": [
89
"currentUser",
910
"version:1.0:subgraph:user:type:Query"
@@ -35,6 +36,7 @@ expression: cache_keys
3536
}
3637
},
3738
{
39+
"key": "version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:a7ccf1576978c6598f6d10d8855fc683f71242533dc6d5a706743bd9bbfa554c:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3840
"invalidationKeys": [
3941
"organization",
4042
"organization-1",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__invalidate.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ expression: cache_keys
44
---
55
[
66
{
7+
"key": "version:1.0:subgraph:user:type:Query:hash:26ab4118dbabffe5dfbef4462513caa8b6c8941363cf2eafa874bf1d47a3c468:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
78
"invalidationKeys": [
89
"currentUser",
910
"version:1.0:subgraph:user:type:Query"
@@ -35,6 +36,7 @@ expression: cache_keys
3536
}
3637
},
3738
{
39+
"key": "version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:a7ccf1576978c6598f6d10d8855fc683f71242533dc6d5a706743bd9bbfa554c:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
3840
"invalidationKeys": [
3941
"organization",
4042
"organization-1",

apollo-router/src/plugins/response_cache/snapshots/apollo_router__plugins__response_cache__tests__no_data-3.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ expression: cache_keys
44
---
55
[
66
{
7+
"key": "version:1.0:subgraph:user:type:Query:hash:de5bb560dcef94cd4b5cfc0ceecd75d4f3ae3cc371fd979a3dbbab0eccafc5f6:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
78
"invalidationKeys": [
89
"currentUser",
910
"version:1.0:subgraph:user:type:Query"
@@ -45,6 +46,7 @@ expression: cache_keys
4546
}
4647
},
4748
{
49+
"key": "no_data-version:1.0:subgraph:orga:type:Organization:entity:bcc0a4a9f8c595510c0ff8849bc36b402ac3f52506392d67107c623528ff11f4:representation::hash:80648d58db616e50fbca283d6de1bd85440a02c5df2172f55f5c53fc35acdd10:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
4850
"invalidationKeys": [
4951
"organization",
5052
"organization-1",
@@ -82,6 +84,7 @@ expression: cache_keys
8284
}
8385
},
8486
{
87+
"key": "no_data-version:1.0:subgraph:orga:type:Organization:entity:2a66208010218056832ffcb8e3e26c636cb2a57e71fc62b424909e2ab2246145:representation::hash:80648d58db616e50fbca283d6de1bd85440a02c5df2172f55f5c53fc35acdd10:data:d9d84a3c7ffc27b0190a671212f3740e5b8478e84e23825830e97822e25cf05c",
8588
"invalidationKeys": [
8689
"organization",
8790
"organization-3",

0 commit comments

Comments
 (0)