From e4192c13144ff9d8d8e54c2eecd071170abf0ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Bj=C3=B8rnstad?= Date: Fri, 1 Mar 2024 12:23:15 +0100 Subject: [PATCH] Update expectedState and Level in apps_test.go for deprecated ingress and registry --- internal/k8s/apps_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/k8s/apps_test.go b/internal/k8s/apps_test.go index f139a0cfe..6ea7978c8 100644 --- a/internal/k8s/apps_test.go +++ b/internal/k8s/apps_test.go @@ -125,10 +125,10 @@ func TestSetStatus(t *testing.T) { instanceStates: []model.InstanceState{model.InstanceStateRunning, model.InstanceStateRunning}, image: "docker.pkg.github.com/nais/myapp/myapp:1.0.0", ingresses: []string{"myapp.nav.cloud.nais.io"}, - expectedState: model.StateNotnais, + expectedState: model.StateNais, expectedErrors: []model.StateError{&model.DeprecatedRegistryError{ Revision: "1", - Level: model.ErrorLevelWarning, + Level: model.ErrorLevelTodo, }}, }, { @@ -137,10 +137,10 @@ func TestSetStatus(t *testing.T) { instanceStates: []model.InstanceState{model.InstanceStateRunning, model.InstanceStateRunning}, image: "europe-north1-docker.pkg.dev/nais-io/nais/images/myapp:1.0.0", ingresses: []string{"myapp.prod-gcp.nais.io"}, - expectedState: model.StateNotnais, + expectedState: model.StateNais, expectedErrors: []model.StateError{&model.DeprecatedIngressError{ Revision: "1", - Level: model.ErrorLevelWarning, + Level: model.ErrorLevelTodo, }}, }, }