mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:34:04 +00:00
feat: Integration tests for CreateInstance v2 endpoint (#9452)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package instance_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/integration"
|
||||
)
|
||||
|
||||
var (
|
||||
CTXWithSysAuthZ context.Context
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Exit(func() int {
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
|
||||
defer cancel()
|
||||
|
||||
CTXWithSysAuthZ = integration.WithSystemAuthorization(ctx)
|
||||
|
||||
return m.Run()
|
||||
}())
|
||||
}
|
||||
Reference in New Issue
Block a user