fix: delete provisioned dashboard in unified if forceDeleteRules is set (#113839)

This commit is contained in:
Rafael Bortolon Paulovic
2025-11-14 14:11:05 +01:00
committed by GitHub
parent c2b15ca786
commit 5a111bc087
5 changed files with 189 additions and 2 deletions
+7 -1
View File
@@ -106,7 +106,13 @@ func NewK8sTestHelper(t *testing.T, opts testinfra.GrafanaOpts) *K8sTestHelper {
// Always enable `FlagAppPlatformGrpcClientAuth` for k8s integration tests, as this is the desired behavior.
// The flag only exists to support the transition from the old to the new behavior in dev/ops/prod.
opts.EnableFeatureToggles = append(opts.EnableFeatureToggles, featuremgmt.FlagAppPlatformGrpcClientAuth)
dir, path := testinfra.CreateGrafDir(t, opts)
var (
dir = opts.Dir
path = opts.DirPath
)
if opts.Dir == "" && opts.DirPath == "" {
dir, path = testinfra.CreateGrafDir(t, opts)
}
listenerAddress, env := testinfra.StartGrafanaEnv(t, dir, path)
c := &K8sTestHelper{