-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a45080c
commit e218344
Showing
5 changed files
with
15 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ func TestUsersGetCount100EmptyResult(t *testing.T) { | |
t.Fatalf("cannot empty user store") | ||
} | ||
|
||
s := New(storage, userStore, "token", nil, nil) | ||
s := New(storage, userStore, "token") | ||
req := httptest.NewRequest("GET", "http://example.com/api/scim/v2/Users?count=100&startIndex=1&", nil) | ||
w := httptest.NewRecorder() | ||
s.GetUsersHandler(w, req) | ||
|
@@ -64,7 +64,7 @@ func TestUsersGetCount10(t *testing.T) { | |
if err != nil { | ||
t.Fatalf("cannot create users: %s", err) | ||
} | ||
s := New(storage, userStore, "token", nil, nil) | ||
s := New(storage, userStore, "token") | ||
req := httptest.NewRequest("GET", "http://example.com/api/scim/v2/Users?count=10&startIndex=1&", nil) | ||
w := httptest.NewRecorder() | ||
s.GetUsersHandler(w, req) | ||
|
@@ -104,7 +104,7 @@ func TestUsersGetCount10Start5(t *testing.T) { | |
if err != nil { | ||
t.Fatalf("cannot create users: %s", err) | ||
} | ||
s := New(storage, userStore, "token", nil, nil) | ||
s := New(storage, userStore, "token") | ||
req := httptest.NewRequest("GET", fmt.Sprintf("http://example.com/api/scim/v2/Users?count=%d&startIndex=%d&", count, start), nil) | ||
w := httptest.NewRecorder() | ||
s.GetUsersHandler(w, req) | ||
|
@@ -139,7 +139,7 @@ func TestUsersGetNonExistentUser(t *testing.T) { | |
t.Fatalf("cannot create new user stoer") | ||
} | ||
|
||
s := New(&memorystorage.MockMemoryStorage{}, userStore, "token", nil, nil) | ||
s := New(&memorystorage.MockMemoryStorage{}, userStore, "token") | ||
req := httptest.NewRequest("GET", "http://example.com/api/scim/v2/Users?filter=userName+eq+%22ward%40in4it.io%22&", nil) | ||
w := httptest.NewRecorder() | ||
s.GetUsersHandler(w, req) | ||
|
@@ -166,7 +166,7 @@ func TestAddUser(t *testing.T) { | |
if err != nil { | ||
t.Fatalf("cannot empty user store") | ||
} | ||
s := New(storage, userStore, "token", nil, nil) | ||
s := New(storage, userStore, "token") | ||
payload := PostUserRequest{ | ||
UserName: "[email protected]", | ||
Name: Name{ | ||
|
This file was deleted.
Oops, something went wrong.