Skip to content

Commit

Permalink
added then steps for apiMain suite
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita56 committed Feb 24, 2022
1 parent 9203a32 commit bf93d0c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Feature: checksums
And user "Brian" accepts share "/myChecksumFile.txt" offered by user "Alice" using the sharing API
And user "Brian" uploads file with checksum "SHA1:ce5582148c6f0c1282335b87df5ed4be4b781399" and content "Some Text" to "/Shares/myChecksumFile.txt" using the WebDAV API
And user "Brian" requests the checksum of "/Shares/myChecksumFile.txt" via propfind
Then the webdav checksum should be empty
Then the HTTP status code of responses on each endpoint should be "200, 200, 204" respectively
And the webdav checksum should be empty
6 changes: 4 additions & 2 deletions tests/acceptance/features/apiMain/external-storage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Feature: external-storage
| Brian |
And user "Alice" has created folder "/local_storage/foo1"
When user "Alice" moves file "/textfile0.txt" to "/local_storage/foo1/textfile0.txt" using the WebDAV API
Then as "Brian" file "/local_storage/foo1/textfile0.txt" should exist
Then the HTTP status code should be "201"
And as "Brian" file "/local_storage/foo1/textfile0.txt" should exist
And as "Alice" file "/local_storage/foo1/textfile0.txt" should exist

Scenario: Move a file out of storage
Expand All @@ -42,7 +43,8 @@ Feature: external-storage
And user "Alice" has created folder "/local_storage/foo2"
And user "Alice" has moved file "/textfile0.txt" to "/local_storage/foo2/textfile0.txt"
When user "Brian" moves file "/local_storage/foo2/textfile0.txt" to "/local.txt" using the WebDAV API
Then as "Brian" file "/local_storage/foo2/textfile0.txt" should not exist
Then the HTTP status code should be "201"
And as "Brian" file "/local_storage/foo2/textfile0.txt" should not exist
And as "Alice" file "/local_storage/foo2/textfile0.txt" should not exist
And as "Brian" file "/local.txt" should exist

Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/features/bootstrap/Sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,7 @@ public function userSharesFileWithUserUsingTheSharingApi(
$user2,
$permissions
);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down Expand Up @@ -2977,6 +2978,7 @@ public function userReactsToShareOfferedBy(string $user, string $action, string
$url,
null
);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,7 @@ public function userUploadsAFileWithChecksumAndContentTo(
$content
);
$this->lastUploadDeleteTime = \time();
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down

0 comments on commit bf93d0c

Please sign in to comment.