summaryrefslogtreecommitdiff
path: root/fixtures
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2021-01-20 13:34:23 -0600
committerRobert Speicher <rspeicher@gmail.com>2021-01-20 13:34:23 -0600
commit6438df3a1e0fb944485cebf07976160184697d72 (patch)
tree00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /fixtures
parent42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff)
downloadgitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'fixtures')
-rw-r--r--fixtures/lib/gitlab/graphql/queries/author.fragment.graphql4
-rw-r--r--fixtures/lib/gitlab/graphql/queries/bad.fragment.graphql4
-rw-r--r--fixtures/lib/gitlab/graphql/queries/bad_argument.graphql5
-rw-r--r--fixtures/lib/gitlab/graphql/queries/client.query.graphql3
-rw-r--r--fixtures/lib/gitlab/graphql/queries/client_unused_fragment.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/connection.query.graphql9
-rw-r--r--fixtures/lib/gitlab/graphql/queries/deeply/nested/bad_import.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/deeply/nested/query.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/duplicate_imports.graphql10
-rw-r--r--fixtures/lib/gitlab/graphql/queries/ee/author.fragment.graphql5
-rw-r--r--fixtures/lib/gitlab/graphql/queries/ee_else_ce.import.graphql9
-rw-r--r--fixtures/lib/gitlab/graphql/queries/missing_argument.graphql8
-rw-r--r--fixtures/lib/gitlab/graphql/queries/mixed_client.query.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/mixed_client_invalid.query.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/mixed_client_skipped_argument.graphql11
-rw-r--r--fixtures/lib/gitlab/graphql/queries/mixed_client_unused_fragment.graphql11
-rw-r--r--fixtures/lib/gitlab/graphql/queries/post.fragment.graphql8
-rw-r--r--fixtures/lib/gitlab/graphql/queries/post_by_slug.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.graphql9
-rw-r--r--fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.misspelled.graphql9
-rw-r--r--fixtures/lib/gitlab/graphql/queries/syntax-error.graphql5
-rw-r--r--fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql3
-rw-r--r--fixtures/lib/gitlab/graphql/queries/transitive_bad_import.fragment.graphql6
-rw-r--r--fixtures/lib/gitlab/graphql/queries/transitive_bad_import.graphql9
-rw-r--r--fixtures/lib/gitlab/graphql/queries/typedefs.graphql3
-rw-r--r--fixtures/lib/gitlab/graphql/queries/unused_import.graphql8
-rw-r--r--fixtures/lib/gitlab/graphql/queries/wrong_field.graphql7
-rw-r--r--fixtures/lib/gitlab/graphql/queries/wrong_field.import.graphql7
28 files changed, 195 insertions, 0 deletions
diff --git a/fixtures/lib/gitlab/graphql/queries/author.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/author.fragment.graphql
new file mode 100644
index 00000000000..a10af1b3217
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/author.fragment.graphql
@@ -0,0 +1,4 @@
+fragment AuthorF on Author {
+ name
+ handle
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/bad.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/bad.fragment.graphql
new file mode 100644
index 00000000000..00d868792d2
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/bad.fragment.graphql
@@ -0,0 +1,4 @@
+fragment BadF on Blog {
+ wibble
+ wobble
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/bad_argument.graphql b/fixtures/lib/gitlab/graphql/queries/bad_argument.graphql
new file mode 100644
index 00000000000..0b704d717dd
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/bad_argument.graphql
@@ -0,0 +1,5 @@
+query($bad: String) {
+ blog(title: $bad) {
+ description
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/client.query.graphql b/fixtures/lib/gitlab/graphql/queries/client.query.graphql
new file mode 100644
index 00000000000..dabe9735064
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/client.query.graphql
@@ -0,0 +1,3 @@
+query {
+ thingy @client
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/client_unused_fragment.graphql b/fixtures/lib/gitlab/graphql/queries/client_unused_fragment.graphql
new file mode 100644
index 00000000000..2beba1812c9
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/client_unused_fragment.graphql
@@ -0,0 +1,7 @@
+#import "./thingy.fragment.graphql"
+
+query($slug: String!, $foo: String) {
+ thingy(someArg: $foo) @client {
+ ...ThingyF
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/connection.query.graphql b/fixtures/lib/gitlab/graphql/queries/connection.query.graphql
new file mode 100644
index 00000000000..eec3f9b867b
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/connection.query.graphql
@@ -0,0 +1,9 @@
+query($slug: String!) {
+ post(slug: $slug) {
+ author {
+ posts @connection(key: "posts") {
+ title
+ }
+ }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/deeply/nested/bad_import.graphql b/fixtures/lib/gitlab/graphql/queries/deeply/nested/bad_import.graphql
new file mode 100644
index 00000000000..2a83b9dd42c
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/deeply/nested/bad_import.graphql
@@ -0,0 +1,7 @@
+# import "../author.fragment.graphql"
+
+query($slug: String!) {
+ post(slug: $slug) {
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/deeply/nested/query.graphql b/fixtures/lib/gitlab/graphql/queries/deeply/nested/query.graphql
new file mode 100644
index 00000000000..451d3c25f25
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/deeply/nested/query.graphql
@@ -0,0 +1,7 @@
+# import "../../author.fragment.graphql"
+
+query($slug: String!) {
+ post(slug: $slug) {
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/duplicate_imports.graphql b/fixtures/lib/gitlab/graphql/queries/duplicate_imports.graphql
new file mode 100644
index 00000000000..de3ac9fa833
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/duplicate_imports.graphql
@@ -0,0 +1,10 @@
+# import "./author.fragment.graphql"
+# import "./post.fragment.graphql"
+
+query($title: String!) {
+ blog(title: $title) {
+ description
+ mainAuthor { ...AuthorF }
+ posts { ...PostF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/ee/author.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/ee/author.fragment.graphql
new file mode 100644
index 00000000000..884b683c563
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/ee/author.fragment.graphql
@@ -0,0 +1,5 @@
+fragment AuthorF on Author {
+ name
+ handle
+ verified
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/ee_else_ce.import.graphql b/fixtures/lib/gitlab/graphql/queries/ee_else_ce.import.graphql
new file mode 100644
index 00000000000..5a4d0320eb6
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/ee_else_ce.import.graphql
@@ -0,0 +1,9 @@
+#import "ee_else_ce/author.fragment.graphql"
+
+query {
+ post(slug: "validating-queries") {
+ title
+ content
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/missing_argument.graphql b/fixtures/lib/gitlab/graphql/queries/missing_argument.graphql
new file mode 100644
index 00000000000..499495d9363
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/missing_argument.graphql
@@ -0,0 +1,8 @@
+query {
+ blog {
+ title
+ posts {
+ title
+ }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/mixed_client.query.graphql b/fixtures/lib/gitlab/graphql/queries/mixed_client.query.graphql
new file mode 100644
index 00000000000..f98d070958c
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/mixed_client.query.graphql
@@ -0,0 +1,7 @@
+query {
+ thingy @client
+ post(slug: "validating-queries") {
+ title
+ otherThing @client
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/mixed_client_invalid.query.graphql b/fixtures/lib/gitlab/graphql/queries/mixed_client_invalid.query.graphql
new file mode 100644
index 00000000000..e97c133c5ca
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/mixed_client_invalid.query.graphql
@@ -0,0 +1,7 @@
+query {
+ thingy @client
+ post(slug: "validating-queries") {
+ titlz
+ otherThing @client
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/mixed_client_skipped_argument.graphql b/fixtures/lib/gitlab/graphql/queries/mixed_client_skipped_argument.graphql
new file mode 100644
index 00000000000..a54890085f1
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/mixed_client_skipped_argument.graphql
@@ -0,0 +1,11 @@
+query($slug: String!, $foo: String) {
+ thingy(someArg: $foo) @client {
+ x
+ y
+ z
+ }
+ post(slug: $slug) {
+ title
+ otherThing @client
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/mixed_client_unused_fragment.graphql b/fixtures/lib/gitlab/graphql/queries/mixed_client_unused_fragment.graphql
new file mode 100644
index 00000000000..0f4e92319ab
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/mixed_client_unused_fragment.graphql
@@ -0,0 +1,11 @@
+#import "./thingy.fragment.graphql"
+
+query($slug: String!, $foo: String) {
+ thingy(someArg: $foo) @client {
+ ...ThingyF
+ }
+ post(slug: $slug) {
+ title
+ otherThing @client
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/post.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/post.fragment.graphql
new file mode 100644
index 00000000000..0049964cfa5
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/post.fragment.graphql
@@ -0,0 +1,8 @@
+# import "./author.fragment.graphql"
+
+fragment PostF on Post {
+ name
+ title
+ content
+ author { ...AuthorF }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/post_by_slug.graphql b/fixtures/lib/gitlab/graphql/queries/post_by_slug.graphql
new file mode 100644
index 00000000000..a7febc39e81
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/post_by_slug.graphql
@@ -0,0 +1,7 @@
+query {
+ post(slug: "validating-queries") {
+ title
+ content
+ author { name }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.graphql b/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.graphql
new file mode 100644
index 00000000000..fef763c4283
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.graphql
@@ -0,0 +1,9 @@
+#import "./author.fragment.graphql"
+
+query {
+ post(slug: "validating-queries") {
+ title
+ content
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.misspelled.graphql b/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.misspelled.graphql
new file mode 100644
index 00000000000..4b205860e6e
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/post_by_slug.with_import.misspelled.graphql
@@ -0,0 +1,9 @@
+# import "./auther.fragment.graphql"
+
+query {
+ post(slug: "validating-queries") {
+ title
+ content
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/syntax-error.graphql b/fixtures/lib/gitlab/graphql/queries/syntax-error.graphql
new file mode 100644
index 00000000000..f7d2730951d
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/syntax-error.graphql
@@ -0,0 +1,5 @@
+query }
+ blog(title: "boom") {
+ description
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql
new file mode 100644
index 00000000000..2f95d647eb3
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql
@@ -0,0 +1,3 @@
+fragment ThingyF on Thingy {
+ x y z
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.fragment.graphql b/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.fragment.graphql
new file mode 100644
index 00000000000..1a0769279ef
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.fragment.graphql
@@ -0,0 +1,6 @@
+# import "does-not-exist.graphql"
+
+fragment AuthorF on Author {
+ name
+ handle
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.graphql b/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.graphql
new file mode 100644
index 00000000000..6520fd8d412
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/transitive_bad_import.graphql
@@ -0,0 +1,9 @@
+# import "./transitive_bad_import.fragment.graphql"
+
+query($slug: String!) {
+ post(slug: $slug) {
+ title
+ content
+ author { ...AuthorF }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/typedefs.graphql b/fixtures/lib/gitlab/graphql/queries/typedefs.graphql
new file mode 100644
index 00000000000..e25298661fd
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/typedefs.graphql
@@ -0,0 +1,3 @@
+type Author {
+ name: String
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/unused_import.graphql b/fixtures/lib/gitlab/graphql/queries/unused_import.graphql
new file mode 100644
index 00000000000..19e9de90e81
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/unused_import.graphql
@@ -0,0 +1,8 @@
+# import "./author.fragment.graphql"
+
+query($slug: String!) {
+ post(slug: $slug) {
+ title
+ content
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/wrong_field.graphql b/fixtures/lib/gitlab/graphql/queries/wrong_field.graphql
new file mode 100644
index 00000000000..7903854c84e
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/wrong_field.graphql
@@ -0,0 +1,7 @@
+query {
+ blog(title: "A history of GraphQL") {
+ title
+ createdAt
+ categories { name }
+ }
+}
diff --git a/fixtures/lib/gitlab/graphql/queries/wrong_field.import.graphql b/fixtures/lib/gitlab/graphql/queries/wrong_field.import.graphql
new file mode 100644
index 00000000000..534154e2877
--- /dev/null
+++ b/fixtures/lib/gitlab/graphql/queries/wrong_field.import.graphql
@@ -0,0 +1,7 @@
+# import "./bad.fragment.graphql"
+
+query($title: String!) {
+ blog(title: $title) {
+ ...BadF
+ }
+}