2020-01-31 21:08:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['SentryErrorStackTrace'] do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('SentryErrorStackTrace') }
|
2020-01-31 21:08:52 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
|
2020-01-31 21:08:52 +00:00
|
|
|
|
|
|
|
it 'exposes the expected fields' do
|
|
|
|
expected_fields = %i[
|
|
|
|
issue_id
|
|
|
|
date_received
|
|
|
|
stack_trace_entries
|
|
|
|
]
|
|
|
|
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
2020-01-31 21:08:52 +00:00
|
|
|
end
|
|
|
|
end
|