Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Feb 4, 2024
1 parent 3671026 commit 829768b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/consumer/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,15 @@ func TestConsumerInitConfigs(t *testing.T) {
name: "ok",
consumer: Consumer{
Auth: map[string]string{
"keyAuth": "{\"key\": \"test\"}",
"keyAuth": `{"key": "test", "unknown_fields":"should be ignored"}`,
},
Filters: map[string]*model.FilterConfig{
"opa": {
Config: map[string]interface{}{
"remote": map[string]interface{}{
"url": "http://opa:8181",
"policy": "t",
"url": "http://opa:8181",
"policy": "t",
"unknown_fields": "should be ignored",
},
},
},
Expand All @@ -141,7 +142,7 @@ func TestConsumerInitConfigs(t *testing.T) {
"keyAuth": "{\"key2\": \"test\"}",
},
},
err: "failed to unmarshal consumer config for plugin keyAuth",
err: "invalid ConsumerConfig.Key",
},
{
name: "unknown plugin",
Expand Down

0 comments on commit 829768b

Please sign in to comment.