capabilities.feature 9.6 KB

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