Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Jul 9, 2024
1 parent e44e256 commit 7b29af7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/encryption/field_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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].",
},
},
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7b29af7

Please sign in to comment.