diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 21:15:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 21:15:00 +0300 |
commit | 14059114eb35b29cf83aa1b715158c96c55ab388 (patch) | |
tree | b9b96e6bb66e3b1caf900bdce664a234087a4848 /spec/lib/gitlab/import | |
parent | ee7db70e1185876e97eca97ce8efabfc64c360b9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/import')
-rw-r--r-- | spec/lib/gitlab/import/metrics_spec.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/spec/lib/gitlab/import/metrics_spec.rb b/spec/lib/gitlab/import/metrics_spec.rb index 1a988af0dbd..9a7eb7b875e 100644 --- a/spec/lib/gitlab/import/metrics_spec.rb +++ b/spec/lib/gitlab/import/metrics_spec.rb @@ -42,11 +42,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do it 'does not emit importer metrics' do expect(subject).not_to receive(:track_usage_event) expect_no_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'failed' } + import_type: 'github', state: 'failed' ) subject.track_failed_import @@ -65,11 +65,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do subject.track_failed_import expect_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'failed' } + import_type: 'github', state: 'failed' ) end end @@ -102,11 +102,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do subject.track_finished_import expect_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'completed' } + import_type: 'github', state: 'completed' ) expect(subject.duration).not_to be_nil @@ -123,11 +123,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do subject.track_finished_import expect_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'partially completed' } + import_type: 'github', state: 'partially completed' ) end end @@ -140,11 +140,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do subject.track_finished_import expect_no_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'completed' } + import_type: 'github', state: 'completed' ) end end @@ -155,11 +155,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do it 'does not emit importer metrics' do expect(subject).not_to receive(:track_usage_event) expect_no_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'canceled' } + import_type: 'github', state: 'canceled' ) subject.track_canceled_import @@ -178,11 +178,11 @@ RSpec.describe Gitlab::Import::Metrics, :aggregate_failures do subject.track_canceled_import expect_snowplow_event( - category: :test_importer, + category: 'Import::GithubService', action: 'create', label: 'github_import_project_state', project: project, - extra: { import_type: 'github', state: 'canceled' } + import_type: 'github', state: 'canceled' ) end end |