mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 16:17:39 +02:00
cache : add cache service (#457)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
8a9cb0f803
commit
dccc7cd2ff
46 changed files with 1837 additions and 587 deletions
|
@ -84,6 +84,9 @@ func TestNew(t *testing.T) {
|
|||
badProvider := newTestOptions(t)
|
||||
badProvider.Provider = ""
|
||||
badProvider.CookieName = "C"
|
||||
badGRPCConn := newTestOptions(t)
|
||||
badGRPCConn.CacheURL = nil
|
||||
badGRPCConn.CookieName = "D"
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
@ -96,6 +99,7 @@ func TestNew(t *testing.T) {
|
|||
{"fails to validate", badRedirectURL, true},
|
||||
{"bad cookie name", badCookieName, true},
|
||||
{"bad provider", badProvider, true},
|
||||
{"bad cache url", badGRPCConn, true},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue