mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 08:57: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
|
@ -22,6 +22,16 @@ func Filter[S ~[]E, E any](s S, f func(E) bool) S {
|
|||
return ns
|
||||
}
|
||||
|
||||
// Map constructs a new slice containing the elements obtained by invoking the
|
||||
// function f on each element of s.
|
||||
func Map[S ~[]E, E, T any](s S, f func(E) T) []T {
|
||||
ns := make([]T, len(s))
|
||||
for i := range s {
|
||||
ns[i] = f(s[i])
|
||||
}
|
||||
return ns
|
||||
}
|
||||
|
||||
// Remove removes e from s.
|
||||
func Remove[S ~[]E, E comparable](s S, e E) S {
|
||||
var ns S
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue