feat(event): Remove BOUNDARY_DEVELOPER_ENABLE_EVENTS env var
This commit is contained in:
1 parent
1af803780c
commit
4599e64cab
12 files changed
-79
No files matched your search
@@ -7,7 +7,6 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/boundary/globals"
|
||||
pbs "github.com/hashicorp/boundary/internal/gen/controller/api/services"
|
||||
"github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/groups"
|
||||
"github.com/hashicorp/eventlogger"
|
||||
@@ -15,20 +14,6 @@ import (
|
||||
"google.golang.org/protobuf/types/known/wrapperspb"
|
||||
)
|
||||
|
||||
// TestEnableEventing will enable eventing via it's envvar
|
||||
// globals.BOUNDARY_DEVELOPER_ENABLE_EVENTS
|
||||
func TestEnableEventing(t *testing.T, enable bool) {
|
||||
t.Helper()
|
||||
if enable {
|
||||
os.Setenv(globals.BOUNDARY_DEVELOPER_ENABLE_EVENTS, "true")
|
||||
t.Cleanup(func() {
|
||||
defer os.Unsetenv(globals.BOUNDARY_DEVELOPER_ENABLE_EVENTS)
|
||||
})
|
||||
} else {
|
||||
os.Unsetenv(globals.BOUNDARY_DEVELOPER_ENABLE_EVENTS)
|
||||
}
|
||||
}
|
||||
|
||||
// TestGetEventerConfig is a test accessor for the eventer's config
|
||||
func TestGetEventerConfig(t *testing.T, e *Eventer) EventerConfig {
|
||||
t.Helper()
|
||||
|
||||
Reference in new issue
Block a user