Files
threshold/internal/daemon/controller/handlers/targets/testing.go
T

19 lines
451 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package targets
import (
"testing"
)
// SetupSuiteTargetFilters is used to ensure that OSS tests run from the ENT repo use the OSS level of target filtering
func SetupSuiteTargetFilters(t *testing.T) {
oldFn := AuthorizeSessionWorkerFilterFn
AuthorizeSessionWorkerFilterFn = AuthorizeSessionWithWorkerFilter
t.Cleanup(func() {
AuthorizeSessionWorkerFilterFn = oldFn
})
}