Commit 0c2cb3c1 authored by Markus Koller's avatar Markus Koller

Merge branch 'instance_auto_devops_enabled_usage_ping' into 'master'

Add usage data of whether instance has Auto DevOps enabled

See merge request gitlab-org/gitlab!33811
parents 5bcd56e6 8c7ba769
---
title: Add whether instance has Auto DevOps enabled to usage ping
merge_request: 33811
author:
type: changed
......@@ -181,6 +181,7 @@ module Gitlab
def features_usage_data_ce
{
instance_auto_devops_enabled: alt_usage_data(fallback: nil) { Gitlab::CurrentSettings.auto_devops_enabled? },
container_registry_enabled: alt_usage_data(fallback: nil) { Gitlab.config.registry.enabled },
dependency_proxy_enabled: Gitlab.config.try(:dependency_proxy)&.enabled,
gitlab_shared_runners_enabled: alt_usage_data(fallback: nil) { Gitlab.config.gitlab_ci.shared_runners_enabled },
......
......@@ -211,7 +211,8 @@ describe Gitlab::UsageData, :aggregate_failures do
describe '#features_usage_data_ce' do
subject { described_class.features_usage_data_ce }
it 'gathers feature usage data' do
it 'gathers feature usage data', :aggregate_failures do
expect(subject[:instance_auto_devops_enabled]).to eq(Gitlab::CurrentSettings.auto_devops_enabled?)
expect(subject[:mattermost_enabled]).to eq(Gitlab.config.mattermost.enabled)
expect(subject[:signup_enabled]).to eq(Gitlab::CurrentSettings.allow_signup?)
expect(subject[:ldap_enabled]).to eq(Gitlab.config.ldap.enabled)
......
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