Skip to content

Commit

Permalink
Check that dont-fetch is not in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Eckert committed Jul 22, 2022
1 parent 33890f4 commit 236abf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/cmd/proxy/list/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ func TestListCommandOutput(t *testing.T) {
"consul.*api-gateway.*Sidecar",
"default.*pod1.*Sidecar",
}
notExpected := []string{
"default.*dont-fetch.*Sidecar",
}

pods := []v1.Pod{
{
Expand Down Expand Up @@ -300,6 +303,9 @@ func TestListCommandOutput(t *testing.T) {
for _, expression := range expected {
require.Regexp(t, expression, actual)
}
for _, expression := range notExpected {
require.NotRegexp(t, expression, actual)
}
}

func setupCommand(buf io.Writer) *ListCommand {
Expand Down

0 comments on commit 236abf7

Please sign in to comment.