Commit 199f6060 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'dz-error-tracking-api-refactor' into 'master'

Rename error tracking api files

See merge request gitlab-org/gitlab!70939
parents 60b96837 53acf67c
......@@ -171,9 +171,9 @@ module API
mount ::API::DeployTokens
mount ::API::Deployments
mount ::API::Environments
mount ::API::ErrorTracking
mount ::API::ErrorTrackingClientKeys
mount ::API::ErrorTrackingCollector
mount ::API::ErrorTracking::ClientKeys
mount ::API::ErrorTracking::Collector
mount ::API::ErrorTracking::ProjectSettings
mount ::API::Events
mount ::API::FeatureFlags
mount ::API::FeatureFlagsUserLists
......
# frozen_string_literal: true
module API
class ErrorTrackingClientKeys < ::API::Base
class ErrorTracking::ClientKeys < ::API::Base
before { authenticate! }
feature_category :error_tracking
......
......@@ -4,7 +4,7 @@ module API
# This API is responsible for collecting error tracking information
# from sentry client. It allows us to use GitLab as an alternative to
# sentry backend. For more details see https://gitlab.com/gitlab-org/gitlab/-/issues/329596.
class ErrorTrackingCollector < ::API::Base
class ErrorTracking::Collector < ::API::Base
feature_category :error_tracking
content_type :envelope, 'application/x-sentry-envelope'
......
# frozen_string_literal: true
module API
class ErrorTracking < ::API::Base
class ErrorTracking::ProjectSettings < ::API::Base
before { authenticate! }
feature_category :error_tracking
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe API::ErrorTrackingClientKeys do
RSpec.describe API::ErrorTracking::ClientKeys do
let_it_be(:guest) { create(:user) }
let_it_be(:maintainer) { create(:user) }
let_it_be(:setting) { create(:project_error_tracking_setting) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe API::ErrorTrackingCollector do
RSpec.describe API::ErrorTracking::Collector do
let_it_be(:project) { create(:project, :private) }
let_it_be(:setting) { create(:project_error_tracking_setting, :integrated, project: project) }
let_it_be(:client_key) { create(:error_tracking_client_key, project: project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe API::ErrorTracking do
RSpec.describe API::ErrorTracking::ProjectSettings do
let_it_be(:user) { create(:user) }
let(:setting) { create(:project_error_tracking_setting) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment