From 0b8b8783a999d9e38facf258da987da28f178969 Mon Sep 17 00:00:00 2001 From: Islam Aleiv Date: Tue, 9 Jul 2024 15:52:24 +0200 Subject: [PATCH] Adjust tests --- tests/integration/encryption/field_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/encryption/field_test.go b/tests/integration/encryption/field_test.go index 425c486037..839e97274f 100644 --- a/tests/integration/encryption/field_test.go +++ b/tests/integration/encryption/field_test.go @@ -44,7 +44,7 @@ func TestDocEncryptionField_IfFieldDoesNotExistInGQLSchema_ReturnError(t *testin testUtils.ExecuteTestCase(t, test) } -func TestDocEncryptionField_IfAttemptToEncryptBuildInFieldInGQLSchema_ReturnError(t *testing.T) { +func TestDocEncryptionField_IfAttemptToEncryptBuiltinFieldInGQLSchema_ReturnError(t *testing.T) { test := testUtils.TestCase{ SupportedMutationTypes: immutable.Some([]testUtils.MutationType{ testUtils.GQLRequestMutationType, @@ -60,12 +60,12 @@ func TestDocEncryptionField_IfAttemptToEncryptBuildInFieldInGQLSchema_ReturnErro testUtils.CreateDoc{ Doc: john21Doc, EncryptedFields: []string{"_docID"}, - ExpectedError: "Argument \"_docID\" has invalid value [points].", + ExpectedError: "Argument \"encryptFields\" has invalid value [_docID].", }, testUtils.CreateDoc{ Doc: john21Doc, EncryptedFields: []string{"_version"}, - ExpectedError: "Argument \"_version\" has invalid value [points].", + ExpectedError: "Argument \"encryptFields\" has invalid value [_version].", }, }, } @@ -98,7 +98,7 @@ func TestDocEncryptionField_IfFieldDoesNotExist_ReturnError(t *testing.T) { testUtils.ExecuteTestCase(t, test) } -func TestDocEncryptionField_IfAttemptToEncryptBuildInField_ReturnError(t *testing.T) { +func TestDocEncryptionField_IfAttemptToEncryptBuiltinField_ReturnError(t *testing.T) { test := testUtils.TestCase{ SupportedMutationTypes: immutable.Some([]testUtils.MutationType{ testUtils.CollectionSaveMutationType,