1
0

capabilities.feature 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. # SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
  2. # SPDX-License-Identifier: AGPL-3.0-only
  3. Feature: capabilities
  4. Background:
  5. Given using api version "1"
  6. Scenario: getting capabilities with admin user
  7. Given As an "admin"
  8. When sending "GET" to "/cloud/capabilities"
  9. Then the HTTP status code should be "200"
  10. And fields of capabilities match with
  11. | capability | path_to_element | value |
  12. | core | pollinterval | 60 |
  13. | core | webdav-root | remote.php/webdav |
  14. | files_sharing | api_enabled | 1 |
  15. | files_sharing | public@@@enabled | 1 |
  16. | files_sharing | public@@@upload | 1 |
  17. | files_sharing | resharing | 1 |
  18. | files_sharing | federation@@@outgoing | 1 |
  19. | files_sharing | federation@@@incoming | 1 |
  20. | files_sharing | group_sharing | 1 |
  21. | files | bigfilechunking | 1 |
  22. | files | undelete | 1 |
  23. | files | versioning | 1 |
  24. Scenario: Changing public upload
  25. Given As an "admin"
  26. And parameter "shareapi_allow_public_upload" of app "core" is set to "no"
  27. When sending "GET" to "/cloud/capabilities"
  28. Then the HTTP status code should be "200"
  29. And fields of capabilities match with
  30. | capability | path_to_element | value |
  31. | core | pollinterval | 60 |
  32. | core | webdav-root | remote.php/webdav |
  33. | files_sharing | api_enabled | 1 |
  34. | files_sharing | public@@@enabled | 1 |
  35. | files_sharing | public@@@upload | EMPTY |
  36. | files_sharing | resharing | 1 |
  37. | files_sharing | federation@@@outgoing | 1 |
  38. | files_sharing | federation@@@incoming | 1 |
  39. | files_sharing | group_sharing | 1 |
  40. | files | bigfilechunking | 1 |
  41. | files | undelete | 1 |
  42. | files | versioning | 1 |
  43. Scenario: Disabling share api
  44. Given As an "admin"
  45. And parameter "shareapi_enabled" of app "core" is set to "no"
  46. When sending "GET" to "/cloud/capabilities"
  47. Then the HTTP status code should be "200"
  48. And fields of capabilities match with
  49. | capability | path_to_element | value |
  50. | core | pollinterval | 60 |
  51. | core | webdav-root | remote.php/webdav |
  52. | files_sharing | api_enabled | EMPTY |
  53. | files_sharing | public@@@enabled | EMPTY |
  54. | files_sharing | public@@@upload | EMPTY |
  55. | files_sharing | resharing | EMPTY |
  56. | files_sharing | federation@@@outgoing | 1 |
  57. | files_sharing | federation@@@incoming | 1 |
  58. | files | bigfilechunking | 1 |
  59. | files | undelete | 1 |
  60. | files | versioning | 1 |
  61. Scenario: Disabling public links
  62. Given As an "admin"
  63. And parameter "shareapi_allow_links" of app "core" is set to "no"
  64. When sending "GET" to "/cloud/capabilities"
  65. Then the HTTP status code should be "200"
  66. And fields of capabilities match with
  67. | capability | path_to_element | value |
  68. | core | pollinterval | 60 |
  69. | core | webdav-root | remote.php/webdav |
  70. | files_sharing | api_enabled | 1 |
  71. | files_sharing | public@@@enabled | EMPTY |
  72. | files_sharing | public@@@upload | EMPTY |
  73. | files_sharing | resharing | 1 |
  74. | files_sharing | federation@@@outgoing | 1 |
  75. | files_sharing | federation@@@incoming | 1 |
  76. | files_sharing | group_sharing | 1 |
  77. | files | bigfilechunking | 1 |
  78. | files | undelete | 1 |
  79. | files | versioning | 1 |
  80. Scenario: Changing resharing
  81. Given As an "admin"
  82. And parameter "shareapi_allow_resharing" of app "core" is set to "no"
  83. When sending "GET" to "/cloud/capabilities"
  84. Then the HTTP status code should be "200"
  85. And fields of capabilities match with
  86. | capability | path_to_element | value |
  87. | core | pollinterval | 60 |
  88. | core | webdav-root | remote.php/webdav |
  89. | files_sharing | api_enabled | 1 |
  90. | files_sharing | public@@@enabled | 1 |
  91. | files_sharing | public@@@upload | 1 |
  92. | files_sharing | resharing | EMPTY |
  93. | files_sharing | federation@@@outgoing | 1 |
  94. | files_sharing | federation@@@incoming | 1 |
  95. | files_sharing | group_sharing | 1 |
  96. | files | bigfilechunking | 1 |
  97. | files | undelete | 1 |
  98. | files | versioning | 1 |
  99. Scenario: Changing federation outgoing
  100. Given As an "admin"
  101. And parameter "outgoing_server2server_share_enabled" of app "files_sharing" is set to "no"
  102. When sending "GET" to "/cloud/capabilities"
  103. Then the HTTP status code should be "200"
  104. And fields of capabilities match with
  105. | capability | path_to_element | value |
  106. | core | pollinterval | 60 |
  107. | core | webdav-root | remote.php/webdav |
  108. | files_sharing | api_enabled | 1 |
  109. | files_sharing | public@@@enabled | 1 |
  110. | files_sharing | public@@@upload | 1 |
  111. | files_sharing | resharing | 1 |
  112. | files_sharing | federation@@@outgoing | EMPTY |
  113. | files_sharing | federation@@@incoming | 1 |
  114. | files_sharing | group_sharing | 1 |
  115. | files | bigfilechunking | 1 |
  116. | files | undelete | 1 |
  117. | files | versioning | 1 |
  118. Scenario: Changing federation incoming
  119. Given As an "admin"
  120. And parameter "incoming_server2server_share_enabled" of app "files_sharing" is set to "no"
  121. When sending "GET" to "/cloud/capabilities"
  122. Then the HTTP status code should be "200"
  123. And fields of capabilities match with
  124. | capability | path_to_element | value |
  125. | core | pollinterval | 60 |
  126. | core | webdav-root | remote.php/webdav |
  127. | files_sharing | api_enabled | 1 |
  128. | files_sharing | public@@@enabled | 1 |
  129. | files_sharing | public@@@upload | 1 |
  130. | files_sharing | resharing | 1 |
  131. | files_sharing | federation@@@outgoing | 1 |
  132. | files_sharing | federation@@@incoming | EMPTY |
  133. | files_sharing | group_sharing | 1 |
  134. | files | bigfilechunking | 1 |
  135. | files | undelete | 1 |
  136. | files | versioning | 1 |
  137. Scenario: Changing password enforce
  138. Given As an "admin"
  139. And parameter "shareapi_enforce_links_password" of app "core" is set to "yes"
  140. When sending "GET" to "/cloud/capabilities"
  141. Then the HTTP status code should be "200"
  142. And fields of capabilities match with
  143. | capability | path_to_element | value |
  144. | core | pollinterval | 60 |
  145. | core | webdav-root | remote.php/webdav |
  146. | files_sharing | api_enabled | 1 |
  147. | files_sharing | public@@@enabled | 1 |
  148. | files_sharing | public@@@upload | 1 |
  149. | files_sharing | public@@@password@@@enforced | 1 |
  150. | files_sharing | resharing | 1 |
  151. | files_sharing | federation@@@outgoing | 1 |
  152. | files_sharing | federation@@@incoming | 1 |
  153. | files_sharing | group_sharing | 1 |
  154. | files | bigfilechunking | 1 |
  155. | files | undelete | 1 |
  156. | files | versioning | 1 |
  157. Scenario: Changing public notifications
  158. Given As an "admin"
  159. And parameter "shareapi_allow_public_notification" of app "core" is set to "yes"
  160. When sending "GET" to "/cloud/capabilities"
  161. Then the HTTP status code should be "200"
  162. And fields of capabilities match with
  163. | capability | path_to_element | value |
  164. | core | pollinterval | 60 |
  165. | core | webdav-root | remote.php/webdav |
  166. | files_sharing | api_enabled | 1 |
  167. | files_sharing | public@@@enabled | 1 |
  168. | files_sharing | public@@@upload | 1 |
  169. | files_sharing | public@@@send_mail | 1 |
  170. | files_sharing | resharing | 1 |
  171. | files_sharing | federation@@@outgoing | 1 |
  172. | files_sharing | federation@@@incoming | 1 |
  173. | files_sharing | group_sharing | 1 |
  174. | files | bigfilechunking | 1 |
  175. | files | undelete | 1 |
  176. | files | versioning | 1 |
  177. Scenario: Changing expire date
  178. Given As an "admin"
  179. And parameter "shareapi_default_expire_date" of app "core" is set to "yes"
  180. When sending "GET" to "/cloud/capabilities"
  181. Then the HTTP status code should be "200"
  182. And fields of capabilities match with
  183. | capability | path_to_element | value |
  184. | core | pollinterval | 60 |
  185. | core | webdav-root | remote.php/webdav |
  186. | files_sharing | api_enabled | 1 |
  187. | files_sharing | public@@@enabled | 1 |
  188. | files_sharing | public@@@upload | 1 |
  189. | files_sharing | public@@@expire_date@@@enabled | 1 |
  190. | files_sharing | resharing | 1 |
  191. | files_sharing | federation@@@outgoing | 1 |
  192. | files_sharing | federation@@@incoming | 1 |
  193. | files_sharing | group_sharing | 1 |
  194. | files | bigfilechunking | 1 |
  195. | files | undelete | 1 |
  196. | files | versioning | 1 |
  197. Scenario: Changing expire date enforcing
  198. Given As an "admin"
  199. And parameter "shareapi_default_expire_date" of app "core" is set to "yes"
  200. And parameter "shareapi_enforce_expire_date" of app "core" is set to "yes"
  201. When sending "GET" to "/cloud/capabilities"
  202. Then the HTTP status code should be "200"
  203. And fields of capabilities match with
  204. | capability | path_to_element | value |
  205. | core | pollinterval | 60 |
  206. | core | webdav-root | remote.php/webdav |
  207. | files_sharing | api_enabled | 1 |
  208. | files_sharing | public@@@enabled | 1 |
  209. | files_sharing | public@@@upload | 1 |
  210. | files_sharing | public@@@expire_date@@@enabled | 1 |
  211. | files_sharing | public@@@expire_date@@@enforced | 1 |
  212. | files_sharing | resharing | 1 |
  213. | files_sharing | federation@@@outgoing | 1 |
  214. | files_sharing | federation@@@incoming | 1 |
  215. | files_sharing | group_sharing | 1 |
  216. | files | bigfilechunking | 1 |
  217. | files | undelete | 1 |
  218. | files | versioning | 1 |
  219. Scenario: Changing group sharing allowed
  220. Given As an "admin"
  221. And parameter "shareapi_allow_group_sharing" of app "core" is set to "no"
  222. When sending "GET" to "/cloud/capabilities"
  223. Then the HTTP status code should be "200"
  224. And fields of capabilities match with
  225. | capability | path_to_element | value |
  226. | core | pollinterval | 60 |
  227. | core | webdav-root | remote.php/webdav |
  228. | files_sharing | api_enabled | 1 |
  229. | files_sharing | public@@@enabled | 1 |
  230. | files_sharing | public@@@upload | 1 |
  231. | files_sharing | resharing | 1 |
  232. | files_sharing | federation@@@outgoing | 1 |
  233. | files_sharing | federation@@@incoming | 1 |
  234. | files_sharing | group_sharing | EMPTY |
  235. | files | bigfilechunking | 1 |
  236. | files | undelete | 1 |
  237. | files | versioning | 1 |