provisioning-v2.feature 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-FileCopyrightText: 2015 ownCloud, Inc.
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. Feature: provisioning
  5. Background:
  6. Given using api version "2"
  7. Scenario: Getting an not existing user
  8. Given As an "admin"
  9. When sending "GET" to "/cloud/users/test"
  10. Then the HTTP status code should be "404"
  11. Scenario: get app info from app that does not exist
  12. Given As an "admin"
  13. When sending "GET" to "/cloud/apps/this_app_should_never_exist"
  14. Then the OCS status code should be "998"
  15. And the HTTP status code should be "404"
  16. Scenario: enable an app that does not exist
  17. Given As an "admin"
  18. When sending "POST" to "/cloud/apps/this_app_should_never_exist"
  19. Then the OCS status code should be "998"
  20. And the HTTP status code should be "404"
  21. Scenario: Searching by displayname in groups
  22. Given As an "admin"
  23. And user "user-in-group" with displayname "specific-name" exists
  24. And user "user-in-group2" with displayname "another-name" exists
  25. And user "user-not-in-group" with displayname "specific-name" exists
  26. And user "user-not-in-group2" with displayname "another-name" exists
  27. And group "group-search" exists
  28. And user "user-in-group" belongs to group "group-search"
  29. And user "user-in-group2" belongs to group "group-search"
  30. When sending "GET" to "/cloud/groups/group-search/users/details?offset=0&limit=25&search=ifi"
  31. Then the OCS status code should be "200"
  32. And the HTTP status code should be "200"
  33. And detailed users returned are
  34. | user-in-group |