mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 08:07:38 +02:00
Fix some missing coverage
This commit is contained in:
parent
dc2eb9668c
commit
af254882e6
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ func TestNew(t *testing.T) {
|
||||||
{"bad shared secret", "AZA85podM73CjLCjViDNz1EUvvejKpWp7Hysr0knXA==", policies, true},
|
{"bad shared secret", "AZA85podM73CjLCjViDNz1EUvvejKpWp7Hysr0knXA==", policies, true},
|
||||||
{"really bad shared secret", "sup", policies, true},
|
{"really bad shared secret", "sup", policies, true},
|
||||||
{"validation error, short secret", "AZA85podM73CjLCjViDNz1EUvvejKpWp7Hysr0knXA==", policies, true},
|
{"validation error, short secret", "AZA85podM73CjLCjViDNz1EUvvejKpWp7Hysr0knXA==", policies, true},
|
||||||
{"nil options", "", []policy.Policy{}, true}, // special case
|
{"nil options", "", []policy.Policy{}, true}, // special case
|
||||||
|
{"missing policies", "gXK6ggrlIW2HyKyUF9rUO4azrDgxhDPWqw9y+lJU7B8=", []policy.Policy{}, true}, // special case
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue