diff --git a/internal/xds/translator/testdata/in/xds-ir/jsonpatch-missing-resource.yaml b/internal/xds/translator/testdata/in/xds-ir/jsonpatch-missing-resource.yaml index d795390537f..3f50ddf7aaf 100644 --- a/internal/xds/translator/testdata/in/xds-ir/jsonpatch-missing-resource.yaml +++ b/internal/xds/translator/testdata/in/xds-ir/jsonpatch-missing-resource.yaml @@ -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" diff --git a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.envoypatchpolicies.yaml b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.envoypatchpolicies.yaml index 61f2babddbb..588e293507d 100644 --- a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.envoypatchpolicies.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.envoypatchpolicies.yaml @@ -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 diff --git a/internal/xds/translator/translator_test.go b/internal/xds/translator/translator_test.go index bd935e6139e..e0737a0df6f 100644 --- a/internal/xds/translator/translator_test.go +++ b/internal/xds/translator/translator_test.go @@ -377,6 +377,9 @@ func TestTranslateXdsNegative(t *testing.T) { { name: "jsonpatch-invalid", }, + { + name: "jsonpatch-invalid-listener", + }, { name: "accesslog-invalid", },