summaryrefslogtreecommitdiff
path: root/spec/graphql/types/clusters/agent_activity_event_type_spec.rb
blob: 7773bad749d5ba6f638f20d0137a7246544b190a (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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') }
  it { expect(described_class).to require_graphql_authorizations(:admin_cluster) }
  it { expect(described_class).to have_graphql_fields(fields) }
end