forked from mystiq/dex
Fix conformance tests
This commit is contained in:
parent
7a76c767fe
commit
b9b315dd64
1 changed files with 8 additions and 6 deletions
|
@ -509,9 +509,10 @@ func testPasswordCRUD(t *testing.T, s storage.Storage) {
|
||||||
func testOfflineSessionCRUD(t *testing.T, s storage.Storage) {
|
func testOfflineSessionCRUD(t *testing.T, s storage.Storage) {
|
||||||
userID1 := storage.NewID()
|
userID1 := storage.NewID()
|
||||||
session1 := storage.OfflineSessions{
|
session1 := storage.OfflineSessions{
|
||||||
UserID: userID1,
|
UserID: userID1,
|
||||||
ConnID: "Conn1",
|
ConnID: "Conn1",
|
||||||
Refresh: make(map[string]*storage.RefreshTokenRef),
|
Refresh: make(map[string]*storage.RefreshTokenRef),
|
||||||
|
ConnectorData: []byte(`{"some":"data"}`),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creating an OfflineSession with an empty Refresh list to ensure that
|
// Creating an OfflineSession with an empty Refresh list to ensure that
|
||||||
|
@ -526,9 +527,10 @@ func testOfflineSessionCRUD(t *testing.T, s storage.Storage) {
|
||||||
|
|
||||||
userID2 := storage.NewID()
|
userID2 := storage.NewID()
|
||||||
session2 := storage.OfflineSessions{
|
session2 := storage.OfflineSessions{
|
||||||
UserID: userID2,
|
UserID: userID2,
|
||||||
ConnID: "Conn2",
|
ConnID: "Conn2",
|
||||||
Refresh: make(map[string]*storage.RefreshTokenRef),
|
Refresh: make(map[string]*storage.RefreshTokenRef),
|
||||||
|
ConnectorData: []byte(`{"some":"data"}`),
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.CreateOfflineSessions(session2); err != nil {
|
if err := s.CreateOfflineSessions(session2); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue