2021-05-04 12:10:04 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2021-06-14 21:10:22 +00:00
|
|
|
RSpec.describe GitlabSchema.types['CiRunner'] do
|
2021-05-04 12:10:04 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('CiRunner') }
|
|
|
|
|
2021-06-14 21:10:22 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_runner) }
|
|
|
|
|
2021-05-04 12:10:04 +00:00
|
|
|
it 'contains attributes related to a runner' do
|
|
|
|
expected_fields = %w[
|
2022-01-25 15:12:32 +00:00
|
|
|
id description created_at contacted_at maximum_timeout access_level active paused status
|
2021-05-04 12:10:04 +00:00
|
|
|
version short_sha revision locked run_untagged ip_address runner_type tag_list
|
2022-01-10 12:15:34 +00:00
|
|
|
project_count job_count admin_url edit_admin_url user_permissions executor_name
|
2022-01-29 03:15:22 +00:00
|
|
|
groups projects jobs
|
2021-05-04 12:10:04 +00:00
|
|
|
]
|
|
|
|
|
2021-06-14 21:10:22 +00:00
|
|
|
expect(described_class).to include_graphql_fields(*expected_fields)
|
2021-05-04 12:10:04 +00:00
|
|
|
end
|
|
|
|
end
|