Skip to content

Commit

Permalink
address comments and add missing test back
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Mar 14, 2024
1 parent 09749eb commit c4fae25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ envoyPatchPolicies:
namespace: "default"
jsonPatches:
- type: "type.googleapis.com/envoy.config.listener.v3.Listener"
name: "non-existant-listener"
name: "non-existing-listener"
operation:
op: "add"
path: "/default_filter_chain/filters/0/typed_config/http_filters/0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace: default
conditions:
- lastTransitionTime: null
message: 'Unable to find xds resources: type.googleapis.com/envoy.config.listener.v3.Listener/non-existant-listener'
message: 'Unable to find xds resources: type.googleapis.com/envoy.config.listener.v3.Listener/non-existing-listener'
reason: ResourceNotFound
status: "False"
type: Programmed
Expand Down
3 changes: 3 additions & 0 deletions internal/xds/translator/translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ func TestTranslateXdsNegative(t *testing.T) {
{
name: "jsonpatch-invalid",
},
{
name: "jsonpatch-invalid-listener",
},
{
name: "accesslog-invalid",
},
Expand Down

0 comments on commit c4fae25

Please sign in to comment.