1
0

sharing-v1-video-verification.feature 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. @Talk
  2. Feature: sharing
  3. Background:
  4. Given using api version "1"
  5. Given using old dav path
  6. Given invoking occ with "app:enable --force spreed"
  7. Given the command was successful
  8. Scenario: Creating a link share with send password by Talk
  9. Given user "user0" exists
  10. And As an "user0"
  11. When creating a share with
  12. | path | welcome.txt |
  13. | shareType | 3 |
  14. | password | secret |
  15. | sendPasswordByTalk | true |
  16. Then the OCS status code should be "100"
  17. And the HTTP status code should be "200"
  18. And last share with password "secret" can be downloaded
  19. Scenario: Enabling send password by Talk in a link share
  20. Given user "user0" exists
  21. And As an "user0"
  22. When creating a share with
  23. | path | welcome.txt |
  24. | shareType | 3 |
  25. And Updating last share with
  26. | password | secret |
  27. | sendPasswordByTalk | true |
  28. Then the OCS status code should be "100"
  29. And the HTTP status code should be "200"
  30. And last share with password "secret" can be downloaded
  31. Scenario: Enabling send password by Talk with different password in a link share
  32. Given user "user0" exists
  33. And As an "user0"
  34. When creating a share with
  35. | path | welcome.txt |
  36. | shareType | 3 |
  37. | password | secret |
  38. And Updating last share with
  39. | password | another secret |
  40. | sendPasswordByTalk | true |
  41. Then the OCS status code should be "100"
  42. And the HTTP status code should be "200"
  43. And last share with password "another secret" can be downloaded
  44. Scenario: Enabling send password by Talk with different password set after creation in a link share
  45. Given user "user0" exists
  46. And As an "user0"
  47. When creating a share with
  48. | path | welcome.txt |
  49. | shareType | 3 |
  50. And Updating last share with
  51. | password | secret |
  52. And Updating last share with
  53. | password | another secret |
  54. | sendPasswordByTalk | true |
  55. Then the OCS status code should be "100"
  56. And the HTTP status code should be "200"
  57. And last share with password "another secret" can be downloaded
  58. Scenario: Enabling send password by Talk with same password in a link share
  59. Given user "user0" exists
  60. And As an "user0"
  61. When creating a share with
  62. | path | welcome.txt |
  63. | shareType | 3 |
  64. | password | secret |
  65. And Updating last share with
  66. | password | secret |
  67. | sendPasswordByTalk | true |
  68. Then the OCS status code should be "100"
  69. And the HTTP status code should be "200"
  70. And last share with password "secret" can be downloaded
  71. Scenario: Enabling send password by Talk with same password set after creation in a link share
  72. Given user "user0" exists
  73. And As an "user0"
  74. When creating a share with
  75. | path | welcome.txt |
  76. | shareType | 3 |
  77. And Updating last share with
  78. | password | secret |
  79. And Updating last share with
  80. | password | secret |
  81. | sendPasswordByTalk | true |
  82. Then the OCS status code should be "100"
  83. And the HTTP status code should be "200"
  84. And last share with password "secret" can be downloaded
  85. Scenario: Enabling send password by Talk without updating password in a link share
  86. Given user "user0" exists
  87. And As an "user0"
  88. When creating a share with
  89. | path | welcome.txt |
  90. | shareType | 3 |
  91. | password | secret |
  92. And Updating last share with
  93. | sendPasswordByTalk | true |
  94. Then the OCS status code should be "100"
  95. And the HTTP status code should be "200"
  96. And last share with password "secret" can be downloaded
  97. Scenario: Enabling send password by Talk without updating password set after creation in a link share
  98. Given user "user0" exists
  99. And As an "user0"
  100. When creating a share with
  101. | path | welcome.txt |
  102. | shareType | 3 |
  103. And Updating last share with
  104. | password | secret |
  105. And Updating last share with
  106. | sendPasswordByTalk | true |
  107. Then the OCS status code should be "100"
  108. And the HTTP status code should be "200"
  109. And last share with password "secret" can be downloaded
  110. Scenario: Enabling send password by Talk with no password in a link share
  111. Given user "user0" exists
  112. And As an "user0"
  113. When creating a share with
  114. | path | welcome.txt |
  115. | shareType | 3 |
  116. And Updating last share with
  117. | sendPasswordByTalk | true |
  118. Then the OCS status code should be "400"
  119. And the HTTP status code should be "200"
  120. And last share can be downloaded
  121. Scenario: Enabling send password by Talk with no password removed after creation in a link share
  122. Given user "user0" exists
  123. And As an "user0"
  124. When creating a share with
  125. | path | welcome.txt |
  126. | shareType | 3 |
  127. | password | secret |
  128. And Updating last share with
  129. | password | |
  130. And Updating last share with
  131. | sendPasswordByTalk | true |
  132. Then the OCS status code should be "400"
  133. And the HTTP status code should be "200"
  134. And last share can be downloaded
  135. Scenario: Disabling send password by Talk without setting new password in a link share
  136. Given dummy mail server is listening
  137. And user "user0" exists
  138. And As an "user0"
  139. When creating a share with
  140. | path | welcome.txt |
  141. | shareType | 3 |
  142. | password | secret |
  143. | sendPasswordByTalk | true |
  144. And Updating last share with
  145. | sendPasswordByTalk | false |
  146. Then the OCS status code should be "100"
  147. And the HTTP status code should be "200"
  148. And last share with password "secret" can be downloaded
  149. Scenario: Disabling send password by Talk without setting new password set after creation in a link share
  150. Given dummy mail server is listening
  151. And user "user0" exists
  152. And As an "user0"
  153. When creating a share with
  154. | path | welcome.txt |
  155. | shareType | 3 |
  156. And Updating last share with
  157. | password | secret |
  158. | sendPasswordByTalk | true |
  159. And Updating last share with
  160. | sendPasswordByTalk | false |
  161. Then the OCS status code should be "100"
  162. And the HTTP status code should be "200"
  163. And last share with password "secret" can be downloaded
  164. Scenario: Disabling send password by Talk setting same password in a link share
  165. Given dummy mail server is listening
  166. And user "user0" exists
  167. And As an "user0"
  168. When creating a share with
  169. | path | welcome.txt |
  170. | shareType | 3 |
  171. | password | secret |
  172. | sendPasswordByTalk | true |
  173. And Updating last share with
  174. | password | secret |
  175. | sendPasswordByTalk | false |
  176. Then the OCS status code should be "100"
  177. And the HTTP status code should be "200"
  178. And last share with password "secret" can be downloaded
  179. Scenario: Disabling send password by Talk setting same password set after creation in a link share
  180. Given dummy mail server is listening
  181. And user "user0" exists
  182. And As an "user0"
  183. When creating a share with
  184. | path | welcome.txt |
  185. | shareType | 3 |
  186. And Updating last share with
  187. | password | secret |
  188. | sendPasswordByTalk | true |
  189. And Updating last share with
  190. | password | secret |
  191. | sendPasswordByTalk | false |
  192. Then the OCS status code should be "100"
  193. And the HTTP status code should be "200"
  194. And last share with password "secret" can be downloaded
  195. Scenario: Disabling send password by Talk setting new password in a link share
  196. Given dummy mail server is listening
  197. And user "user0" exists
  198. And As an "user0"
  199. When creating a share with
  200. | path | welcome.txt |
  201. | shareType | 3 |
  202. | password | secret |
  203. | sendPasswordByTalk | true |
  204. And Updating last share with
  205. | password | another secret |
  206. | sendPasswordByTalk | false |
  207. Then the OCS status code should be "100"
  208. And the HTTP status code should be "200"
  209. And last share with password "another secret" can be downloaded
  210. Scenario: Disabling send password by Talk setting new password set after creation in a link share
  211. Given dummy mail server is listening
  212. And user "user0" exists
  213. And As an "user0"
  214. When creating a share with
  215. | path | welcome.txt |
  216. | shareType | 3 |
  217. And Updating last share with
  218. | password | secret |
  219. | sendPasswordByTalk | true |
  220. And Updating last share with
  221. | password | another secret |
  222. | sendPasswordByTalk | false |
  223. Then the OCS status code should be "100"
  224. And the HTTP status code should be "200"
  225. And last share with password "another secret" can be downloaded
  226. Scenario: Creating a mail share with send password by Talk
  227. Given dummy mail server is listening
  228. And user "user0" exists
  229. And As an "user0"
  230. When creating a share with
  231. | path | welcome.txt |
  232. | shareType | 4 |
  233. | shareWith | dummy@test.com |
  234. | password | secret |
  235. | sendPasswordByTalk | true |
  236. Then the OCS status code should be "100"
  237. And the HTTP status code should be "200"
  238. And last share with password "secret" can be downloaded
  239. Scenario: Enabling send password by Talk in a mail share
  240. Given dummy mail server is listening
  241. And user "user0" exists
  242. And As an "user0"
  243. When creating a share with
  244. | path | welcome.txt |
  245. | shareType | 4 |
  246. | shareWith | dummy@test.com |
  247. And Updating last share with
  248. | password | secret |
  249. | sendPasswordByTalk | true |
  250. Then the OCS status code should be "100"
  251. And the HTTP status code should be "200"
  252. And last share with password "secret" can be downloaded
  253. Scenario: Enabling send password by Talk with different password in a mail share
  254. Given dummy mail server is listening
  255. And user "user0" exists
  256. And As an "user0"
  257. When creating a share with
  258. | path | welcome.txt |
  259. | shareType | 4 |
  260. | shareWith | dummy@test.com |
  261. | password | secret |
  262. And Updating last share with
  263. | password | another secret |
  264. | sendPasswordByTalk | true |
  265. Then the OCS status code should be "100"
  266. And the HTTP status code should be "200"
  267. And last share with password "another secret" can be downloaded
  268. Scenario: Enabling send password by Talk with different password set after creation in a mail share
  269. Given dummy mail server is listening
  270. And user "user0" exists
  271. And As an "user0"
  272. When creating a share with
  273. | path | welcome.txt |
  274. | shareType | 4 |
  275. | shareWith | dummy@test.com |
  276. And Updating last share with
  277. | password | secret |
  278. And Updating last share with
  279. | password | another secret |
  280. | sendPasswordByTalk | true |
  281. Then the OCS status code should be "100"
  282. And the HTTP status code should be "200"
  283. And last share with password "another secret" can be downloaded
  284. Scenario: Enabling send password by Talk with same password in a mail share
  285. Given dummy mail server is listening
  286. And user "user0" exists
  287. And As an "user0"
  288. When creating a share with
  289. | path | welcome.txt |
  290. | shareType | 4 |
  291. | shareWith | dummy@test.com |
  292. | password | secret |
  293. And Updating last share with
  294. | password | secret |
  295. | sendPasswordByTalk | true |
  296. Then the OCS status code should be "400"
  297. And the HTTP status code should be "200"
  298. And last share with password "secret" can be downloaded
  299. Scenario: Enabling send password by Talk with same password set after creation in a mail share
  300. Given dummy mail server is listening
  301. And user "user0" exists
  302. And As an "user0"
  303. When creating a share with
  304. | path | welcome.txt |
  305. | shareType | 4 |
  306. | shareWith | dummy@test.com |
  307. And Updating last share with
  308. | password | secret |
  309. And Updating last share with
  310. | password | secret |
  311. | sendPasswordByTalk | true |
  312. Then the OCS status code should be "400"
  313. And the HTTP status code should be "200"
  314. And last share with password "secret" can be downloaded
  315. Scenario: Enabling send password by Talk without updating password in a mail share
  316. Given dummy mail server is listening
  317. And user "user0" exists
  318. And As an "user0"
  319. When creating a share with
  320. | path | welcome.txt |
  321. | shareType | 4 |
  322. | shareWith | dummy@test.com |
  323. | password | secret |
  324. And Updating last share with
  325. | sendPasswordByTalk | true |
  326. Then the OCS status code should be "400"
  327. And the HTTP status code should be "200"
  328. And last share with password "secret" can be downloaded
  329. Scenario: Enabling send password by Talk without updating password set after creation in a mail share
  330. Given dummy mail server is listening
  331. And user "user0" exists
  332. And As an "user0"
  333. When creating a share with
  334. | path | welcome.txt |
  335. | shareType | 4 |
  336. | shareWith | dummy@test.com |
  337. And Updating last share with
  338. | password | secret |
  339. And Updating last share with
  340. | sendPasswordByTalk | true |
  341. Then the OCS status code should be "400"
  342. And the HTTP status code should be "200"
  343. And last share with password "secret" can be downloaded
  344. Scenario: Enabling send password by Talk with no password in a mail share
  345. Given dummy mail server is listening
  346. And user "user0" exists
  347. And As an "user0"
  348. When creating a share with
  349. | path | welcome.txt |
  350. | shareType | 4 |
  351. | shareWith | dummy@test.com |
  352. And Updating last share with
  353. | sendPasswordByTalk | true |
  354. Then the OCS status code should be "400"
  355. And the HTTP status code should be "200"
  356. And last share can be downloaded
  357. Scenario: Enabling send password by Talk with no password removed after creation in a mail share
  358. Given dummy mail server is listening
  359. And user "user0" exists
  360. And As an "user0"
  361. When creating a share with
  362. | path | welcome.txt |
  363. | shareType | 4 |
  364. | shareWith | dummy@test.com |
  365. | password | secret |
  366. And Updating last share with
  367. | password | |
  368. And Updating last share with
  369. | sendPasswordByTalk | true |
  370. Then the OCS status code should be "400"
  371. And the HTTP status code should be "200"
  372. And last share can be downloaded
  373. Scenario: Disabling send password by Talk without setting new password in a mail share
  374. Given dummy mail server is listening
  375. And user "user0" exists
  376. And As an "user0"
  377. When creating a share with
  378. | path | welcome.txt |
  379. | shareType | 4 |
  380. | shareWith | dummy@test.com |
  381. | password | secret |
  382. | sendPasswordByTalk | true |
  383. And Updating last share with
  384. | sendPasswordByTalk | false |
  385. Then the OCS status code should be "400"
  386. And the HTTP status code should be "200"
  387. And last share with password "secret" can be downloaded
  388. Scenario: Disabling send password by Talk without setting new password set after creation in a mail share
  389. Given dummy mail server is listening
  390. And user "user0" exists
  391. And As an "user0"
  392. When creating a share with
  393. | path | welcome.txt |
  394. | shareType | 4 |
  395. | shareWith | dummy@test.com |
  396. And Updating last share with
  397. | password | secret |
  398. | sendPasswordByTalk | true |
  399. And Updating last share with
  400. | sendPasswordByTalk | false |
  401. Then the OCS status code should be "400"
  402. And the HTTP status code should be "200"
  403. And last share with password "secret" can be downloaded
  404. Scenario: Disabling send password by Talk setting same password in a mail share
  405. Given dummy mail server is listening
  406. And user "user0" exists
  407. And As an "user0"
  408. When creating a share with
  409. | path | welcome.txt |
  410. | shareType | 4 |
  411. | shareWith | dummy@test.com |
  412. | password | secret |
  413. | sendPasswordByTalk | true |
  414. And Updating last share with
  415. | password | secret |
  416. | sendPasswordByTalk | false |
  417. Then the OCS status code should be "400"
  418. And the HTTP status code should be "200"
  419. And last share with password "secret" can be downloaded
  420. Scenario: Disabling send password by Talk setting same password set after creation in a mail share
  421. Given dummy mail server is listening
  422. And user "user0" exists
  423. And As an "user0"
  424. When creating a share with
  425. | path | welcome.txt |
  426. | shareType | 4 |
  427. | shareWith | dummy@test.com |
  428. And Updating last share with
  429. | password | secret |
  430. | sendPasswordByTalk | true |
  431. And Updating last share with
  432. | password | secret |
  433. | sendPasswordByTalk | false |
  434. Then the OCS status code should be "400"
  435. And the HTTP status code should be "200"
  436. And last share with password "secret" can be downloaded
  437. Scenario: Disabling send password by Talk setting new password in a mail share
  438. Given dummy mail server is listening
  439. And user "user0" exists
  440. And As an "user0"
  441. When creating a share with
  442. | path | welcome.txt |
  443. | shareType | 4 |
  444. | shareWith | dummy@test.com |
  445. | password | secret |
  446. | sendPasswordByTalk | true |
  447. And Updating last share with
  448. | password | another secret |
  449. | sendPasswordByTalk | false |
  450. Then the OCS status code should be "100"
  451. And the HTTP status code should be "200"
  452. And last share with password "another secret" can be downloaded
  453. Scenario: Disabling send password by Talk setting new password set after creation in a mail share
  454. Given dummy mail server is listening
  455. And user "user0" exists
  456. And As an "user0"
  457. When creating a share with
  458. | path | welcome.txt |
  459. | shareType | 4 |
  460. | shareWith | dummy@test.com |
  461. And Updating last share with
  462. | password | secret |
  463. | sendPasswordByTalk | true |
  464. And Updating last share with
  465. | password | another secret |
  466. | sendPasswordByTalk | false |
  467. Then the OCS status code should be "100"
  468. And the HTTP status code should be "200"
  469. And last share with password "another secret" can be downloaded