Commit cbe1360 1 parent 9892963 commit cbe1360 Copy full SHA for cbe1360
File tree 2 files changed +50
-0
lines changed
2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -1345,6 +1345,33 @@ public function theUserUploadsAFileToSpace(
1345
1345
$ this ->featureContext ->setResponse ($ response );
1346
1346
}
1347
1347
1348
+ /**
1349
+ * @When user :user updates the content of federated share :share with :content using the WebDAV API
1350
+ *
1351
+ * @param string $user
1352
+ * @param string $share
1353
+ * @param string $content
1354
+ *
1355
+ * @return void
1356
+ * @throws GuzzleException
1357
+ * @throws Exception
1358
+ */
1359
+ public function userUpdatesTheContentOfFederatedShareWithUsingTheWebdavApi (
1360
+ string $ user ,
1361
+ string $ share ,
1362
+ string $ content ,
1363
+ ): void {
1364
+ $ spaceId = $ this ->featureContext ->spacesContext ->getSharesRemoteItemId ($ user , $ share );
1365
+ $ this ->featureContext ->setResponse (
1366
+ $ this ->featureContext ->uploadFileWithContent (
1367
+ $ user ,
1368
+ $ content ,
1369
+ $ share ,
1370
+ $ spaceId
1371
+ )
1372
+ );
1373
+ }
1374
+
1348
1375
/**
1349
1376
* @When /^user "([^"]*)" uploads a file "([^"]*)" to "([^"]*)" in space "([^"]*)" using the WebDAV API$/
1350
1377
*
Original file line number Diff line number Diff line change @@ -733,3 +733,26 @@ Feature: an user shares resources using ScienceMesh application
733
733
When using server "LOCAL"
734
734
And user "Alice" uploads a file with content "lorem" to "file.txt" inside federated share "FOLDER" via TUS using the WebDAV API
735
735
Then for user "Alice" the content of file "file.txt" of federated share "FOLDER" should be "lorem"
736
+
737
+ @issue-10358
738
+ Scenario : user edits content of a federated share file
739
+ Given using spaces DAV path
740
+ And using server "LOCAL"
741
+ And "Alice" has created the federation share invitation
742
+ And using server "REMOTE"
743
+ And "Brian" has accepted invitation
744
+ And using server "LOCAL"
745
+ And user "Alice" has uploaded file with content "ocm test" to "/textfile.txt"
746
+ And user "Alice" has sent the following resource share invitation to federated user:
747
+ | resource | textfile .txt |
748
+ | space | Personal |
749
+ | sharee | Brian |
750
+ | shareType | user |
751
+ | permissionsRole | File Editor |
752
+ And using server "REMOTE"
753
+ And for user "Brian" the content of file "textfile.txt" of federated share "textfile.txt" should be "ocm test"
754
+ When user "Brian" updates the content of federated share "textfile.txt" with "this is a new content" using the WebDAV API
755
+ Then the HTTP status code should be "204"
756
+ And for user "Brian" the content of file "textfile.txt" of federated share "textfile.txt" should be "this is a new content"
757
+ And using server "LOCAL"
758
+ And for user "Alice" the content of the file "textfile.txt" of the space "Personal" should be "this is a new content"
You can’t perform that action at this time.
0 commit comments