mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FeatureFlags: Do not allow spaces in descriptions (#68852)
This commit is contained in:
parent
900348f3d9
commit
07e794c312
@ -507,7 +507,7 @@ var (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "faroDatasourceSelector",
|
Name: "faroDatasourceSelector",
|
||||||
Description: "Enable the data source selector within the Frontend Apps section of the Frontend Observability ",
|
Description: "Enable the data source selector within the Frontend Apps section of the Frontend Observability",
|
||||||
State: FeatureStateBeta,
|
State: FeatureStateBeta,
|
||||||
FrontendOnly: true,
|
FrontendOnly: true,
|
||||||
Owner: appO11ySquad,
|
Owner: appO11ySquad,
|
||||||
|
@ -39,6 +39,12 @@ func TestFeatureToggleFiles(t *testing.T) {
|
|||||||
if flag.State == FeatureStateUnknown {
|
if flag.State == FeatureStateUnknown {
|
||||||
t.Errorf("standard toggles should not have an unknown state. See: %s", flag.Name)
|
t.Errorf("standard toggles should not have an unknown state. See: %s", flag.Name)
|
||||||
}
|
}
|
||||||
|
if flag.Description != strings.TrimSpace(flag.Description) {
|
||||||
|
t.Errorf("flag Description should not start/end with spaces. See: %s", flag.Name)
|
||||||
|
}
|
||||||
|
if flag.Name != strings.TrimSpace(flag.Name) {
|
||||||
|
t.Errorf("flag Name should not start/end with spaces. See: %s", flag.Name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user