2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe GitlabSchema.types['GrafanaIntegration'] do
|
2020-03-13 15:44:24 +05:30
|
|
|
let(:expected_fields) do
|
|
|
|
%i[
|
|
|
|
id
|
|
|
|
grafana_url
|
|
|
|
token
|
|
|
|
enabled
|
|
|
|
created_at
|
|
|
|
updated_at
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
specify { expect(described_class.graphql_name).to eq('GrafanaIntegration') }
|
2020-03-13 15:44:24 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:admin_operations) }
|
2020-03-13 15:44:24 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
specify { expect(described_class).to have_graphql_fields(*expected_fields) }
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|