Commit b852dfdb authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Merge branch 'ck3g-fix-indentation-in-graphql-specs' into 'master'

Fix GraphQL query example indentation in specs

See merge request gitlab-org/gitlab!39239
parents e6018671 ade086ac
...@@ -38,7 +38,7 @@ RSpec.describe GitlabSchema.types['Group'] do ...@@ -38,7 +38,7 @@ RSpec.describe GitlabSchema.types['Group'] do
let_it_be(:query) do let_it_be(:query) do
%( %(
query { query {
group(fullPath:"#{group.full_path}") { group(fullPath: "#{group.full_path}") {
name name
vulnerabilities { vulnerabilities {
nodes { nodes {
......
...@@ -74,7 +74,7 @@ RSpec.describe GitlabSchema.types['Project'] do ...@@ -74,7 +74,7 @@ RSpec.describe GitlabSchema.types['Project'] do
let_it_be(:query) do let_it_be(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
vulnerabilities { vulnerabilities {
nodes { nodes {
title title
......
...@@ -26,7 +26,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do ...@@ -26,7 +26,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
let(:query) do let(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
name name
vulnerabilities { vulnerabilities {
nodes { nodes {
......
...@@ -92,7 +92,7 @@ RSpec.describe 'getting epics information' do ...@@ -92,7 +92,7 @@ RSpec.describe 'getting epics information' do
<<~QUERY <<~QUERY
query { query {
group(fullPath:"#{group.full_path}") { group(fullPath: "#{group.full_path}") {
id, id,
epics(#{field_queries}) { epics(#{field_queries}) {
nodes { nodes {
......
...@@ -20,8 +20,8 @@ RSpec.describe 'Query.project(fullPath).pipeline(iid).securityReportSummary' do ...@@ -20,8 +20,8 @@ RSpec.describe 'Query.project(fullPath).pipeline(iid).securityReportSummary' do
let_it_be(:query) do let_it_be(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
pipeline(iid:"#{pipeline.iid}") { pipeline(iid: "#{pipeline.iid}") {
securityReportSummary { securityReportSummary {
dast { dast {
scannedResourcesCount scannedResourcesCount
......
...@@ -10,7 +10,7 @@ RSpec.describe 'Query.project(fullPath).vulnerabilitySeveritiesCount' do ...@@ -10,7 +10,7 @@ RSpec.describe 'Query.project(fullPath).vulnerabilitySeveritiesCount' do
let_it_be(:query) do let_it_be(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
vulnerabilitySeveritiesCount { vulnerabilitySeveritiesCount {
high high
} }
......
...@@ -132,14 +132,14 @@ RSpec.describe GitlabSchema.types['Issue'] do ...@@ -132,14 +132,14 @@ RSpec.describe GitlabSchema.types['Issue'] do
let(:query) do let(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}"){ project(fullPath: "#{project.full_path}") {
issue(iid:"#{issue.iid}"){ issue(iid: "#{issue.iid}") {
descriptionHtml descriptionHtml
notes{ notes {
edges{ edges {
node{ node {
bodyHtml bodyHtml
author{ author {
username username
} }
body body
......
...@@ -44,7 +44,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do ...@@ -44,7 +44,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do
let(:query) do let(:query) do
%( %(
query { query {
snippets(ids:"#{snippet.to_global_id}"){ snippets(ids: "#{snippet.to_global_id}") {
edges { edges {
node { node {
blob { blob {
...@@ -70,7 +70,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do ...@@ -70,7 +70,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do
let(:query) do let(:query) do
%( %(
query { query {
snippets(ids:"#{snippet.to_global_id}"){ snippets(ids: "#{snippet.to_global_id}") {
edges { edges {
node { node {
blob { blob {
......
...@@ -31,11 +31,11 @@ RSpec.describe 'Getting Metrics Dashboard Annotations' do ...@@ -31,11 +31,11 @@ RSpec.describe 'Getting Metrics Dashboard Annotations' do
let(:query) do let(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
environments(name: "#{environment.name}") { environments(name: "#{environment.name}") {
nodes { nodes {
metricsDashboard(path: "#{path}"){ metricsDashboard(path: "#{path}") {
annotations(#{args}){ annotations(#{args}) {
nodes { nodes {
#{fields} #{fields}
} }
......
...@@ -107,7 +107,7 @@ RSpec.describe 'query Jira import data' do ...@@ -107,7 +107,7 @@ RSpec.describe 'query Jira import data' do
let(:query) do let(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
jiraImports(first: 1) { jiraImports(first: 1) {
nodes { nodes {
jiraProjectKey jiraProjectKey
...@@ -133,7 +133,7 @@ RSpec.describe 'query Jira import data' do ...@@ -133,7 +133,7 @@ RSpec.describe 'query Jira import data' do
let(:query) do let(:query) do
%( %(
query { query {
project(fullPath:"#{project.full_path}") { project(fullPath: "#{project.full_path}") {
jiraImports(last: 1) { jiraImports(last: 1) {
nodes { nodes {
jiraProjectKey jiraProjectKey
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment