Skip to content

Commit

Permalink
Improve Then step in apiShareReshareToRoot suites
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Apr 19, 2022
1 parent e98e41f commit d5c65d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ Feature: resharing can be done on a reshared resource
And user "Brian" has shared file "textfile0_shared.txt" with user "Carol"
And user "Carol" has shared file "textfile0_shared.txt" with user "David"
When user "Brian" deletes file "/textfile0_shared.txt" using the WebDAV API
Then the content of file "/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0"
Then the HTTP status code should be "204"
And the content of file "/textfile0_shared.txt" for user "Carol" should be "ownCloud test text file 0"
And the content of file "/textfile0_shared.txt" for user "David" should be "ownCloud test text file 0"
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Feature: sharing
And user "Alice" has updated the last share of "Alice" with
| permissions | create,update,read |
When user "Brian" deletes the last share using the sharing API
Then the HTTP status code should be "200"
And the OCS status code should be "<ocs_status_code>"
And user "Carol" should not have any received shares
Examples:
Expand Down
3 changes: 3 additions & 0 deletions tests/acceptance/features/bootstrap/Sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ public function updateLastShareWithSettings(string $user, ?TableNode $body, ?str
$bodyRows,
$this->ocsApiVersion
);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down Expand Up @@ -1039,6 +1040,7 @@ public function createShare(
}
}
$this->localLastShareTime = \microtime(true);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down Expand Up @@ -1857,6 +1859,7 @@ public function deleteLastShareUsingSharingApi(string $user):void {
$url,
null
);
$this->pushToLastStatusCodesArrays();
}

/**
Expand Down

0 comments on commit d5c65d6

Please sign in to comment.