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

runner_manager_type_spec.rb « ci « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 240e1edbf78bc21453760775932d015f2a322fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['CiRunnerManager'], feature_category: :runner_fleet do
  specify { expect(described_class.graphql_name).to eq('CiRunnerManager') }

  specify { expect(described_class).to require_graphql_authorizations(:read_runner_manager) }

  it 'contains attributes related to a runner manager' do
    expected_fields = %w[
      architecture_name contacted_at created_at executor_name id ip_address platform_name revision
      runner status system_id version
    ]

    expect(described_class).to have_graphql_fields(*expected_fields)
  end
end