forked from draveness/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more tests for external service (istio#11752)
* add more tests * add an error msg * more tests * fix char * rename test yaml file * mark as unreachable for TLS protocol with VS * add another test * remove wikipedia in many tests * remove dash * .* not allowed at hosts ending * looks like no VS for TLS protocol too * rename per shriram comment * address comment * delete not needed file * typos * when host has * must provide endpoints * remove redundant data
- Loading branch information
1 parent
e24bb65
commit e2f1ea7
Showing
6 changed files
with
191 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/e2e/tests/pilot/testdata/networking/v1alpha3/wildcard-https-google-no-vs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: ServiceEntry | ||
metadata: | ||
name: wildcardgooglenovs | ||
spec: | ||
hosts: | ||
- "*.google.co.uk" | ||
- "*.google.co.in" | ||
endpoints: | ||
- address: google.co.uk | ||
- address: google.co.in | ||
location: MESH_EXTERNAL | ||
resolution: DNS | ||
ports: | ||
- number: 443 | ||
name: https | ||
protocol: HTTPS | ||
|
15 changes: 15 additions & 0 deletions
15
tests/e2e/tests/pilot/testdata/networking/v1alpha3/wildcard-https-multihosts-no-vs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: ServiceEntry | ||
metadata: | ||
name: googlebing | ||
spec: | ||
hosts: | ||
- www.google.com | ||
- "*.bing.com" | ||
ports: | ||
- number: 443 | ||
name: https | ||
protocol: HTTPS | ||
resolution: NONE | ||
location: MESH_EXTERNAL | ||
|
18 changes: 18 additions & 0 deletions
18
tests/e2e/tests/pilot/testdata/networking/v1alpha3/wildcard-tls-google-no-vs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: ServiceEntry | ||
metadata: | ||
name: wildcardgoogletls | ||
spec: | ||
hosts: | ||
- "*.google.co.uk" | ||
- "*.google.co.in" | ||
endpoints: | ||
- address: google.co.uk | ||
- address: google.co.in | ||
location: MESH_EXTERNAL | ||
resolution: DNS | ||
ports: | ||
- number: 443 | ||
name: https | ||
protocol: TLS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ spec: | |
host: '*.wikipedia.org' | ||
port: | ||
number: 443 | ||
weight: 100 | ||
weight: 100 |