Skip to content

Commit

Permalink
fix tests impacted by label addition refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com>
  • Loading branch information
katyanna committed Apr 17, 2024
1 parent 88bd22c commit 4f96727
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cmd/e2e/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ func replicas(value *int32) int32 {
}

func verifyStack(t *testing.T, stacksetName, currentVersion string, stacksetSpec zv1.StackSetSpec, subResourceAnnotations map[string]string) {
stackResourceLabels := map[string]string{stacksetHeritageLabelKey: stacksetName, stackVersionLabelKey: currentVersion}
stackResourceLabels := map[string]string{
stacksetHeritageLabelKey: stacksetName,
stackVersionLabelKey: currentVersion,
stacksetApplicationLabelKey: stacksetName,
}

// Verify stack
stack, err := waitForStack(t, stacksetName, currentVersion)
Expand Down
5 changes: 3 additions & 2 deletions cmd/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import (
type weightKind string

const (
stacksetHeritageLabelKey = "stackset"
stackVersionLabelKey = "stack-version"
stacksetHeritageLabelKey = "stackset"
stacksetApplicationLabelKey = "application"
stackVersionLabelKey = "stack-version"

weightKindDesired weightKind = "zalando.org/stack-traffic-weights"
weightKindActual weightKind = "zalando.org/backend-weights"
Expand Down

0 comments on commit 4f96727

Please sign in to comment.