2021-12-01 09:10:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe GitlabSchema.types['ClusterAgentActivityEvent'] do
|
|
|
|
let(:fields) { %i[recorded_at kind level user agent_token] }
|
|
|
|
|
|
|
|
it { expect(described_class.graphql_name).to eq('ClusterAgentActivityEvent') }
|
2022-01-28 00:14:06 +00:00
|
|
|
it { expect(described_class).to require_graphql_authorizations(:read_cluster) }
|
2021-12-01 09:10:25 +00:00
|
|
|
it { expect(described_class).to have_graphql_fields(fields) }
|
|
|
|
end
|