diff --git a/pkg/checks/drupal/drushyamlcheck_test.go b/pkg/checks/drupal/drushyamlcheck_test.go index 9719395..1cc95d6 100644 --- a/pkg/checks/drupal/drushyamlcheck_test.go +++ b/pkg/checks/drupal/drushyamlcheck_test.go @@ -177,7 +177,7 @@ func TestDrushYamlCheckRunCheck(t *testing.T) { }, ExpectFails: []result.Breach{&result.KeyValueBreach{ BreachType: "key-value", - KeyLabel: "core.extension", + KeyLabel: "config:core.extension", Key: "profile", ValueLabel: "actual", Value: "minimal", diff --git a/pkg/checks/yaml/yaml.go b/pkg/checks/yaml/yaml.go index 948ba72..6f184c7 100644 --- a/pkg/checks/yaml/yaml.go +++ b/pkg/checks/yaml/yaml.go @@ -76,7 +76,7 @@ func (c *YamlBase) determineBreaches(configName string) { }) case KeyValueNotEqual: c.AddBreach(&result.KeyValueBreach{ - KeyLabel: configName, + KeyLabel: "config:" + configName, Key: kv.Key, ValueLabel: "actual", ExpectedValue: kv.Value, diff --git a/pkg/checks/yaml/yaml_test.go b/pkg/checks/yaml/yaml_test.go index 6e22bb0..8082c45 100644 --- a/pkg/checks/yaml/yaml_test.go +++ b/pkg/checks/yaml/yaml_test.go @@ -337,9 +337,9 @@ notification: c.Result.DetermineResultStatus(false) assert.Equal(result.Fail, c.Result.Status) assert.EqualValues(0, len(c.Result.Passes)) - assert.ElementsMatch([]result.Breach{&result.KeyValueBreach{ + assert.EqualValues([]result.Breach{&result.KeyValueBreach{ BreachType: result.BreachTypeKeyValue, - KeyLabel: "data", + KeyLabel: "config:data", Key: "check.interval_days", ValueLabel: "actual", Value: "7",