fix tests, one more account present

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-10-28 11:39:10 +01:00
parent 0dc6c8c3c0
commit 9adbc3b5c7
3 changed files with 6 additions and 6 deletions
@@ -630,7 +630,7 @@ func TestListAccounts(t *testing.T) {
assert.NoError(t, err)
assert.IsType(t, &proto.ListAccountsResponse{}, resp)
assert.Equal(t, 8, len(resp.Accounts))
assert.Equal(t, 9, len(resp.Accounts))
assertResponseContainsUser(t, resp, getAccount("user1"))
assertResponseContainsUser(t, resp, getAccount("user2"))
@@ -642,8 +642,8 @@ func TestListWithoutUserCreation(t *testing.T) {
resp, err := listAccounts(t)
assert.NoError(t, err)
// Only 5 default users
assert.Equal(t, 6, len(resp.Accounts))
// Only 7 default users
assert.Equal(t, 7, len(resp.Accounts))
cleanUp(t)
}
@@ -32,4 +32,4 @@ Feature: auth
| /ocs/v1.php/cloud/users/%username%/groups |
| /ocs/v2.php/cloud/users/%username%/groups |
Then the HTTP status code of responses on all endpoints should be "401"
And the OCS status code of responses on all endpoints should be "997"
And the OCS status code of responses on all endpoints should be "notset"
@@ -127,7 +127,7 @@ Feature: auth
| /ocs/v1.php/cloud/users |
| /ocs/v2.php/cloud/users |
Then the HTTP status code of responses on all endpoints should be "401"
And the OCS status code of responses on all endpoints should be "997"
And the OCS status code of responses on all endpoints should be "notset"
@skipOnOcV10
@issue-ocis-reva-29
@@ -173,4 +173,4 @@ Feature: auth
| /ocs/v1.php/cloud/users |
| /ocs/v2.php/cloud/users |
Then the HTTP status code of responses on all endpoints should be "401"
And the OCS status code of responses on all endpoints should be "997"
And the OCS status code of responses on all endpoints should be "notset"