filesdrop.feature 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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"