2021-09-23 03:09:49 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe GitlabSchema.types['ClusterAgent'] do
|
2021-12-01 09:10:25 +00:00
|
|
|
let(:fields) { %i[created_at created_by_user id name project updated_at tokens web_path connections activity_events] }
|
2021-09-23 03:09:49 +00:00
|
|
|
|
|
|
|
it { expect(described_class.graphql_name).to eq('ClusterAgent') }
|
|
|
|
|
2022-01-28 00:14:06 +00:00
|
|
|
it { expect(described_class).to require_graphql_authorizations(:read_cluster) }
|
2021-09-23 03:09:49 +00:00
|
|
|
|
|
|
|
it { expect(described_class).to have_graphql_fields(fields) }
|
|
|
|
end
|