user_status.feature 1.2 KB

12345678910111213141516171819202122
  1. # SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. Feature: user_status
  4. Background:
  5. Given using api version "2"
  6. And user "user0" exists
  7. And user "user0" has status "dnd"
  8. Scenario: listing recent user statuses with default settings
  9. Then user statuses for "admin" list "user0" with status "dnd"
  10. Scenario: empty recent user statuses with disabled/limited user enumeration
  11. When parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
  12. Then user statuses for "admin" are empty
  13. When parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "yes"
  14. When parameter "shareapi_restrict_user_enumeration_to_group" of app "core" is set to "yes"
  15. Then user statuses for "admin" are empty
  16. When parameter "shareapi_restrict_user_enumeration_to_group" of app "core" is set to "no"
  17. When parameter "shareapi_restrict_user_enumeration_to_phone" of app "core" is set to "yes"
  18. Then user statuses for "admin" are empty
  19. When parameter "shareapi_restrict_user_enumeration_to_phone" of app "core" is set to "no"
  20. Then user statuses for "admin" list "user0" with status "dnd"