mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-17 11:07:18 +02:00
integration: check for profile cookies (#4847)
Update the authentication flow integration test to verify that the pomerium_identity_profile cookies are not present for the stateful authentication flow.
This commit is contained in:
parent
fe46ed33f4
commit
a6ae9d3f2d
3 changed files with 31 additions and 0 deletions
|
@ -1,11 +1,23 @@
|
|||
package slices
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestMap(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
in := []string{"one", "two", "three", "four"}
|
||||
|
||||
assert.Equal(t, []string{"ONE", "TWO", "THREE", "FOUR"}, Map(in, strings.ToUpper))
|
||||
|
||||
stringLen := func(s string) int { return len(s) }
|
||||
assert.Equal(t, []int{3, 3, 5, 4}, Map(in, stringLen))
|
||||
}
|
||||
|
||||
func TestReverse(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue