1
0

remote.feature 1.6 KB

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