1
0

filesdrop.feature 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. Feature: FilesDrop
  4. Scenario: Put file via files drop
  5. Given user "user0" exists
  6. And As an "user0"
  7. And user "user0" created a folder "/drop"
  8. And as "user0" creating a share with
  9. | path | drop |
  10. | shareType | 3 |
  11. | publicUpload | true |
  12. And Updating last share with
  13. | permissions | 4 |
  14. When Dropping file "/a.txt" with "abc"
  15. And Downloading file "/drop/a.txt"
  16. Then Downloaded content should be "abc"
  17. Scenario: Put file same file multiple times via files drop
  18. Given user "user0" exists
  19. And As an "user0"
  20. And user "user0" created a folder "/drop"
  21. And as "user0" creating a share with
  22. | path | drop |
  23. | shareType | 3 |
  24. | publicUpload | true |
  25. And Updating last share with
  26. | permissions | 4 |
  27. When Dropping file "/a.txt" with "abc"
  28. And Dropping file "/a.txt" with "def"
  29. And Downloading file "/drop/a.txt"
  30. Then Downloaded content should be "abc"
  31. And Downloading file "/drop/a (2).txt"
  32. Then Downloaded content should be "def"
  33. Scenario: Files drop ignores directory
  34. Given user "user0" exists
  35. And As an "user0"
  36. And user "user0" created a folder "/drop"
  37. And as "user0" creating a share with
  38. | path | drop |
  39. | shareType | 3 |
  40. | publicUpload | true |
  41. And Updating last share with
  42. | permissions | 4 |
  43. When Dropping file "/folder/a.txt" with "abc"
  44. And Downloading file "/drop/a.txt"
  45. Then Downloaded content should be "abc"
  46. Scenario: Files drop forbis MKCOL
  47. Given user "user0" exists
  48. And As an "user0"
  49. And user "user0" created a folder "/drop"
  50. And as "user0" creating a share with
  51. | path | drop |
  52. | shareType | 3 |
  53. | publicUpload | true |
  54. And Updating last share with
  55. | permissions | 4 |
  56. When Creating folder "folder" in drop
  57. Then the HTTP status code should be "405"
  58. Scenario: Files request drop
  59. Given user "user0" exists
  60. And As an "user0"
  61. And user "user0" created a folder "/drop"
  62. And as "user0" creating a share with
  63. | path | drop |
  64. | shareType | 4 |
  65. | permissions | 4 |
  66. | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
  67. | shareWith | |
  68. When Dropping file "/folder/a.txt" with "abc" as "Alice"
  69. And Downloading file "/drop/Alice/a.txt"
  70. Then Downloaded content should be "abc"
  71. Scenario: Put file same file multiple times via files drop
  72. Given user "user0" exists
  73. And As an "user0"
  74. And user "user0" created a folder "/drop"
  75. And as "user0" creating a share with
  76. | path | drop |
  77. | shareType | 4 |
  78. | permissions | 4 |
  79. | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
  80. | shareWith | |
  81. When Dropping file "/folder/a.txt" with "abc" as "Mallory"
  82. And Dropping file "/folder/a.txt" with "def" as "Mallory"
  83. And Downloading file "/drop/Mallory/a.txt"
  84. Then Downloaded content should be "abc"
  85. And Downloading file "/drop/Mallory/a (2).txt"
  86. Then Downloaded content should be "def"