From a9895a9073af0edad06aefaaa905ec4f8ecf6d60 Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Tue, 20 Aug 2024 17:13:37 +0545 Subject: [PATCH 1/3] add test for activity depth filter --- tests/TestHelpers/GraphHelper.php | 10 +- .../features/apiActivities/activities.feature | 95 +++++++++ .../apiActivities/activityFilter.feature | 187 ++++++++++++++++++ .../features/bootstrap/GraphContext.php | 23 +++ 4 files changed, 313 insertions(+), 2 deletions(-) create mode 100644 tests/acceptance/features/apiActivities/activityFilter.feature diff --git a/tests/TestHelpers/GraphHelper.php b/tests/TestHelpers/GraphHelper.php index 07998e209..9d8b65182 100644 --- a/tests/TestHelpers/GraphHelper.php +++ b/tests/TestHelpers/GraphHelper.php @@ -2326,6 +2326,7 @@ class GraphHelper { * @param string $user * @param string $password * @param string $resourceId + * @param string $depth * * @return ResponseInterface */ @@ -2334,11 +2335,16 @@ class GraphHelper { string $requestId, string $user, string $password, - string $resourceId + string $resourceId, + ?string $depth = null ): ResponseInterface { // 'kql=itemId' filter is required for the current implementation but it might change in future // See: https://github.com/owncloud/ocis/issues/9194 - $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId"); + if ($depth !== null) { + $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId+AND+depth%3A$depth"); + } else { + $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId"); + } return HttpRequestHelper::get( $fullUrl, $requestId, diff --git a/tests/acceptance/features/apiActivities/activities.feature b/tests/acceptance/features/apiActivities/activities.feature index dc930cb3e..2f94a0bd8 100644 --- a/tests/acceptance/features/apiActivities/activities.feature +++ b/tests/acceptance/features/apiActivities/activities.feature @@ -1326,3 +1326,98 @@ Feature: check activities } } """ + + @issue-9712 + Scenario: check activity with depth filter + Given user "Alice" has created folder "/New Folder" + And user "Alice" has created folder "/New Folder/Sub Folder" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" + When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "1" using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "uniqueItems": true, + "items": { + "oneOf": [ + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "New Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + }, + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "Sub Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + } + ] + } + } + } + } + """ diff --git a/tests/acceptance/features/apiActivities/activityFilter.feature b/tests/acceptance/features/apiActivities/activityFilter.feature new file mode 100644 index 000000000..0e3e95f61 --- /dev/null +++ b/tests/acceptance/features/apiActivities/activityFilter.feature @@ -0,0 +1,187 @@ +@issue-9712 +Feature: activity filter + As a user + I want to filter activities + So that I can track modifications of specific resource + + Background: + Given user "Alice" has been created with default attributes and without skeleton files + + + Scenario: check activity with depth filter + Given user "Alice" has created folder "/New Folder" + And user "Alice" has created folder "/New Folder/Sub Folder" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" + When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "0" using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "minItems": 1, + "maxItems": 1, + "items": { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "New Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + } + } + } + } + """ + When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "2" using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": true, + "items": { + "oneOf": [ + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "New Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + }, + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "Sub Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + }, + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "textfile0.txt" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + } + ] + } + } + } + } + """ diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index 2fbb15445..d55272f98 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -2839,6 +2839,29 @@ class GraphContext implements Context { $this->featureContext->setResponse($response); } + /** + * @When /^user "([^"]*)" lists the activities for (?:folder|file) "([^"]*)" of space "([^"]*)" with depth "([^"]*)" using the Graph API/ + * + * @param string $user + * @param string $resource + * @param string $spaceName + * @param string $folderDepth + * + * @return void + */ + public function userListsTheActivitiesForFolderOfSpaceWithDepthUsingTheGraphApi(string $user, string $resource, string $spaceName, string $folderDepth): void { + $resourceId = $this->featureContext->spacesContext->getResourceId($user, $spaceName, $resource); + $response = GraphHelper::getActivities( + $this->featureContext->getBaseUrl(), + $this->featureContext->getStepLineRef(), + $user, + $this->featureContext->getPasswordForUser($user), + $resourceId, + $folderDepth + ); + $this->featureContext->setResponse($response); + } + /** * @When the administrator gets federated users using the Graph API * @When user :user tries to get federated users using the Graph API From 385086b491409257a9bf24cff8eb27df79c68e12 Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Wed, 21 Aug 2024 16:22:59 +0545 Subject: [PATCH 2/3] add test for activity limit filter --- tests/TestHelpers/GraphHelper.php | 13 +- .../features/apiActivities/activities.feature | 97 ++++++++- .../apiActivities/activityFilter.feature | 187 ------------------ .../features/bootstrap/GraphContext.php | 13 +- 4 files changed, 110 insertions(+), 200 deletions(-) delete mode 100644 tests/acceptance/features/apiActivities/activityFilter.feature diff --git a/tests/TestHelpers/GraphHelper.php b/tests/TestHelpers/GraphHelper.php index 9d8b65182..99cad0d8c 100644 --- a/tests/TestHelpers/GraphHelper.php +++ b/tests/TestHelpers/GraphHelper.php @@ -2326,7 +2326,7 @@ class GraphHelper { * @param string $user * @param string $password * @param string $resourceId - * @param string $depth + * @param array $filterParams * * @return ResponseInterface */ @@ -2336,14 +2336,15 @@ class GraphHelper { string $user, string $password, string $resourceId, - ?string $depth = null + ?array $filterParams = [] ): ResponseInterface { // 'kql=itemId' filter is required for the current implementation but it might change in future // See: https://github.com/owncloud/ocis/issues/9194 - if ($depth !== null) { - $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId+AND+depth%3A$depth"); - } else { - $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId"); + $fullUrl = self::getBetaFullUrl($baseUrl, "extensions/org.libregraph/activities?kql=itemid%3A$resourceId"); + if (!empty($filterParams)) { + foreach ($filterParams as $filter => $value) { + $fullUrl .= "+AND+$filter%3A$value"; + } } return HttpRequestHelper::get( $fullUrl, diff --git a/tests/acceptance/features/apiActivities/activities.feature b/tests/acceptance/features/apiActivities/activities.feature index 2f94a0bd8..1a7af5886 100644 --- a/tests/acceptance/features/apiActivities/activities.feature +++ b/tests/acceptance/features/apiActivities/activities.feature @@ -1327,7 +1327,7 @@ Feature: check activities } """ - @issue-9712 + @issue-9850 Scenario: check activity with depth filter Given user "Alice" has created folder "/New Folder" And user "Alice" has created folder "/New Folder/Sub Folder" @@ -1421,3 +1421,98 @@ Feature: check activities } } """ + + @issue-9880 + Scenario: check activity with limit filter + Given user "Alice" has created folder "/New Folder" + And user "Alice" has created folder "/New Folder/Sub Folder" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" + When user "Alice" lists the activities for folder "New Folder" of space "Personal" with limit "2" using the Graph API + Then the HTTP status code should be "200" + And the JSON data of the response should match + """ + { + "type": "object", + "required": ["value"], + "properties": { + "value": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "uniqueItems": true, + "items": { + "oneOf": [ + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "New Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + }, + { + "type": "object", + "required": ["id", "template", "times"], + "properties": { + "template": { + "type": "object", + "required": ["message", "variables"], + "properties": { + "message": { + "const": "{user} added {resource} to {space}" + }, + "variables": { + "type": "object", + "required": ["resource", "space", "user"], + "properties": { + "resource": { + "type": "object", + "required": ["id", "name"], + "properties": { + "name": { + "const": "Sub Folder" + } + } + } + } + } + } + }, + "times": { + "type": "object", + "required": ["recordedTime"] + } + } + } + ] + } + } + } + } + """ diff --git a/tests/acceptance/features/apiActivities/activityFilter.feature b/tests/acceptance/features/apiActivities/activityFilter.feature deleted file mode 100644 index 0e3e95f61..000000000 --- a/tests/acceptance/features/apiActivities/activityFilter.feature +++ /dev/null @@ -1,187 +0,0 @@ -@issue-9712 -Feature: activity filter - As a user - I want to filter activities - So that I can track modifications of specific resource - - Background: - Given user "Alice" has been created with default attributes and without skeleton files - - - Scenario: check activity with depth filter - Given user "Alice" has created folder "/New Folder" - And user "Alice" has created folder "/New Folder/Sub Folder" - And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" - When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "0" using the Graph API - Then the HTTP status code should be "200" - And the JSON data of the response should match - """ - { - "type": "object", - "required": ["value"], - "properties": { - "value": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "items": { - "type": "object", - "required": ["id", "template", "times"], - "properties": { - "template": { - "type": "object", - "required": ["message", "variables"], - "properties": { - "message": { - "const": "{user} added {resource} to {space}" - }, - "variables": { - "type": "object", - "required": ["resource", "space", "user"], - "properties": { - "resource": { - "type": "object", - "required": ["id", "name"], - "properties": { - "name": { - "const": "New Folder" - } - } - } - } - } - } - }, - "times": { - "type": "object", - "required": ["recordedTime"] - } - } - } - } - } - } - """ - When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "2" using the Graph API - Then the HTTP status code should be "200" - And the JSON data of the response should match - """ - { - "type": "object", - "required": ["value"], - "properties": { - "value": { - "type": "array", - "minItems": 3, - "maxItems": 3, - "uniqueItems": true, - "items": { - "oneOf": [ - { - "type": "object", - "required": ["id", "template", "times"], - "properties": { - "template": { - "type": "object", - "required": ["message", "variables"], - "properties": { - "message": { - "const": "{user} added {resource} to {space}" - }, - "variables": { - "type": "object", - "required": ["resource", "space", "user"], - "properties": { - "resource": { - "type": "object", - "required": ["id", "name"], - "properties": { - "name": { - "const": "New Folder" - } - } - } - } - } - } - }, - "times": { - "type": "object", - "required": ["recordedTime"] - } - } - }, - { - "type": "object", - "required": ["id", "template", "times"], - "properties": { - "template": { - "type": "object", - "required": ["message", "variables"], - "properties": { - "message": { - "const": "{user} added {resource} to {space}" - }, - "variables": { - "type": "object", - "required": ["resource", "space", "user"], - "properties": { - "resource": { - "type": "object", - "required": ["id", "name"], - "properties": { - "name": { - "const": "Sub Folder" - } - } - } - } - } - } - }, - "times": { - "type": "object", - "required": ["recordedTime"] - } - } - }, - { - "type": "object", - "required": ["id", "template", "times"], - "properties": { - "template": { - "type": "object", - "required": ["message", "variables"], - "properties": { - "message": { - "const": "{user} added {resource} to {space}" - }, - "variables": { - "type": "object", - "required": ["resource", "space", "user"], - "properties": { - "resource": { - "type": "object", - "required": ["id", "name"], - "properties": { - "name": { - "const": "textfile0.txt" - } - } - } - } - } - } - }, - "times": { - "type": "object", - "required": ["recordedTime"] - } - } - } - ] - } - } - } - } - """ diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index d55272f98..856da67d9 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -2840,16 +2840,17 @@ class GraphContext implements Context { } /** - * @When /^user "([^"]*)" lists the activities for (?:folder|file) "([^"]*)" of space "([^"]*)" with depth "([^"]*)" using the Graph API/ + * @When /^user "([^"]*)" lists the activities for (?:folder|file) "([^"]*)" of space "([^"]*)" with (depth|limit) "([^"]*)" using the Graph API/ * * @param string $user * @param string $resource * @param string $spaceName - * @param string $folderDepth + * @param string $filterType + * @param string $filterValue * * @return void */ - public function userListsTheActivitiesForFolderOfSpaceWithDepthUsingTheGraphApi(string $user, string $resource, string $spaceName, string $folderDepth): void { + public function userListsTheActivitiesForFolderOfSpaceWithDepthOrLimitUsingTheGraphApi(string $user, string $resource, string $spaceName, string $filterType, string $filterValue): void { $resourceId = $this->featureContext->spacesContext->getResourceId($user, $spaceName, $resource); $response = GraphHelper::getActivities( $this->featureContext->getBaseUrl(), @@ -2857,7 +2858,7 @@ class GraphContext implements Context { $user, $this->featureContext->getPasswordForUser($user), $resourceId, - $folderDepth + [$filterType => $filterValue] ); $this->featureContext->setResponse($response); } @@ -2872,7 +2873,7 @@ class GraphContext implements Context { */ public function theUserGetsFederatedUsersUsingTheGraphApi(?string $user = null): void { $credentials = $this->getAdminOrUserCredentials($user); - + $response = GraphHelper::getFederatedUsers( $this->featureContext->getBaseUrl(), $this->featureContext->getStepLineRef(), @@ -2893,7 +2894,7 @@ class GraphContext implements Context { */ public function theUserGetsAllUsersUsingTheGraphApi(?string $user = null): void { $credentials = $this->getAdminOrUserCredentials($user); - + $response = GraphHelper::getAllUsers( $this->featureContext->getBaseUrl(), $this->featureContext->getStepLineRef(), From b92ec36ff174b1c6f63a1b59835010e6b98b5c3f Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Mon, 26 Aug 2024 14:32:38 +0545 Subject: [PATCH 3/3] rename file name in test steps --- .../features/apiActivities/activities.feature | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/acceptance/features/apiActivities/activities.feature b/tests/acceptance/features/apiActivities/activities.feature index 1a7af5886..63f452878 100644 --- a/tests/acceptance/features/apiActivities/activities.feature +++ b/tests/acceptance/features/apiActivities/activities.feature @@ -8,9 +8,9 @@ Feature: check activities @issue-9712 Scenario: check activities after uploading a file and a folder - Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" + Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt" And user "Alice" has created folder "/FOLDER" - When user "Alice" lists the activities for file "textfile0.txt" of space "Personal" using the Graph API + When user "Alice" lists the activities for file "textfile.txt" of space "Personal" using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match """ @@ -50,7 +50,7 @@ Feature: check activities "pattern": "%file_id_pattern%" }, "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } }, @@ -193,9 +193,9 @@ Feature: check activities @issue-9712 Scenario: check activities after deleting a file and a folder - Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" + Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt" And user "Alice" has created folder "/FOLDER" - And user "Alice" has deleted file "textfile0.txt" + And user "Alice" has deleted file "textfile.txt" And user "Alice" has deleted folder "FOLDER" When user "Alice" lists the activities of space "Personal" using the Graph API Then the HTTP status code should be "200" @@ -232,7 +232,7 @@ Feature: check activities "required": ["id", "name"], "properties": { "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } } @@ -300,7 +300,7 @@ Feature: check activities "pattern": "%file_id_pattern%" }, "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } }, @@ -429,12 +429,12 @@ Feature: check activities @issue-9712 Scenario: check move activity for a file and a folder - Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" + Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt" And user "Alice" has created folder "/FOLDER" And user "Alice" has created folder "/New Folder" - And user "Alice" has moved file "textfile0.txt" to "New Folder/textfile0.txt" + And user "Alice" has moved file "textfile.txt" to "New Folder/textfile.txt" And user "Alice" has moved folder "FOLDER" to "New Folder/FOLDER" - When user "Alice" lists the activities for file "New Folder/textfile0.txt" of space "Personal" using the Graph API + When user "Alice" lists the activities for file "New Folder/textfile.txt" of space "Personal" using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match """ @@ -492,7 +492,7 @@ Feature: check activities "pattern": "^%file_id_pattern%$" }, "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } }, @@ -657,9 +657,9 @@ Feature: check activities @issue-9712 Scenario: check rename activity for a file and a folder - Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" + Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt" And user "Alice" has created folder "/FOLDER" - And user "Alice" has moved file "textfile0.txt" to "renamed.txt" + And user "Alice" has moved file "textfile.txt" to "renamed.txt" And user "Alice" has moved folder "/FOLDER" to "RENAMED FOLDER" When user "Alice" lists the activities for file "renamed.txt" of space "Personal" using the Graph API Then the HTTP status code should be "200" @@ -718,7 +718,7 @@ Feature: check activities "const": "" }, "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } }, @@ -885,10 +885,10 @@ Feature: check activities Given user "Alice" has created folder "/New Folder" And user "Alice" has created folder "/New Folder/Folder" And user "Alice" has created folder "/New Folder/Sub Folder" - And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/textfile0.txt" - And user "Alice" has moved file "/New Folder/textfile0.txt" to "/New Folder/Sub Folder/textfile0.txt" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/textfile.txt" + And user "Alice" has moved file "/New Folder/textfile.txt" to "/New Folder/Sub Folder/textfile.txt" And user "Alice" has moved folder "/New Folder/Folder" to "/New Folder/Sub Folder/Folder" - And user "Alice" has moved file "/New Folder/Sub Folder/textfile0.txt" to "/New Folder/Sub Folder/renamed.txt" + And user "Alice" has moved file "/New Folder/Sub Folder/textfile.txt" to "/New Folder/Sub Folder/renamed.txt" And user "Alice" has moved folder "/New Folder/Sub Folder/Folder" to "/New Folder/Sub Folder/Renamed Folder" And user "Alice" has deleted file "/New Folder/Sub Folder/renamed.txt" And user "Alice" has deleted folder "/New Folder/Sub Folder/Renamed Folder" @@ -1017,7 +1017,7 @@ Feature: check activities "required": ["id", "name"], "properties": { "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } } @@ -1047,7 +1047,7 @@ Feature: check activities "required": ["id", "name"], "properties": { "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } } @@ -1107,7 +1107,7 @@ Feature: check activities "required": ["id", "name"], "properties": { "name": { - "const": "textfile0.txt" + "const": "textfile.txt" } } }, @@ -1331,7 +1331,7 @@ Feature: check activities Scenario: check activity with depth filter Given user "Alice" has created folder "/New Folder" And user "Alice" has created folder "/New Folder/Sub Folder" - And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile.txt" When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "1" using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match @@ -1426,7 +1426,7 @@ Feature: check activities Scenario: check activity with limit filter Given user "Alice" has created folder "/New Folder" And user "Alice" has created folder "/New Folder/Sub Folder" - And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt" + And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile.txt" When user "Alice" lists the activities for folder "New Folder" of space "Personal" with limit "2" using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match