zitadel/internal/api/grpc/admin/information_integration_test.go

36 lines
623 B
Go
Raw Normal View History

//go:build integration
2023-04-25 15:04:35 +03:00
package admin_test
import (
"context"
"os"
"testing"
"time"
"github.com/stretchr/testify/require"
2023-04-25 15:04:35 +03:00
"github.com/zitadel/zitadel/internal/integration"
"github.com/zitadel/zitadel/pkg/grpc/admin"
2023-04-25 15:04:35 +03:00
)
var (
Tester *integration.Tester
)
func TestMain(m *testing.M) {
os.Exit(func() int {
2023-04-28 14:39:53 +03:00
ctx, _, cancel := integration.Contexts(time.Minute)
2023-04-25 15:04:35 +03:00
defer cancel()
Tester = integration.NewTester(ctx)
2023-04-25 15:04:35 +03:00
defer Tester.Done()
return m.Run()
}())
}
func TestServer_Healthz(t *testing.T) {
_, err := Tester.Client.Admin.Healthz(context.TODO(), &admin.HealthzRequest{})
require.NoError(t, err)
}