Skip to content

Commit

Permalink
Merge pull request #39806 from owncloud/improve-then-steps-in-apiWebd…
Browse files Browse the repository at this point in the history
…avUpload2

[tests-only][full-ci]Add Then step for suite apiWebdavUpload2
  • Loading branch information
phil-davis authored Feb 18, 2022
2 parents 14fe806 + 6942407 commit bed95a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Feature: upload file using new chunking
| 1 | AAAAA |
| 2 | BBBBB |
| 3 | CCCCC |
Then as "Alice" file "/myChunkedFile.txt" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/myChunkedFile.txt" should exist
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
And the log file should not contain any log-entries containing these attributes:
| app |
Expand All @@ -51,7 +52,8 @@ Feature: upload file using new chunking
| 1 | AAAAA |
| 2 | BBBBB |
| 3 | CCCCC |
Then as "Alice" file "/myChunkedFile.txt" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/myChunkedFile.txt" should exist
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
And the log file should not contain any log-entries containing these attributes:
| app |
Expand All @@ -65,7 +67,8 @@ Feature: upload file using new chunking
And user "Alice" has copied file "/textfile0.txt" to "/existingFile.txt"
And user "Alice" has stored id of file "/existingFile.txt"
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/existingFile.txt" in 3 chunks with new chunking and using the WebDAV API
Then user "Alice" file "/existingFile.txt" should have the previously stored id
Then the HTTP status code should be "204"
And user "Alice" file "/existingFile.txt" should have the previously stored id
And the content of file "/existingFile.txt" for user "Alice" should be:
"""
This is a testfile.
Expand Down Expand Up @@ -139,7 +142,8 @@ Feature: upload file using new chunking
And user "Alice" uploads new chunk file "2" with "BBBBB" to id "chunking-42" using the WebDAV API
And user "Alice" uploads new chunk file "3" with "CCCCC" to id "chunking-42" using the WebDAV API
And user "Alice" moves new chunk file with id "chunking-42" to "/<file-name>" using the WebDAV API
Then as "Alice" file "/<file-name>" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/<file-name>" should exist
And the content of file "/<file-name>" for user "Alice" should be "AAAAABBBBBCCCCC"
Examples:
| file-name |
Expand All @@ -154,7 +158,8 @@ Feature: upload file using new chunking
Given the owncloud log level has been set to debug
And the owncloud log has been cleared
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/<file-name>" in 3 chunks with new chunking and using the WebDAV API
Then as "Alice" file "/<file-name>" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/<file-name>" should exist
And the content of file "/<file-name>" for user "Alice" should be:
"""
This is a testfile.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Feature: upload file using old chunking
| 3 | CCCCC |
| 2 | BBBBB |
| 1 | AAAAA |
Then as "Alice" file "/myChunkedFile.txt" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/myChunkedFile.txt" should exist
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
Examples:
| dav_version |
Expand All @@ -55,7 +56,8 @@ Feature: upload file using old chunking
| 2 | BBBBB |
| 3 | CCCCC |
| 1 | AAAAA |
Then as "Alice" file "/myChunkedFile.txt" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/myChunkedFile.txt" should exist
And the content of file "/myChunkedFile.txt" for user "Alice" should be "AAAAABBBBBCCCCC"
Examples:
| dav_version |
Expand All @@ -74,7 +76,8 @@ Feature: upload file using old chunking
And user "Alice" has copied file "/textfile0.txt" to "/existingFile.txt"
And user "Alice" has stored id of file "/existingFile.txt"
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/existingFile.txt" in 3 chunks with old chunking and using the WebDAV API
Then user "Alice" file "/existingFile.txt" should have the previously stored id
Then the HTTP status code should be "201"
And user "Alice" file "/existingFile.txt" should have the previously stored id
And the content of file "/existingFile.txt" for user "Alice" should be:
"""
This is a testfile.
Expand All @@ -100,7 +103,8 @@ Feature: upload file using old chunking
Scenario Outline: Chunked upload files with difficult name
Given using <dav_version> DAV path
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/<file-name>" in 3 chunks using the WebDAV API
Then as "Alice" file "/<file-name>" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/<file-name>" should exist
And the content of file "/<file-name>" for user "Alice" should be:
"""
This is a testfile.
Expand All @@ -125,7 +129,8 @@ Feature: upload file using old chunking
And the owncloud log level has been set to debug
And the owncloud log has been cleared
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/<file-name>" in 3 chunks using the WebDAV API
Then as "Alice" file "/<file-name>" should exist
Then the HTTP status code should be "201"
And as "Alice" file "/<file-name>" should exist
And the content of file "/<file-name>" for user "Alice" should be:
"""
This is a testfile.
Expand Down

0 comments on commit bed95a7

Please sign in to comment.