filesdrop.feature 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Feature: FilesDrop
  2. Scenario: Put file via files drop
  3. Given user "user0" exists
  4. And As an "user0"
  5. And user "user0" created a folder "/drop"
  6. And as "user0" creating a share with
  7. | path | drop |
  8. | shareType | 3 |
  9. | publicUpload | true |
  10. And Updating last share with
  11. | permissions | 4 |
  12. When Dropping file "/a.txt" with "abc"
  13. And Downloading file "/drop/a.txt"
  14. Then Downloaded content should be "abc"
  15. Scenario: Put file same file multiple times via files drop
  16. Given user "user0" exists
  17. And As an "user0"
  18. And user "user0" created a folder "/drop"
  19. And as "user0" creating a share with
  20. | path | drop |
  21. | shareType | 3 |
  22. | publicUpload | true |
  23. And Updating last share with
  24. | permissions | 4 |
  25. When Dropping file "/a.txt" with "abc"
  26. And Dropping file "/a.txt" with "def"
  27. And Downloading file "/drop/a.txt"
  28. Then Downloaded content should be "abc"
  29. And Downloading file "/drop/a (2).txt"
  30. Then Downloaded content should be "def"
  31. Scenario: Files drop ignores directory
  32. Given user "user0" exists
  33. And As an "user0"
  34. And user "user0" created a folder "/drop"
  35. And as "user0" creating a share with
  36. | path | drop |
  37. | shareType | 3 |
  38. | publicUpload | true |
  39. And Updating last share with
  40. | permissions | 4 |
  41. When Dropping file "/folder/a.txt" with "abc"
  42. And Downloading file "/drop/a.txt"
  43. Then Downloaded content should be "abc"
  44. Scenario: Files drop forbis MKCOL
  45. Given user "user0" exists
  46. And As an "user0"
  47. And user "user0" created a folder "/drop"
  48. And as "user0" creating a share with
  49. | path | drop |
  50. | shareType | 3 |
  51. | publicUpload | true |
  52. And Updating last share with
  53. | permissions | 4 |
  54. When Creating folder "folder" in drop
  55. Then the HTTP status code should be "405"