Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Daich <guy.daich@sap.com>
  • Loading branch information
guydc committed Feb 23, 2024
1 parent 30fcf6b commit 87fbdfe
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,24 @@ http:
- endpoints:
- host: "1.2.3.4"
port: 50000
- name: "second-route-defaults"
hostname: "foo"
retry: {}
destination:
name: "first-route-dest"
settings:
- endpoints:
- host: "1.2.3.4"
port: 50000
- name: "third-route-error"
hostname: "bar"
retry:
retryOn:
triggers:
- this-is-not-a-trigger
destination:
name: "first-route-dest"
settings:
- endpoints:
- host: "1.2.3.4"
port: 50000
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@
baseInterval: 0.100s
maxInterval: 10s
retryOn: connect-failure,retriable-status-codes
- domains:
- foo
name: first-listener/foo
routes:
- match:
prefix: /
name: second-route-defaults
route:
cluster: first-route-dest
retryPolicy:
numRetries: 2
retriableStatusCodes:
- 503
retryOn: connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes
- domains:
- bar
name: first-listener/bar
2 changes: 1 addition & 1 deletion internal/xds/translator/translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func TestTranslateXds(t *testing.T) {
name: "client-timeout",
},
{
name: "retry",
name: "retry-partial-invalid",
},
}

Expand Down

0 comments on commit 87fbdfe

Please sign in to comment.