//go:build integration package admin_test import ( "context" "os" "testing" "time" "github.com/zitadel/zitadel/internal/integration" ) var ( AdminCTX, SystemCTX context.Context Tester *integration.Tester ) func TestMain(m *testing.M) { os.Exit(func() int { ctx, _, cancel := integration.Contexts(3 * time.Minute) defer cancel() Tester = integration.NewTester(ctx) defer Tester.Done() AdminCTX = Tester.WithAuthorization(ctx, integration.IAMOwner) SystemCTX = Tester.WithAuthorization(ctx, integration.SystemUser) return m.Run() }()) }