fix: enable contains rule from testifylint in module `k8s.io/kubectl`

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Kubernetes-commit: 1e7bd5541ea20b41d961f1bb88d9cc958a69ff66
This commit is contained in:
Matthieu MOREL 2024-09-22 11:56:01 +02:00 committed by Kubernetes Publisher
parent f92e952318
commit cfb4ff091f
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func createUnstructured(t *testing.T, config string) *unstructured.Unstructured
t.Helper()
result := map[string]interface{}{}
require.False(t, strings.Contains(config, "\t"), "Yaml %s cannot contain tabs", config)
require.NotContains(t, config, "\t", "Yaml %s cannot contain tabs", config)
require.NoError(t, yaml.Unmarshal([]byte(config), &result), "Could not parse config:\n\n%s\n", config)
return &unstructured.Unstructured{