diff options
author | Robin Appelman <robin@icewind.nl> | 2017-09-27 17:46:24 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-12-08 16:34:33 +0100 |
commit | 74b5ce8fd4311f0d6f6a59e0636d343807b79d74 (patch) | |
tree | 30e2a3f407b94909080aaa7d536c9fe13d8cc731 /build/integration/remoteapi_features/remote.feature | |
parent | ac2c26ffcbe63e64156fc7e0b0be4e3466430dcf (diff) | |
download | nextcloud-server-74b5ce8fd4311f0d6f6a59e0636d343807b79d74.tar.gz nextcloud-server-74b5ce8fd4311f0d6f6a59e0636d343807b79d74.zip |
Some tests for the remote cloud api
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'build/integration/remoteapi_features/remote.feature')
-rw-r--r-- | build/integration/remoteapi_features/remote.feature | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/build/integration/remoteapi_features/remote.feature b/build/integration/remoteapi_features/remote.feature new file mode 100644 index 00000000000..72daf8226cd --- /dev/null +++ b/build/integration/remoteapi_features/remote.feature @@ -0,0 +1,37 @@ +Feature: remote + + Scenario: Get status of remote server + Given using remote server "REMOTE" + Then the remote version should be "__current_version__" + And the remote protocol should be "http" + + Scenario: Get status of a non existing server + Given using remote server "NON_EXISTING" + Then the request should throw a "OC\Remote\Api\NotFoundException" + + Scenario: Get user info for a remote user + Given using remote server "REMOTE" + And user "user0" exists + And using credentials "user0", "123456" + When getting the remote user info for "user0" + Then the remote user should have userid "user0" + + Scenario: Get user info for a non existing remote user + Given using remote server "REMOTE" + And user "user0" exists + And using credentials "user0", "123456" + When getting the remote user info for "user_non_existing" + Then the request should throw a "OC\Remote\Api\NotFoundException" + + Scenario: Get user info with invalid credentials + Given using remote server "REMOTE" + And user "user0" exists + And using credentials "user0", "invalid" + When getting the remote user info for "user0" + Then the request should throw a "OC\ForbiddenException" + + Scenario: Get capability of remote server + Given using remote server "REMOTE" + And user "user0" exists + And using credentials "user0", "invalid" + Then the capability "theming.name" is "Nextcloud" |