Skip to content

Commit dc5f390

Browse files
committed
fix integration tests
1 parent f3e41f9 commit dc5f390

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

integration/gradle-plugin-integration-tests/src/integration/resources/sdl/custom.graphql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.1"){
1+
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@interfaceObject", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.3"){
22
query: Query
33
}
44

@@ -26,6 +26,9 @@ directive @include(
2626
if: Boolean!
2727
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
2828

29+
"Provides meta information to the router that this entity type is an interface in the supergraph."
30+
directive @interfaceObject on OBJECT
31+
2932
"Space separated list of primary keys needed to access federated object"
3033
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
3134

integration/gradle-plugin-integration-tests/src/integration/resources/sdl/federated.graphql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.1"){
1+
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@interfaceObject", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.3"){
22
query: Query
33
}
44

@@ -26,6 +26,9 @@ directive @include(
2626
if: Boolean!
2727
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
2828

29+
"Provides meta information to the router that this entity type is an interface in the supergraph."
30+
directive @interfaceObject on OBJECT
31+
2932
"Space separated list of primary keys needed to access federated object"
3033
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
3134

plugins/graphql-kotlin-maven-plugin/src/integration/generate-sdl-federated/src/test/kotlin/com/expediagroup/graphql/plugin/maven/GenerateSDLMojoTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GenerateSDLMojoTest {
3636
assertTrue(schemaFile.exists(), "schema file was generated")
3737

3838
val expectedSchema = """
39-
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.1"){
39+
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@interfaceObject", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.3"){
4040
query: Query
4141
}
4242
@@ -64,6 +64,9 @@ class GenerateSDLMojoTest {
6464
if: Boolean!
6565
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
6666
67+
"Provides meta information to the router that this entity type is an interface in the supergraph."
68+
directive @interfaceObject on OBJECT
69+
6770
"Space separated list of primary keys needed to access federated object"
6871
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
6972

plugins/graphql-kotlin-maven-plugin/src/integration/generate-sdl-hooks/src/test/kotlin/com/expediagroup/graphql/plugin/maven/GenerateSDLMojoTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GenerateSDLMojoTest {
3636
assertTrue(schemaFile.exists(), "schema file was generated")
3737

3838
val expectedSchema = """
39-
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.1"){
39+
schema @link(import : ["@composeDirective", "@extends", "@external", "@inaccessible", "@interfaceObject", "@key", "@override", "@provides", "@requires", "@shareable", "@tag", "FieldSet"], url : "https://specs.apollo.dev/federation/v2.3"){
4040
query: Query
4141
}
4242
@@ -64,6 +64,9 @@ class GenerateSDLMojoTest {
6464
if: Boolean!
6565
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
6666
67+
"Provides meta information to the router that this entity type is an interface in the supergraph."
68+
directive @interfaceObject on OBJECT
69+
6770
"Space separated list of primary keys needed to access federated object"
6871
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
6972

0 commit comments

Comments
 (0)