mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
envoyconfig: clean up filter chain construction (#3844)
* cleanup filter chain construction * rename domains to server names * rename to hosts * fix tests * update function name * improved domaain matching
This commit is contained in:
parent
a49f86d023
commit
67e12101fa
10 changed files with 405 additions and 246 deletions
|
@ -166,3 +166,9 @@ func TestJoin(t *testing.T) {
|
|||
assert.Equal(t, "/x/y/z/", Join("/x", "/y/z/"))
|
||||
assert.Equal(t, "/x/y/z/", Join("/x/", "/y/z/"))
|
||||
}
|
||||
|
||||
func TestMatchesServerName(t *testing.T) {
|
||||
t.Run("wildcard", func(t *testing.T) {
|
||||
assert.True(t, MatchesServerName(MustParseAndValidateURL("https://domain.example.com"), "*.example.com"))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue