diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /spec/frontend/fixtures/runner.rb | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'spec/frontend/fixtures/runner.rb')
-rw-r--r-- | spec/frontend/fixtures/runner.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/frontend/fixtures/runner.rb b/spec/frontend/fixtures/runner.rb index a79982fa647..36281af0219 100644 --- a/spec/frontend/fixtures/runner.rb +++ b/spec/frontend/fixtures/runner.rb @@ -29,7 +29,7 @@ RSpec.describe 'Runner (JavaScript fixtures)' do before do allow(Gitlab::Ci::RunnerUpgradeCheck.instance) .to receive(:check_runner_upgrade_status) - .and_return(:not_available) + .and_return({ not_available: nil }) end describe do @@ -39,19 +39,19 @@ RSpec.describe 'Runner (JavaScript fixtures)' do end describe GraphQL::Query, type: :request do - admin_runners_query = 'list/admin_runners.query.graphql' + all_runners_query = 'list/all_runners.query.graphql' let_it_be(:query) do - get_graphql_query_as_string("#{query_path}#{admin_runners_query}") + get_graphql_query_as_string("#{query_path}#{all_runners_query}") end - it "#{fixtures_path}#{admin_runners_query}.json" do + it "#{fixtures_path}#{all_runners_query}.json" do post_graphql(query, current_user: admin, variables: {}) expect_graphql_errors_to_be_empty end - it "#{fixtures_path}#{admin_runners_query}.paginated.json" do + it "#{fixtures_path}#{all_runners_query}.paginated.json" do post_graphql(query, current_user: admin, variables: { first: 2 }) expect_graphql_errors_to_be_empty @@ -59,13 +59,13 @@ RSpec.describe 'Runner (JavaScript fixtures)' do end describe GraphQL::Query, type: :request do - admin_runners_count_query = 'list/admin_runners_count.query.graphql' + all_runners_count_query = 'list/all_runners_count.query.graphql' let_it_be(:query) do - get_graphql_query_as_string("#{query_path}#{admin_runners_count_query}") + get_graphql_query_as_string("#{query_path}#{all_runners_count_query}") end - it "#{fixtures_path}#{admin_runners_count_query}.json" do + it "#{fixtures_path}#{all_runners_count_query}.json" do post_graphql(query, current_user: admin, variables: {}) expect_graphql_errors_to_be_empty |