1
0

sharing-v1-part4.feature 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Feature: sharing
  2. Background:
  3. Given using api version "1"
  4. Given using new dav path
  5. # See sharing-v1-part3.feature
  6. Scenario: Creating a new share of a file shows size and mtime
  7. Given user "user0" exists
  8. And user "user1" exists
  9. And As an "user0"
  10. And parameter "shareapi_default_permissions" of app "core" is set to "7"
  11. When creating a share with
  12. | path | welcome.txt |
  13. | shareWith | user1 |
  14. | shareType | 0 |
  15. And the OCS status code should be "100"
  16. And the HTTP status code should be "200"
  17. And Getting info of last share
  18. Then the OCS status code should be "100"
  19. And the HTTP status code should be "200"
  20. And Share fields of last share match with
  21. | item_size | A_NUMBER |
  22. | item_mtime | A_NUMBER |
  23. Scenario: Creating a new share of a file you own shows the file permissions
  24. Given user "user0" exists
  25. And user "user1" exists
  26. And As an "user0"
  27. And parameter "shareapi_default_permissions" of app "core" is set to "7"
  28. When creating a share with
  29. | path | welcome.txt |
  30. | shareWith | user1 |
  31. | shareType | 0 |
  32. And the OCS status code should be "100"
  33. And the HTTP status code should be "200"
  34. And Getting info of last share
  35. Then the OCS status code should be "100"
  36. And the HTTP status code should be "200"
  37. And Share fields of last share match with
  38. | item_permissions | 27 |