Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-15 06:08:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-15 06:08:16 +0300
commitc40b7517717b0d23893a92527819fd05c2531b93 (patch)
tree186f2d6d6ec0f794898f4d1011e8fd9b740c24f4 /spec/frontend/fixtures/runner_instructions.rb
parent17c478bc8096b22f22a4b1d8573540d2dfddf6ba (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/fixtures/runner_instructions.rb')
-rw-r--r--spec/frontend/fixtures/runner_instructions.rb43
1 files changed, 43 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/runner_instructions.rb b/spec/frontend/fixtures/runner_instructions.rb
new file mode 100644
index 00000000000..90a01c37479
--- /dev/null
+++ b/spec/frontend/fixtures/runner_instructions.rb
@@ -0,0 +1,43 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'Runner Instructions (JavaScript fixtures)', feature_category: :runner do
+ include ApiHelpers
+ include JavaScriptFixturesHelpers
+ include GraphqlHelpers
+
+ query_path = 'vue_shared/components/runner_instructions/graphql/queries'
+
+ describe GraphQL::Query do
+ describe 'get_runner_platforms.query.graphql', type: :request do
+ let_it_be(:query) do
+ get_graphql_query_as_string("#{query_path}/get_runner_platforms.query.graphql")
+ end
+
+ it 'graphql/runner_instructions/get_runner_platforms.query.graphql.json' do
+ post_graphql(query)
+
+ expect_graphql_errors_to_be_empty
+ end
+ end
+
+ describe 'get_runner_setup.query.graphql', type: :request do
+ let_it_be(:query) do
+ get_graphql_query_as_string("#{query_path}/get_runner_setup.query.graphql")
+ end
+
+ it 'graphql/runner_instructions/get_runner_setup.query.graphql.json' do
+ post_graphql(query, variables: { platform: 'linux', architecture: 'amd64' })
+
+ expect_graphql_errors_to_be_empty
+ end
+
+ it 'graphql/runner_instructions/get_runner_setup.query.graphql.windows.json' do
+ post_graphql(query, variables: { platform: 'windows', architecture: 'amd64' })
+
+ expect_graphql_errors_to_be_empty
+ end
+ end
+ end
+end