Skip to content

Commit

Permalink
auto-activated support match exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
beastpu committed Jun 28, 2024
1 parent d5240b4 commit 55fb4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/skaffold/schema/profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func TestActivatedProfiles(t *testing.T) {
{Name: "regex-activated-substring-match", Activation: []latest.Activation{{Env: "KEY=^VAL"}}},
},
expected: []string{"activated", "also-activated", "regex-activated", "regex-activated-two", "regex-activated-substring-match"},
}, {
}, {
description: "Auto-activated by env variable which match exactly",
envs: map[string]string{"KEY": "VALUE_12"},
opts: cfg.SkaffoldOptions{
Expand All @@ -568,7 +568,7 @@ func TestActivatedProfiles(t *testing.T) {
{Name: "not-activated-two-as-exact", Activation: []latest.Activation{{Env: "KEY=VALUE_1", ExactMatch: true}}},
},
expected: []string{"activated"},
}, {
}, {
description: "Profile with multiple valid activations",
envs: map[string]string{"KEY": "VALUE"},
opts: cfg.SkaffoldOptions{
Expand Down

0 comments on commit 55fb4df

Please sign in to comment.