sharing-v1-video-verification.feature 18 KB

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