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

agent_type_spec.rb « clusters « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3f4faccf15da069e0497a4e1f7df4dc71ce6d45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['ClusterAgent'] do
  let(:fields) { %i[created_at created_by_user id name project updated_at tokens web_path connections activity_events] }

  it { expect(described_class.graphql_name).to eq('ClusterAgent') }

  it { expect(described_class).to require_graphql_authorizations(:read_cluster) }

  it { expect(described_class).to have_graphql_fields(fields) }
end