From 6a1dcfa3c8af1314a2f8184f4bc995a5e6b4e84d Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 21 Sep 2022 19:37:43 +1200 Subject: [PATCH] Update abuse test --- tests/e2e/Services/GraphQL/GraphQLAbuseTest.php | 2 +- tests/e2e/Services/GraphQL/GraphQLBase.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/GraphQL/GraphQLAbuseTest.php b/tests/e2e/Services/GraphQL/GraphQLAbuseTest.php index 684523383a..6a6117d367 100644 --- a/tests/e2e/Services/GraphQL/GraphQLAbuseTest.php +++ b/tests/e2e/Services/GraphQL/GraphQLAbuseTest.php @@ -47,7 +47,7 @@ class GraphQLAbuseTest extends Scope $max = App::getEnv('_APP_GRAPHQL_MAX_QUERY_COMPLEXITY', 50); - $this->assertEquals('Max query complexity should be ' . $max . ' but got 51.', $response['body']['errors'][0]['message']); + $this->assertEquals('Max query complexity should be ' . $max . ' but got 57.', $response['body']['errors'][0]['message']); } public function testTooManyQueriesBlocked() diff --git a/tests/e2e/Services/GraphQL/GraphQLBase.php b/tests/e2e/Services/GraphQL/GraphQLBase.php index 4d20f15751..9ac6ef3ac3 100644 --- a/tests/e2e/Services/GraphQL/GraphQLBase.php +++ b/tests/e2e/Services/GraphQL/GraphQLBase.php @@ -1392,6 +1392,14 @@ trait GraphQLBase default array } + databasesCreateBooleanAttribute(databaseId: $databaseId, collectionId: $collectionId, key: "alive", required: false, default: true) { + key + type + status + required + default + array + } usersCreate(userId: "unique()", email: "test1@appwrite.io", password: "password", name: "Tester 1") { _id _createdAt