Skip to content

Commit

Permalink
Fixed Test Snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 8, 2022
1 parent d6cecb4 commit 1ec54c6
Show file tree
Hide file tree
Showing 57 changed files with 241 additions and 241 deletions.
Expand Up @@ -673,7 +673,7 @@ public async Task Get_ActivePersistedQuery_AddQuery()

var document = Utf8GraphQLParser.Parse("{ __typename }");

var hashProvider = new MD5DocumentHashProvider();
var hashProvider = new MD5DocumentHashProvider(HashFormat.Hex);
var hash = hashProvider.ComputeHash(
Encoding.UTF8.GetBytes(document.ToString(false)));

Expand Down Expand Up @@ -702,7 +702,7 @@ public async Task Get_ActivePersistedQuery_AddQuery_Unformatted()

var query = "{__typename}";

var hashProvider = new MD5DocumentHashProvider();
var hashProvider = new MD5DocumentHashProvider(HashFormat.Hex);
var hash = hashProvider.ComputeHash(Encoding.UTF8.GetBytes(query));

// act
Expand All @@ -712,14 +712,10 @@ public async Task Get_ActivePersistedQuery_AddQuery_Unformatted()
"md5Hash",
hash);

var resultB =
await server.GetActivePersistedQueryAsync("md5Hash", hash);
var resultB = await server.GetActivePersistedQueryAsync("md5Hash", hash);

// assert
new[] {
resultA,
resultB
}.MatchSnapshot();
new[] { resultA, resultB }.MatchSnapshot();
}

[Fact]
Expand Down
Expand Up @@ -8,7 +8,7 @@
"Errors": null,
"Extensions": {
"persistedQuery": {
"md5Hash": "71yeex4k3iYWQgg9TilDIg==",
"md5Hash": "ef5c9e7b1e24de261642083d4e294322",
"persisted": true
}
}
Expand Down
Expand Up @@ -8,7 +8,7 @@
"Errors": null,
"Extensions": {
"persistedQuery": {
"md5Hash": "Bu4CtU8VR1RKncO9l/g6ag==",
"md5Hash": "06ee02b54f1547544a9dc3bd97f83a6a",
"persisted": true
}
}
Expand Down
Expand Up @@ -18,7 +18,7 @@
}
... on Droid {
name @__execute(id: 3, kind: PURE, type: LEAF)
... Fragment_0 @defer
... Fragment_1 @defer
}
}
}
Expand All @@ -27,3 +27,7 @@
fragment Fragment_0 on Human {
id @__execute(id: 2, kind: PURE, type: LEAF)
}

fragment Fragment_1 on Droid {
id @__execute(id: 4, kind: PURE, type: LEAF)
}
Expand Up @@ -6,10 +6,10 @@
"Name": "abc",
"Parent": {
"Parent": null,
"Depth": -1,
"Length": -1,
"IsRoot": true
},
"Depth": 0,
"Length": 0,
"IsRoot": false
},
"Locations": null,
Expand Down
Expand Up @@ -6,10 +6,10 @@
"Name": "abc",
"Parent": {
"Parent": null,
"Depth": -1,
"Length": -1,
"IsRoot": true
},
"Depth": 0,
"Length": 0,
"IsRoot": false
},
"Locations": null,
Expand Down
Expand Up @@ -6,10 +6,10 @@
"Name": "abc",
"Parent": {
"Parent": null,
"Depth": -1,
"Length": -1,
"IsRoot": true
},
"Depth": 0,
"Length": 0,
"IsRoot": false
},
"Locations": null,
Expand Down
Expand Up @@ -6,10 +6,10 @@
"Name": "root",
"Parent": {
"Parent": null,
"Depth": -1,
"Length": -1,
"IsRoot": true
},
"Depth": 0,
"Length": 0,
"IsRoot": false
},
"Locations": null,
Expand Down
Expand Up @@ -6,10 +6,10 @@
"Name": "root",
"Parent": {
"Parent": null,
"Depth": -1,
"Length": -1,
"IsRoot": true
},
"Depth": 0,
"Length": 0,
"IsRoot": false
},
"Locations": null,
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.document.hash",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.operation.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -56,11 +56,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.document.hash",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.document.hash",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.operation.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -56,11 +56,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "graphql.document.hash",
"Value": "avGGGK4gwmb2/8NSt4y2mw=="
"Value": "6af18618ae20c266f6ffc352b78cb69b"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.document.hash",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.operation.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -60,11 +60,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.document.hash",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.document.hash",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.operation.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -60,11 +60,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "graphql.document.hash",
"Value": "hR+3VNm6a1zFpV68vqJiHQ=="
"Value": "851fb754d9ba6b5cc5a55ebcbea2621d"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.document.hash",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.operation.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
}
],
"event": [
Expand Down Expand Up @@ -48,11 +48,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.document.hash",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.document.hash",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.operation.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
}
],
"event": [
Expand Down Expand Up @@ -48,11 +48,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "graphql.document.hash",
"Value": "RS6oAsTRvyqBp0EbCzYdnw=="
"Value": "452ea802c4d1bf2a81a7411b0b361d9f"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.document.hash",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.operation.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -52,11 +52,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.document.hash",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "otel.status_code",
Expand Down
Expand Up @@ -7,15 +7,15 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.document.hash",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.operation.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.operation.name",
Expand Down Expand Up @@ -52,11 +52,11 @@
"tags": [
{
"Key": "graphql.document.id",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "graphql.document.hash",
"Value": "zuDik57OctZQywMx9L5GaQ=="
"Value": "cee0e2939ece72d650cb0331f4be4669"
},
{
"Key": "otel.status_code",
Expand Down

0 comments on commit 1ec54c6

Please sign in to comment.