diff --git a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/BookIntegrationSpec.groovy b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/BookIntegrationSpec.groovy index 3a60094f..85e6d569 100644 --- a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/BookIntegrationSpec.groovy +++ b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/BookIntegrationSpec.groovy @@ -21,7 +21,7 @@ class BookIntegrationSpec extends Specification implements GraphQLSpec { then: result.errors.size() == 1 - result.errors[0].message == "Validation error of type FieldUndefined: Field 'bookList' in type 'Query' is undefined @ 'bookList'" + result.errors[0].message == "Validation error (FieldUndefined@[bookList]) : Field 'bookList' in type 'Query' is undefined" } } diff --git a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/PaymentIntegrationSpec.groovy b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/PaymentIntegrationSpec.groovy index 3d8a4f1e..b67e8d2d 100644 --- a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/PaymentIntegrationSpec.groovy +++ b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/PaymentIntegrationSpec.groovy @@ -25,7 +25,7 @@ class PaymentIntegrationSpec extends Specification implements GraphQLSpec { then: result.errors.size() == 1 - result.errors[0].message == "Validation error of type FieldUndefined: Field 'paymentCreate' in type 'Mutation' is undefined @ 'paymentCreate'" + result.errors[0].message == "Validation error (FieldUndefined@[paymentCreate]) : Field 'paymentCreate' in type 'Mutation' is undefined" } void "test creating a credit card payment"() { diff --git a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserIntegrationSpec.groovy b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserIntegrationSpec.groovy index 1bc71df8..54fd3179 100644 --- a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserIntegrationSpec.groovy +++ b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserIntegrationSpec.groovy @@ -36,7 +36,8 @@ class UserIntegrationSpec extends Specification implements GraphQLSpec { then: obj.data == null obj.errors.size() == 1 - obj.errors[0].message.startsWith('Validation error of type WrongType') + obj.errors[0].message.startsWith('Validation error (WrongType@[userCreate])') + obj.errors[0].message.endsWith("is missing required fields '[profile]'") when: 'The profile is provided, but missing a required field' resp = graphQL.graphql(""" @@ -63,7 +64,8 @@ class UserIntegrationSpec extends Specification implements GraphQLSpec { then: obj.data == null obj.errors.size() == 1 - obj.errors[0].message.startsWith('Validation error of type WrongType') + obj.errors[0].message.startsWith('Validation error (WrongType@[userCreate])') + obj.errors[0].message.endsWith("is missing required fields '[lastName]'") } void "test creating a user without an address"() { @@ -88,7 +90,8 @@ class UserIntegrationSpec extends Specification implements GraphQLSpec { then: obj.data == null obj.errors.size() == 1 - obj.errors[0].message.startsWith('Validation error of type WrongType') + obj.errors[0].message.startsWith('Validation error (WrongType@[userCreate])') + obj.errors[0].message.endsWith("is missing required fields '[address]'") when: 'The address is provided, but missing a required field' resp = graphQL.graphql(""" diff --git a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserRoleIntegrationSpec.groovy b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserRoleIntegrationSpec.groovy index a876f45b..5af670e7 100644 --- a/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserRoleIntegrationSpec.groovy +++ b/examples/grails-test-app/src/integration-test/groovy/grails/test/app/UserRoleIntegrationSpec.groovy @@ -165,7 +165,7 @@ class UserRoleIntegrationSpec extends Specification implements GraphQLSpec { then: result.errors.size() == 1 - result.errors[0].message == "Validation error of type FieldUndefined: Field 'userRoleUpdate' in type 'Mutation' is undefined @ 'userRoleUpdate'" + result.errors[0].message == "Validation error (FieldUndefined@[userRoleUpdate]) : Field 'userRoleUpdate' in type 'Mutation' is undefined" } void "test listing entities with a complex composite id"() {