debian-mirror-gitlab/spec/graphql/types/error_tracking/sentry_detailed_error_type_spec.rb

43 lines
902 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['SentryDetailedError'] do
it { expect(described_class.graphql_name).to eq('SentryDetailedError') }
it { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
it 'exposes the expected fields' do
expected_fields = %i[
id
sentryId
title
type
userCount
count
firstSeen
lastSeen
message
culprit
externalUrl
2020-03-13 15:44:24 +05:30
externalBaseUrl
2020-01-01 13:55:28 +05:30
sentryProjectId
sentryProjectName
sentryProjectSlug
shortId
status
frequency
firstReleaseLastCommit
lastReleaseLastCommit
firstReleaseShortVersion
lastReleaseShortVersion
2020-03-13 15:44:24 +05:30
gitlabIssuePath
gitlabCommit
gitlabCommitPath
tags
2020-01-01 13:55:28 +05:30
]
2020-04-22 19:07:51 +05:30
expect(described_class).to have_graphql_fields(*expected_fields)
2020-01-01 13:55:28 +05:30
end
end