Skip to content

Commit

Permalink
update expected tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jan 18, 2021
1 parent c76e9f7 commit c1c1b64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 71 deletions.
22 changes: 0 additions & 22 deletions tests/acceptance/expected-failures-on-OCIS-storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,16 @@ apiWebdavProperties1/setFileProperties.feature:33
#
# https://github.com/owncloud/ocis-reva/issues/196 Checksum feature
#
apiMain/checksums.feature:24
apiMain/checksums.feature:25
apiMain/checksums.feature:35
apiMain/checksums.feature:36
apiMain/checksums.feature:46
apiMain/checksums.feature:47
apiMain/checksums.feature:50
apiMain/checksums.feature:58
apiMain/checksums.feature:67
apiMain/checksums.feature:99
apiMain/checksums.feature:100
apiMain/checksums.feature:103
apiMain/checksums.feature:110
apiMain/checksums.feature:119
apiMain/checksums.feature:129
apiMain/checksums.feature:138
apiMain/checksums.feature:147
apiMain/checksums.feature:158
apiMain/checksums.feature:174
apiMain/checksums.feature:192
apiMain/checksums.feature:217
apiMain/checksums.feature:218
apiMain/checksums.feature:239
apiMain/checksums.feature:240
apiMain/checksums.feature:258
apiMain/checksums.feature:279
apiMain/checksums.feature:280
apiMain/checksums.feature:295
apiMain/checksums.feature:296
apiMain/checksums.feature:308
apiMain/checksums.feature:309
apiMain/checksums.feature:312
apiMain/checksums.feature:324
#
Expand Down Expand Up @@ -844,7 +823,6 @@ apiVersions/fileVersions.feature:45
apiVersions/fileVersions.feature:88
apiVersions/fileVersions.feature:89
apiVersions/fileVersions.feature:93
apiVersions/fileVersions.feature:104
apiVersions/fileVersions.feature:288
apiVersions/fileVersions.feature:362
apiVersions/fileVersions.feature:373
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,11 @@ Feature: checksums
Background:
Given user "Alice" has been created with default attributes and without skeleton files

@issue-ocis-reva-98
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: Uploading a file with checksum should return the checksum in the download header
Given using <dav_version> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
When user "Alice" downloads file "/myChecksumFile.txt" using the WebDAV API
Then the following headers should not be set
| header |
| OC-Checksum |
Examples:
| dav_version |
| old |
| new |

@issue-ocis-reva-98
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: Copying file with checksum should return the checksum in the download header using new DAV path
Given using new DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
When user "Alice" copies file "/myChecksumFile.txt" to "/myChecksumFileCopy.txt" using the WebDAV API
And user "Alice" downloads file "/myChecksumFileCopy.txt" using the WebDAV API
Then the following headers should not be set
| header |
| OC-Checksum |

@issue-ocis-reva-99
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: Upload a file where checksum does not match (old DAV path)
Given using old DAV path
When user "Alice" uploads file with checksum "SHA1:f005ba11" and content "Some Text" to "/chksumtst.txt" using the WebDAV API
Then the HTTP status code should be "201"
And user "Alice" should see the following elements
| /chksumtst.txt |

@issue-ocis-reva-99 @skipOnOcis-OCIS-Storage
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: Upload a file where checksum does not match (new DAV path)
Given using new DAV path
When user "Alice" uploads file with checksum "SHA1:f005ba11" and content "Some Text" to "/chksumtst.txt" using the WebDAV API
Then the HTTP status code should be "201"
And user "Alice" should see the following elements
| /chksumtst.txt |

@issue-ocis-reva-99
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: Uploaded file should have the same checksum when downloaded
Given using <dav_version> DAV path
And user "Alice" has uploaded file with checksum "SHA1:ce5582148c6f0c1282335b87df5ed4be4b781399" and content "Some Text" to "/chksumtst.txt"
When user "Alice" downloads file "/chksumtst.txt" using the WebDAV API
Then the following headers should not be set
| header |
| OC-Checksum |
Examples:
| dav_version |
| old |
| new |
| /chksumtst.txt |

0 comments on commit c1c1b64

Please sign in to comment.