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][full-ci]Add Then step for suite apiWebdavUpload2 #39806

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
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
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