Commit e4402f21 authored by James Fargher's avatar James Fargher

Merge branch 'add-missing-known-event-ecs-deploy-template' into 'master'

Fix missing known usage data event

See merge request gitlab-org/gitlab!53729
parents e87ba5e6 f5074c04
---
title: Fix missing known usage data event
merge_request: 53729
author:
type: fixed
......@@ -603,6 +603,11 @@
redis_slot: ci_templates
aggregation: weekly
feature_flag: usage_data_track_ci_templates_unique_projects
- name: p_ci_templates_aws_deploy_ecs
category: ci_templates
redis_slot: ci_templates
aggregation: weekly
feature_flag: usage_data_track_ci_templates_unique_projects
- name: p_ci_templates_auto_devops_build
category: ci_templates
redis_slot: ci_templates
......
......@@ -7,7 +7,11 @@
RSpec.shared_examples 'tracking unique hll events' do |feature_flag|
it 'tracks unique event' do
expect(Gitlab::UsageDataCounters::HLLRedisCounter).to receive(:track_event).with(target_id, values: expected_type)
expect(Gitlab::UsageDataCounters::HLLRedisCounter).to(
receive(:track_event)
.with(target_id, values: expected_type)
.and_call_original # we call original to trigger additional validations; otherwise the method is stubbed
)
request
end
......
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