From 1f8b51cfa6beb4ae3e5860f5aed77d1498453121 Mon Sep 17 00:00:00 2001 From: panapol-p Date: Mon, 24 Jun 2024 00:15:02 +0700 Subject: [PATCH] feat: add new error handling for user not found --- charts/zitadel/acceptance/accessibility.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/zitadel/acceptance/accessibility.go b/charts/zitadel/acceptance/accessibility.go index f864f3a6..d489d9de 100644 --- a/charts/zitadel/acceptance/accessibility.go +++ b/charts/zitadel/acceptance/accessibility.go @@ -5,13 +5,14 @@ import ( "crypto/x509" "errors" "fmt" - mgmt_api "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/management" "net/http" "strconv" "strings" "sync" "time" + mgmt_api "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/management" + "github.com/gruntwork-io/terratest/modules/k8s" corev1 "k8s.io/api/core/v1" ) @@ -87,7 +88,9 @@ func (s *ConfigurationTest) checkAccessibility(pods []corev1.Pod) { } _, err = conn.Healthz(ctx, &mgmt_api.HealthzRequest{}) // TODO: Why is the key checked on the healthz RPC? - if strings.Contains(err.Error(), "Errors.AuthNKey.NotFound") || strings.Contains(err.Error(), "assertion invalid") { + if strings.Contains(err.Error(), "Errors.AuthNKey.NotFound") || + strings.Contains(err.Error(), "Errors.User.NotFound") || + strings.Contains(err.Error(), "assertion invalid") { err = nil } return err