diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-01 00:08:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-01 00:08:52 +0300 |
commit | d5d3c03598df712550acf0c6463a61c6e7dcc19e (patch) | |
tree | d0fdf0f9cd6df46aea6ed16b6556f44055efb642 /spec/graphql | |
parent | 0434f38ef1dce4fe640fe1e4542235746ceb943c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql')
3 files changed, 39 insertions, 0 deletions
diff --git a/spec/graphql/types/error_tracking/sentry_error_collection_type_spec.rb b/spec/graphql/types/error_tracking/sentry_error_collection_type_spec.rb index 1e6b7f89c08..3de0a359c15 100644 --- a/spec/graphql/types/error_tracking/sentry_error_collection_type_spec.rb +++ b/spec/graphql/types/error_tracking/sentry_error_collection_type_spec.rb @@ -12,6 +12,7 @@ describe GitlabSchema.types['SentryErrorCollection'] do errors detailed_error external_url + error_stack_trace ] is_expected.to have_graphql_fields(*expected_fields) diff --git a/spec/graphql/types/error_tracking/sentry_error_stack_trace_entry_type_spec.rb b/spec/graphql/types/error_tracking/sentry_error_stack_trace_entry_type_spec.rb new file mode 100644 index 00000000000..ce5fade6fcc --- /dev/null +++ b/spec/graphql/types/error_tracking/sentry_error_stack_trace_entry_type_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe GitlabSchema.types['SentryErrorStackTraceEntry'] do + it { expect(described_class.graphql_name).to eq('SentryErrorStackTraceEntry') } + + it 'exposes the expected fields' do + expected_fields = %i[ + function + col + line + file_name + trace_context + ] + + is_expected.to have_graphql_fields(*expected_fields) + end +end diff --git a/spec/graphql/types/error_tracking/sentry_error_stack_trace_type_spec.rb b/spec/graphql/types/error_tracking/sentry_error_stack_trace_type_spec.rb new file mode 100644 index 00000000000..ac41e6903e5 --- /dev/null +++ b/spec/graphql/types/error_tracking/sentry_error_stack_trace_type_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe GitlabSchema.types['SentryErrorStackTrace'] do + it { expect(described_class.graphql_name).to eq('SentryErrorStackTrace') } + + it { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) } + + it 'exposes the expected fields' do + expected_fields = %i[ + issue_id + date_received + stack_trace_entries + ] + + is_expected.to have_graphql_fields(*expected_fields) + end +end |