Update conformance

This commit is contained in:
Joel Speed 2018-01-29 21:10:31 +00:00
parent 7fc3f230df
commit c789c5808e
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB
2 changed files with 28 additions and 38 deletions

View File

@ -91,7 +91,6 @@ func testAuthRequestCRUD(t *testing.T, s storage.Storage) {
LoggedIn: true, LoggedIn: true,
Expiry: neverExpire, Expiry: neverExpire,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",
@ -123,7 +122,6 @@ func testAuthRequestCRUD(t *testing.T, s storage.Storage) {
LoggedIn: true, LoggedIn: true,
Expiry: neverExpire, Expiry: neverExpire,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "2", UserID: "2",
Username: "john", Username: "john",
@ -172,7 +170,6 @@ func testAuthCodeCRUD(t *testing.T, s storage.Storage) {
Scopes: []string{"openid", "email"}, Scopes: []string{"openid", "email"},
Expiry: neverExpire, Expiry: neverExpire,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",
@ -194,7 +191,6 @@ func testAuthCodeCRUD(t *testing.T, s storage.Storage) {
Scopes: []string{"openid", "email"}, Scopes: []string{"openid", "email"},
Expiry: neverExpire, Expiry: neverExpire,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "2", UserID: "2",
Username: "john", Username: "john",
@ -323,7 +319,6 @@ func testRefreshTokenCRUD(t *testing.T, s storage.Storage) {
EmailVerified: true, EmailVerified: true,
Groups: []string{"a", "b"}, Groups: []string{"a", "b"},
}, },
ConnectorData: []byte(`{"some":"data"}`),
} }
if err := s.CreateRefresh(refresh); err != nil { if err := s.CreateRefresh(refresh); err != nil {
t.Fatalf("create refresh token: %v", err) t.Fatalf("create refresh token: %v", err)
@ -377,7 +372,6 @@ func testRefreshTokenCRUD(t *testing.T, s storage.Storage) {
EmailVerified: true, EmailVerified: true,
Groups: []string{"a", "b"}, Groups: []string{"a", "b"},
}, },
ConnectorData: []byte(`{"some":"data"}`),
} }
if err := s.CreateRefresh(refresh2); err != nil { if err := s.CreateRefresh(refresh2); err != nil {
@ -736,7 +730,6 @@ func testGC(t *testing.T, s storage.Storage) {
Scopes: []string{"openid", "email"}, Scopes: []string{"openid", "email"},
Expiry: expiry, Expiry: expiry,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",
@ -788,7 +781,6 @@ func testGC(t *testing.T, s storage.Storage) {
LoggedIn: true, LoggedIn: true,
Expiry: expiry, Expiry: expiry,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",
@ -848,7 +840,6 @@ func testTimezones(t *testing.T, s storage.Storage) {
Scopes: []string{"openid", "email"}, Scopes: []string{"openid", "email"},
Expiry: expiry, Expiry: expiry,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",

View File

@ -67,7 +67,6 @@ func testAuthRequestConcurrentUpdate(t *testing.T, s storage.Storage) {
LoggedIn: true, LoggedIn: true,
Expiry: neverExpire, Expiry: neverExpire,
ConnectorID: "ldap", ConnectorID: "ldap",
ConnectorData: []byte(`{"some":"data"}`),
Claims: storage.Claims{ Claims: storage.Claims{
UserID: "1", UserID: "1",
Username: "jane", Username: "jane",