2023-04-25 15:11:04 +00:00
|
|
|
//go:build integration
|
|
|
|
|
2023-04-25 12:04:35 +00:00
|
|
|
package admin_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
2023-04-25 15:11:04 +00:00
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
|
|
|
|
"github.com/zitadel/zitadel/pkg/grpc/admin"
|
2023-04-25 12:04:35 +00:00
|
|
|
)
|
|
|
|
|
2023-04-25 15:11:04 +00:00
|
|
|
func TestServer_Healthz(t *testing.T) {
|
2023-11-22 09:29:38 +00:00
|
|
|
ctx, cancel := context.WithTimeout(AdminCTX, time.Minute)
|
|
|
|
defer cancel()
|
2024-09-06 12:47:57 +00:00
|
|
|
_, err := Instance.Client.Admin.Healthz(ctx, &admin.HealthzRequest{})
|
2023-04-25 15:11:04 +00:00
|
|
|
require.NoError(t, err)
|
|
|
|
}
|