Add pathReplacement to config test

This commit is contained in:
MoofMonkey 2022-09-30 01:39:35 +03:00
parent 4d7d56e8f9
commit e5c248ff6f
1 changed files with 5 additions and 3 deletions

View File

@ -13,9 +13,10 @@ import (
func TestConfigFileSettings(t *testing.T) {
var (
firstIngress = UnvalidatedIngressRule{
Hostname: "tunnel1.example.com",
Path: "/id",
Service: "https://localhost:8000",
Hostname: "tunnel1.example.com",
Path: "/id",
PathReplacement: "/id",
Service: "https://localhost:8000",
}
secondIngress = UnvalidatedIngressRule{
Hostname: "*",
@ -45,6 +46,7 @@ originRequest:
ingress:
- hostname: tunnel1.example.com
path: /id
pathReplacement: /id
service: https://localhost:8000
- hostname: "*"
service: https://localhost:8001