provisioning-v2.feature 1.4 KB

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