Add pathReplacement to config test
This commit is contained in:
parent
4d7d56e8f9
commit
e5c248ff6f
|
@ -13,9 +13,10 @@ import (
|
||||||
func TestConfigFileSettings(t *testing.T) {
|
func TestConfigFileSettings(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
firstIngress = UnvalidatedIngressRule{
|
firstIngress = UnvalidatedIngressRule{
|
||||||
Hostname: "tunnel1.example.com",
|
Hostname: "tunnel1.example.com",
|
||||||
Path: "/id",
|
Path: "/id",
|
||||||
Service: "https://localhost:8000",
|
PathReplacement: "/id",
|
||||||
|
Service: "https://localhost:8000",
|
||||||
}
|
}
|
||||||
secondIngress = UnvalidatedIngressRule{
|
secondIngress = UnvalidatedIngressRule{
|
||||||
Hostname: "*",
|
Hostname: "*",
|
||||||
|
@ -45,6 +46,7 @@ originRequest:
|
||||||
ingress:
|
ingress:
|
||||||
- hostname: tunnel1.example.com
|
- hostname: tunnel1.example.com
|
||||||
path: /id
|
path: /id
|
||||||
|
pathReplacement: /id
|
||||||
service: https://localhost:8000
|
service: https://localhost:8000
|
||||||
- hostname: "*"
|
- hostname: "*"
|
||||||
service: https://localhost:8001
|
service: https://localhost:8001
|
||||||
|
|
Loading…
Reference in New Issue