Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only] fix tags in MKCOL test and add example #37330

Merged
merged 1 commit into from
May 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix tags in MKCOL test and add example
  • Loading branch information
individual-it committed May 4, 2020
commit 04edef9bc7f46781723be6c174067eab38db5d35
Original file line number Diff line number Diff line change
@@ -31,22 +31,24 @@ Feature: get file info using MKCOL
| /remote.php/dav/files/user0/PARENT | 401 | doesnotmatter |
| /remote.php/dav/files/user0/PARENT/parent.txt | 401 | doesnotmatter |

@skipOnOcis @issue-ocis-reva-36
@skipOnOcis @issue-ocis-reva-9 @issue-ocis-reva-165
Scenario: send MKCOL requests to another user's webDav endpoints as normal user
When user "user1" requests these endpoints with "MKCOL" including body then the status codes should be as listed
| endpoint | http-code | body |
| /remote.php/dav/files/user0/textfile0.txt | 403 | |
| /remote.php/dav/files/user0/PARENT | 403 | |
| /remote.php/dav/files/user0/PARENT/parent.txt | 409 | |
| /remote.php/dav/files/user0/does-not-exist | 403 | |

@skipOnOcV10 @issue-ocis-reva-36
@skipOnOcV10 @issue-ocis-reva-9 @issue-ocis-reva-165
#after fixing all issues delete this Scenario and use the one above
Scenario: send MKCOL requests to another user's webDav endpoints as normal user
When user "user1" requests these endpoints with "MKCOL" including body then the status codes should be as listed
| endpoint | http-code | body |
| /remote.php/dav/files/user0/textfile0.txt | 405 | |
| /remote.php/dav/files/user0/PARENT | 405 | |
| /remote.php/dav/files/user0/PARENT/parent.txt | 405 | |
| /remote.php/dav/files/user0/does-not-exist | 201 | |

Scenario: send MKCOL requests to webDav endpoints using invalid username but correct password
When user "usero" requests these endpoints with "MKCOL" including body using the password of user "user0" then the status codes should be as listed