Chore: assign owner for prometheusAzureOverrideAudience (#64620)

assign the last owner
This commit is contained in:
Artur Wierzbicki 2023-03-13 16:56:55 +04:00 committed by GitHub
parent c363a81806
commit 08f2791b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 17 deletions

View File

@ -69,6 +69,7 @@ var (
Name: "prometheusAzureOverrideAudience",
Description: "Experimental. Allow override default AAD audience for Azure Prometheus endpoint",
State: FeatureStateBeta,
Owner: grafanaObservabilityMetricsSquad,
},
{
Name: "publicDashboards",

View File

@ -41,26 +41,10 @@ func TestFeatureToggleFiles(t *testing.T) {
}
})
ownerlessFeatures := map[string]bool{
"prometheusAzureOverrideAudience": true,
}
t.Run("all new features should have an owner", func(t *testing.T) {
for _, flag := range standardFeatureFlags {
if flag.Owner == "" {
if _, ok := ownerlessFeatures[flag.Name]; !ok {
t.Errorf("feature %s does not have an owner", flag.Name)
}
}
}
})
t.Run("features with assigned owner should not be on the ownerless list", func(t *testing.T) {
for _, flag := range standardFeatureFlags {
if flag.Owner != "" {
if _, ok := ownerlessFeatures[flag.Name]; ok {
t.Errorf("feature %s should be removed from the ownerless list", flag.Name)
}
t.Errorf("feature %s does not have an owner. please fill the FeatureFlag.Owner property", flag.Name)
}
}
})