sharing-v1-video-verification.feature 18 KB

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