From 9adbc3b5c7c4a4aa2468ba05be6b14bef299661d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 28 Oct 2020 11:39:10 +0100 Subject: [PATCH] fix tests, one more account present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- accounts/pkg/proto/v0/accounts.pb.micro_test.go | 6 +++--- .../apiOcisSpecific/apiAuthOcs-ocsDELETEAuth.feature | 2 +- .../features/apiOcisSpecific/apiAuthOcs-ocsGETAuth.feature | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/accounts/pkg/proto/v0/accounts.pb.micro_test.go b/accounts/pkg/proto/v0/accounts.pb.micro_test.go index 6ecbd25d3e..2ddc73e479 100644 --- a/accounts/pkg/proto/v0/accounts.pb.micro_test.go +++ b/accounts/pkg/proto/v0/accounts.pb.micro_test.go @@ -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) } diff --git a/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsDELETEAuth.feature b/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsDELETEAuth.feature index d022205830..0d22a6596b 100644 --- a/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsDELETEAuth.feature +++ b/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsDELETEAuth.feature @@ -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" diff --git a/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsGETAuth.feature b/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsGETAuth.feature index 57eacdea42..0b4ab635f0 100644 --- a/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsGETAuth.feature +++ b/ocis/tests/acceptance/features/apiOcisSpecific/apiAuthOcs-ocsGETAuth.feature @@ -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"