Skip to content

Commit

Permalink
Update expectedState and Level in apps_test.go for deprecated ingress…
Browse files Browse the repository at this point in the history
… and registry
  • Loading branch information
rbjornstad committed Mar 1, 2024
1 parent 382a66b commit e4192c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/k8s/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}},
},
{
Expand All @@ -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,
}},
},
}
Expand Down

0 comments on commit e4192c1

Please sign in to comment.