mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 02:46:30 +02:00
18 lines
327 B
Go
18 lines
327 B
Go
package identity_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/pomerium/pomerium/pkg/grpc/identity"
|
|
)
|
|
|
|
func TestHash(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
p1 := &identity.Provider{Id: "id1"}
|
|
p2 := &identity.Provider{Id: "id2"}
|
|
|
|
assert.Equal(t, p1.Hash(), p2.Hash(), "should ignore ids for hash")
|
|
}
|