1
0

remote.feature 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Feature: remote
  2. Scenario: Get status of remote server
  3. Given using remote server "REMOTE"
  4. Then the remote version should be "__current_version__"
  5. And the remote protocol should be "http"
  6. Scenario: Get status of a non existing server
  7. Given using remote server "NON_EXISTING"
  8. Then the request should throw a "OC\Remote\Api\NotFoundException"
  9. Scenario: Get user info for a remote user
  10. Given using remote server "REMOTE"
  11. And user "user0" exists
  12. And using credentials "user0", "123456"
  13. When getting the remote user info for "user0"
  14. Then the remote user should have userid "user0"
  15. Scenario: Get user info for a non existing remote user
  16. Given using remote server "REMOTE"
  17. And user "user0" exists
  18. And using credentials "user0", "123456"
  19. When getting the remote user info for "user_non_existing"
  20. Then the request should throw a "OC\Remote\Api\NotFoundException"
  21. Scenario: Get user info with invalid credentials
  22. Given using remote server "REMOTE"
  23. And user "user0" exists
  24. And using credentials "user0", "invalid"
  25. When getting the remote user info for "user0"
  26. Then the request should throw a "OC\ForbiddenException"
  27. Scenario: Get capability of remote server
  28. Given using remote server "REMOTE"
  29. And user "user0" exists
  30. And using credentials "user0", "invalid"
  31. Then the capability "theming.name" is "Nextcloud"