mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 00:17:34 +02:00
core/redis: remove redis (#4768)
* core/redis: remove redis * 20 minute max wait
This commit is contained in:
parent
d610b9c25c
commit
bcddbff6e1
27 changed files with 24 additions and 1187 deletions
|
@ -271,12 +271,12 @@ func TestPolicy_Matches(t *testing.T) {
|
|||
})
|
||||
t.Run("tcp", func(t *testing.T) {
|
||||
p := &Policy{
|
||||
From: "tcp+https://proxy.example.com/redis.example.com:6379",
|
||||
From: "tcp+https://proxy.example.com/tcp.example.com:6379",
|
||||
To: mustParseWeightedURLs(t, "tcp://localhost:6379"),
|
||||
}
|
||||
assert.NoError(t, p.Validate())
|
||||
|
||||
assert.True(t, p.Matches(urlutil.MustParseAndValidateURL(`https://redis.example.com:6379`)))
|
||||
assert.True(t, p.Matches(urlutil.MustParseAndValidateURL(`https://tcp.example.com:6379`)))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue