[tests-only ][full-ci] backport all graphapi related featurefile wording (#7640)

* refactoring the feature file steps

* backporting from main
This commit is contained in:
Sabin Panta
2023-11-06 17:27:24 +05:45
committed by GitHub
parent b97ed83f62
commit c3a41e0ef9
42 changed files with 146 additions and 145 deletions

View File

@@ -222,7 +222,7 @@ Feature: antivirus
Scenario Outline: upload a file with virus to a project space
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has created a folder "uploadFolder" in space "new-space"
When user "Alice" uploads a file "filesForUpload/filesWithVirus/<filename>" to "/uploadFolder/<newfilename>" in space "new-space" using the WebDAV API
Then the HTTP status code should be "201"
@@ -248,7 +248,7 @@ Feature: antivirus
Given using spaces DAV path
And user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has shared a space "new-space" with settings:
| shareWith | Brian |
| role | editor |
@@ -469,7 +469,7 @@ Feature: antivirus
Scenario: try to overwrite the .space/readme.md file
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has created a folder ".space" in space "new-space"
And user "Alice" has uploaded a file inside space "new-space" with content "Here you can add a description for this Space." to ".space/readme.md"
When user "Alice" uploads a file inside space "new-space" with content "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" to ".space/readme.md" using the WebDAV API
@@ -484,7 +484,7 @@ Feature: antivirus
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has shared a space "new-space" with settings:
| shareWith | Brian |
| role | editor |
@@ -504,7 +504,7 @@ Feature: antivirus
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has shared a space "new-space" with settings:
| shareWith | Brian |
| role | editor |

View File

@@ -10,7 +10,7 @@ Feature: Copy test
| Alice |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
Scenario: check the COPY response headers

View File

@@ -10,7 +10,7 @@ Feature: Propfind test
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
Scenario: space-admin checks the PROPFIND request of a space

View File

@@ -10,7 +10,7 @@ Feature: REPORT request to project space
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "findData" with the default quota using the GraphApi
And user "Alice" has created a space "findData" with the default quota using the Graph API
Scenario: check the response of the searched file

View File

@@ -13,7 +13,7 @@ Feature: Report test
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "find data" with the default quota using the GraphApi
And user "Alice" has created a space "find data" with the default quota using the Graph API
And user "Alice" has created a folder "folderMain/SubFolder1/subFOLDER2" in space "find data"
And user "Alice" has uploaded a file inside space "find data" with content "some content" to "folderMain/SubFolder1/subFOLDER2/insideTheFolder.txt"
And using new DAV path

View File

@@ -14,7 +14,7 @@ Feature: Download file in project space
| Bob |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "download file" with the default quota using the GraphApi
And user "Alice" has created a space "download file" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "download file" with content "some content" to "file.txt"
And user "Alice" has shared a space "download file" with settings:
| shareWith | Brian |

View File

@@ -11,7 +11,7 @@ Feature: Download space
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project-space" with the default quota using the GraphApi
And user "Alice" has created a space "Project-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "Project-space" with content "some data" to "file1.txt"
And user "Alice" has created a folder ".space" in space "Project-space"
And user "Alice" has uploaded a file inside space "Project-space" with content "space description" to ".space/readme.md"

View File

@@ -149,7 +149,7 @@ Feature: delete user
And user "Brian" has been created with default attributes and without skeleton files
When the user "Alice" deletes a user "Brian" using the Graph API
Then the HTTP status code should be "204"
When user "Alice" lists all spaces via the GraphApi with query "$filter=driveType eq 'personal'"
When user "Alice" lists all spaces via the Graph API with query "$filter=driveType eq 'personal'"
Then the json responded should not contain a space with name "Brian Murphy"

View File

@@ -855,7 +855,7 @@ Feature: user GDPR (General Data Protection Regulation) report
Scenario: generate a GDPR report and check events when a space is shared
Given user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "GDPR Space" with the default quota using the GraphApi
And user "Alice" has created a space "GDPR Space" with the default quota using the Graph API
And user "Alice" has shared a space "GDPR Space" with settings:
| shareWith | Brian |
| role | viewer |
@@ -958,7 +958,7 @@ Feature: user GDPR (General Data Protection Regulation) report
Scenario: generate a GDPR report and check events when a space is created
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "GDPR Space" with the default quota using the GraphApi
And user "Alice" has created a space "GDPR Space" with the default quota using the Graph API
When user "Alice" exports her GDPR report to "/.personal_data_export.json" using the Graph API
And user "Alice" downloads the content of GDPR report ".personal_data_export.json"
Then the HTTP status code of responses on each endpoint should be "201, 200" respectively

View File

@@ -13,7 +13,7 @@ Feature: Email notification
Scenario: user gets an email notification when someone shares a project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
When user "Alice" shares a space "new-space" with settings:
| shareWith | Brian |
| role | Editor |
@@ -49,7 +49,7 @@ Feature: Email notification
And group "group1" has been created
And user "Brian" has been added to group "group1"
And user "Carol" has been added to group "group1"
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
When user "Alice" shares a space "new-space" with settings:
| shareWith | group1 |
| shareType | 8 |
@@ -139,7 +139,7 @@ Feature: Email notification
And user "Carol" has been added to group "group1"
And user "Brian" has switched the system language to "es"
And user "Carol" has switched the system language to "de"
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
When user "Alice" shares a space "new-space" with settings:
| shareWith | group1 |
| role | viewer |
@@ -164,7 +164,7 @@ Feature: Email notification
Scenario: user gets an email notification when space admin unshares a space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has shared a space "new-space" with settings:
| shareWith | Brian |
| role | editor |

View File

@@ -10,7 +10,7 @@ Feature: Notification
| Brian |
| Carol |
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "notification checking" with the default quota using the GraphApi
And user "Alice" has created a space "notification checking" with the default quota using the Graph API
Scenario: get a notification of space shared

View File

@@ -115,8 +115,8 @@ Feature: Resharing
Scenario Outline: resharing with group with different permissions
Given group "security department" has been created
And the administrator has added a user "Ember" to the group "security department" using GraphApi
And the administrator has added a user "Fred" to the group "security department" using GraphApi
And the administrator has added a user "Ember" to the group "security department" using the Graph API
And the administrator has added a user "Fred" to the group "security department" using the Graph API
When user "Brian" shares folder "Shares/folder" with group "security department" with permissions "<permissions>" using the sharing API
Then the OCS status code should be "100"
When user "Ember" accepts share "/folder" offered by user "Brian" using the sharing API

View File

@@ -13,7 +13,7 @@ Feature: Search
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "find data" with the default quota using the GraphApi
And user "Alice" has created a space "find data" with the default quota using the Graph API
And user "Alice" has created a folder "folderMain/SubFolder1/subFOLDER2" in space "find data"
And user "Alice" has uploaded a file inside space "find data" with content "some content" to "folderMain/SubFolder1/subFOLDER2/insideTheFolder.txt"
And using new DAV path

View File

@@ -1,3 +1,4 @@
@tikaServiceNeeded
Feature: content search
As a user
I want to do search resources by content
@@ -108,7 +109,7 @@ Feature: content search
Scenario Outline: search project space files by content
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "spacesFolderWithFile/spacesSubFolder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "hello world from nepal" to "keywordAtStart.txt"
And user "Alice" has uploaded a file inside space "project-space" with content "saying hello to the world" to "spacesFolderWithFile/keywordAtMiddle.txt"
@@ -136,7 +137,7 @@ Feature: content search
Given using spaces DAV path
And user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has shared a space "project-space" with settings:
| shareWith | Brian |
| role | viewer |

View File

@@ -39,7 +39,7 @@ Feature: tag search
Scenario Outline: search project space files by tag
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "tag-space" with the default quota using the GraphApi
And user "Alice" has created a space "tag-space" with the default quota using the Graph API
And user "Alice" has created a folder "spacesFolderWithFile/spacesSubFolder" in space "tag-space"
And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file" to "spacesFile.txt"
And user "Alice" has uploaded a file inside space "tag-space" with content "untagged file" to "spacesFileWithoutTag.txt"
@@ -92,7 +92,7 @@ Feature: tag search
Scenario Outline: search project space folders by tag
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "tag-space" with the default quota using the GraphApi
And user "Alice" has created a space "tag-space" with the default quota using the Graph API
And user "Alice" has created a folder "spacesFolder/spacesSubFolder" in space "tag-space"
And user "Alice" has created a folder "unTagSpacesFolder/unTagSpacesSubFolder" in space "tag-space"
And user "Alice" has tagged the following folders of the space "tag-space":
@@ -149,7 +149,7 @@ Feature: tag search
Given using spaces DAV path
And user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "tag-space" with the default quota using the GraphApi
And user "Alice" has created a space "tag-space" with the default quota using the Graph API
And user "Alice" has shared a space "tag-space" with settings:
| shareWith | Brian |
| role | viewer |

View File

@@ -339,7 +339,7 @@ Feature: Change data of space
When user "<user>" uploads a file inside space "Project Jupiter" owned by the user "Alice" with content "new content" to ".space/readme.md" using the WebDAV API
Then the HTTP status code should be "<code>"
And for user "<user>" the content of the file ".space/readme.md" of the space "Project Jupiter" should be "<expectedContent>"
When user "<user>" lists all available spaces via the GraphApi
When user "<user>" lists all available spaces via the Graph API
And the JSON response should contain space called "Project Jupiter" owned by "Alice" with description file ".space/readme.md" and match
"""
{

View File

@@ -14,7 +14,7 @@ Feature: Disabling and deleting space
| Bob |
| Carol |
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project Moon" with the default quota using the GraphApi
And user "Alice" has created a space "Project Moon" with the default quota using the Graph API
And user "Alice" has shared a space "Project Moon" with settings:
| shareWith | Brian |
| role | editor |

View File

@@ -15,7 +15,7 @@ Feature: A manager of the space can edit public link
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "edit space" with the default quota using the GraphApi
And user "Alice" has created a space "edit space" with the default quota using the Graph API
And user "Alice" has created a public link share of the space "edit space" with settings:
| permissions | 1 |
| password | qwerty |

View File

@@ -11,7 +11,7 @@ Feature: Preview file in project space
| username |
| Alice |
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "previews of the files" with the default quota using the GraphApi
And user "Alice" has created a space "previews of the files" with the default quota using the Graph API
And using spaces DAV path

View File

@@ -12,7 +12,7 @@ Feature: List and create spaces
Scenario: ordinary user can request information about their Space via the Graph API
When user "Alice" lists all available spaces via the GraphApi
When user "Alice" lists all available spaces via the Graph API
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" and match
"""
@@ -82,7 +82,7 @@ Feature: List and create spaces
And user "Brian" has created folder "folder"
And user "Brian" has shared folder "folder" with user "Alice" with permissions "31"
And user "Alice" has accepted share "/folder" offered by user "Brian"
When user "Alice" lists all available spaces via the GraphApi with query "$filter=driveType eq 'personal'"
When user "Alice" lists all available spaces via the Graph API with query "$filter=driveType eq 'personal'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" and match
"""
@@ -151,7 +151,7 @@ Feature: List and create spaces
Scenario: ordinary user will not see any space when using a filter for project
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "my project" of type "project" with quota "20"
When user "Alice" lists all available spaces via the GraphApi with query "$filter=driveType eq 'project'"
When user "Alice" lists all available spaces via the Graph API with query "$filter=driveType eq 'project'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "my project" and match
"""
@@ -182,13 +182,13 @@ Feature: List and create spaces
Scenario: ordinary user can access their space via the webDav API
When user "Alice" lists all available spaces via the GraphApi
When user "Alice" lists all available spaces via the Graph API
And user "Alice" lists the content of the space with the name "Alice Hansen" using the WebDav Api
Then the HTTP status code should be "207"
Scenario: user can list his personal space via multiple endpoints
When user "Alice" lists all available spaces via the GraphApi with query "$filter=driveType eq 'personal'"
When user "Alice" lists all available spaces via the Graph API with query "$filter=driveType eq 'personal'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" owned by "Alice" and match
"""
@@ -245,7 +245,7 @@ Feature: List and create spaces
}
}
"""
When user "Alice" looks up the single space "Alice Hansen" via the GraphApi by using its id
When user "Alice" looks up the single space "Alice Hansen" via the Graph API by using its id
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" and match
"""
@@ -348,7 +348,7 @@ Feature: List and create spaces
}
}
"""
When user "Alice" looks up the single space "Project Venus" via the GraphApi by using its id
When user "Alice" looks up the single space "Project Venus" via the Graph API by using its id
Then the HTTP status code should be "200"
And the JSON response should contain space called "Project Venus" and match
"""
@@ -419,7 +419,7 @@ Feature: List and create spaces
Scenario Outline: user cannot list space by id if he is not member of the space
Given the administrator has assigned the role "<role>" to user "Alice" using the Graph API
And user "Admin" has created a space "Project Venus" with the default quota using the GraphApi
And user "Admin" has created a space "Project Venus" with the default quota using the Graph API
When user "Alice" tries to look up the single space "Project Venus" owned by the user "Admin" by using its id
Then the HTTP status code should be "404"
And the json responded should not contain a space with name "Project Venus"

View File

@@ -91,7 +91,7 @@ Feature: lock files
Scenario Outline: lock a file in the project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And using spaces DAV path
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "textfile.txt"
And user "Alice" has shared a space "Project" with settings:
| shareWith | Brian |
@@ -117,7 +117,7 @@ Feature: lock files
Scenario Outline: lock a file in the project space using file-id
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And using spaces DAV path
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "textfile.txt"
And we save it into "FILEID"
And user "Alice" has shared a space "Project" with settings:
@@ -144,7 +144,7 @@ Feature: lock files
Scenario: viewer cannot lock a file in the project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And using spaces DAV path
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "textfile.txt"
And we save it into "FILEID"
And user "Alice" has shared a space "Project" with settings:

View File

@@ -6,7 +6,7 @@ Feature: public link for a space
| Alice |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "public space" with the default quota using the GraphApi
And user "Alice" has created a space "public space" with the default quota using the Graph API
And user "Alice" has created a public link share of the space "public space" with settings:
| permissions | 1 |

View File

@@ -22,7 +22,7 @@ Feature: State of the quota
Scenario Outline: quota information is returned in the list of spaces returned via the Graph API
Given user "Alice" has created a space "<spaceName>" of type "project" with quota "100"
When user "Alice" uploads a file inside space "<spaceName>" with content "<fileContent>" to "test.txt" using the WebDAV API
And user "Alice" lists all available spaces via the GraphApi
And user "Alice" lists all available spaces via the Graph API
Then the JSON response should contain space called "<spaceName>" and match
"""
{

View File

@@ -13,7 +13,7 @@ Feature: Remove files, folder
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "delete objects" with the default quota using the GraphApi
And user "Alice" has created a space "delete objects" with the default quota using the Graph API
And user "Alice" has created a folder "folderForDeleting/sub1/sub2" in space "delete objects"
And user "Alice" has uploaded a file inside space "delete objects" with content "some content" to "text.txt"

View File

@@ -22,7 +22,7 @@ Feature: Space management
Scenario: space admin user can see another project space even if he is not member of the space
When user "Brian" lists all spaces via the GraphApi with query "$filter=driveType eq 'project'"
When user "Brian" lists all spaces via the Graph API with query "$filter=driveType eq 'project'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "Project" and match
"""
@@ -53,7 +53,7 @@ Feature: Space management
Scenario: space admin user can see another personal spaces
When user "Brian" lists all spaces via the GraphApi with query "$filter=driveType eq 'personal'"
When user "Brian" lists all spaces via the Graph API with query "$filter=driveType eq 'personal'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" and match
"""
@@ -84,7 +84,7 @@ Feature: Space management
Scenario: user without space admin permission cannot see another spaces
When user "Carol" tries to list all spaces via the GraphApi
When user "Carol" tries to list all spaces via the Graph API
Then the HTTP status code should be "200"
And the json responded should not contain a space with name "Project"
And the json responded should not contain a space with name "Alice Hansen"

View File

@@ -13,7 +13,7 @@ Feature: Tag
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "use-tag" with the default quota using the GraphApi
And user "Alice" has created a space "use-tag" with the default quota using the Graph API
And user "Alice" has created a folder "folderMain" in space "use-tag"
And user "Alice" has uploaded a file inside space "use-tag" with content "some content" to "folderMain/insideTheFolder.txt"
@@ -39,13 +39,13 @@ Feature: Tag
And the "PROPFIND" response should contain a space "use-tag" with these key and value pairs:
| key | value |
| oc:tags | fileTag |
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| tag level#1 |
| tag with symbols @^$#^%$@%!_+) |
| fileTag |
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| tag level#1 |
@@ -74,7 +74,7 @@ Feature: Tag
And the "PROPFIND" response to user "Alice" should contain a mountpoint "Alice Hansen" with these key and value pairs:
| key | value |
| oc:tags | fileTag,tag with symbol @^$#^%$@%!_+) |
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| my tag |
@@ -91,7 +91,7 @@ Feature: Tag
| tag level#1 |
| tag with symbols @^$#^%$@%!_+) |
Then the HTTP status code should be "<code>"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response <shouldOrNot> contain following tags:
| tag level#1 |
@@ -111,13 +111,13 @@ Feature: Tag
| path | folderMain |
| shareWith | Brian |
| role | viewer |
When user "Brian" lists all available tags via the GraphApi
When user "Brian" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should not contain following tags:
| folderTag |
| marketing |
When user "Brian" accepts share "/folderMain" offered by user "Alice" using the sharing API
And user "Brian" lists all available tags via the GraphApi
And user "Brian" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| folderTag |
@@ -134,7 +134,7 @@ Feature: Tag
| tag in a shared resource |
| second tag |
Then the HTTP status code should be "<code>"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response <shouldOrNot> contain following tags:
| tag in a shared resource |
@@ -162,7 +162,7 @@ Feature: Tag
| tag in a shared resource |
| second tag |
Then the HTTP status code should be "<code>"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response <shouldOrNot> contain following tags:
| tag in a shared resource |
@@ -201,7 +201,7 @@ Feature: Tag
| folderTag |
| marketing |
Then the HTTP status code should be "200"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| development |
@@ -216,7 +216,7 @@ Feature: Tag
| marketing |
When user "Alice" removes the folder "folderMain" from space "use-tag"
Then the HTTP status code should be "204"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should not contain following tags:
| folderTag |
@@ -228,14 +228,14 @@ Feature: Tag
| folderTag |
| marketing |
And user "Alice" has disabled a space "use-tag"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should not contain following tags:
| folderTag |
| marketing |
When user "Alice" deletes a space "use-tag"
Then the HTTP status code should be "204"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should not contain following tags:
| folderTag |
@@ -249,7 +249,7 @@ Feature: Tag
And user "Alice" has removed the folder "folderMain" from space "use-tag"
When user "Alice" restores the folder "folderMain" from the trash of the space "use-tag" to "/folderMain"
Then the HTTP status code should be "201"
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| folderTag |
@@ -276,7 +276,7 @@ Feature: Tag
And the "PROPFIND" response should contain a space "use-tag" with these key and value pairs:
| key | value |
| oc:tags | file,,Tag |
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| finance |
@@ -296,7 +296,7 @@ Feature: Tag
And the "PROPFIND" response should contain a space "use-tag" with these key and value pairs:
| key | value |
| oc:tags | engineering,finance,hr,qa |
When user "Alice" lists all available tags via the GraphApi
When user "Alice" lists all available tags via the Graph API
Then the HTTP status code should be "200"
And the response should contain following tags:
| engineering |

View File

@@ -13,7 +13,7 @@ Feature: Restore files, folder
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "restore objects" with the default quota using the GraphApi
And user "Alice" has created a space "restore objects" with the default quota using the Graph API
And user "Alice" has created a folder "newFolder" in space "restore objects"
And user "Alice" has uploaded a file inside space "restore objects" with content "test" to "newFolder/file.txt"

View File

@@ -76,7 +76,7 @@ Feature: copying file using file id
Scenario Outline: copy a file into a folder in project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "/folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
@@ -94,7 +94,7 @@ Feature: copying file using file id
Scenario Outline: copy a file into a sub-folder in project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
@@ -112,7 +112,7 @@ Feature: copying file using file id
Scenario Outline: copy a file from a folder into root of project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/textfile.txt"
And we save it into "FILEID"
@@ -130,7 +130,7 @@ Feature: copying file using file id
Scenario Outline: copy a file from sub-folder into root of project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/sub-folder/textfile.txt"
And we save it into "FILEID"
@@ -148,7 +148,7 @@ Feature: copying file using file id
Scenario Outline: copy a file from personal to project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has uploaded file with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
@@ -165,7 +165,7 @@ Feature: copying file using file id
Scenario Outline: copy a file from project to personal space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/" inside space "Personal" using file-id path "<dav-path>"

View File

@@ -35,7 +35,7 @@ Feature: accessing files using file id
Scenario Outline: get content of a file inside a project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" sends HTTP method "GET" to URL "<dav-path>"
@@ -81,7 +81,7 @@ Feature: accessing files using file id
Scenario Outline: sharee gets content of a file inside a shared space
Given user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
And user "Alice" has shared a space "new-space" with settings:

View File

@@ -77,7 +77,7 @@ Feature: moving/renaming file using file id
Scenario Outline: move a file into a folder inside project space
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "/folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
@@ -96,7 +96,7 @@ Feature: moving/renaming file using file id
Scenario Outline: move a file into a sub-folder inside project space
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "/textfile.txt"
And we save it into "FILEID"
@@ -115,7 +115,7 @@ Feature: moving/renaming file using file id
Scenario Outline: move a file from folder to root inside project space
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/textfile.txt"
And we save it into "FILEID"
@@ -134,7 +134,7 @@ Feature: moving/renaming file using file id
Scenario Outline: move a file from sub-folder to root inside project space
Given using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the GraphApi
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/sub-folder/textfile.txt"
And we save it into "FILEID"

View File

@@ -53,7 +53,7 @@ Feature: propfind a file using file id
Scenario Outline: send a PROPFIND request to a file of inside project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" sends HTTP method "PROPFIND" to URL "<dav-path>"
@@ -70,7 +70,7 @@ Feature: propfind a file using file id
Scenario Outline: send a PROPFIND request to a file inside a folder of project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "new-space"
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "/folder/textfile.txt"
And we save it into "FILEID"
@@ -89,7 +89,7 @@ Feature: propfind a file using file id
Scenario Outline: send a PROPFIND request to a file inside project space owned by another user
Given user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile.txt"
And we save it into "FILEID"
When user "Brian" sends HTTP method "PROPFIND" to URL "<dav-path>"

View File

@@ -35,7 +35,7 @@ Feature: update files using file id
Scenario Outline: update content of a file inside a project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some data" to "/textfile.txt"
And we save it into "FILEID"
When user "Alice" sends HTTP method "PUT" to URL "<dav-path>" with content "updated content"
@@ -83,7 +83,7 @@ Feature: update files using file id
Scenario Outline: sharee with different role tries to update content of a file inside a shared space
Given user "Brian" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "new-space" with content "some data" to "/textfile.txt"
And we save it into "FILEID"
And user "Alice" has shared a space "new-space" with settings:

View File

@@ -13,7 +13,7 @@ Feature: copy file
Scenario Outline: copying a file within a same project space with role manager and editor
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/insideSpace.txt"
And user "Alice" has shared a space "Project" with settings:
@@ -32,7 +32,7 @@ Feature: copy file
Scenario: copying a file within a same project space with role viewer
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
And user "Alice" has shared a space "Project" with settings:
@@ -46,8 +46,8 @@ Feature: copy file
Scenario Outline: user copies a file from a project space with a different role to a project space with the manager role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project1" with the default quota using the GraphApi
And user "Brian" has created a space "Project2" with the default quota using the GraphApi
And user "Brian" has created a space "Project1" with the default quota using the Graph API
And user "Brian" has created a space "Project2" with the default quota using the Graph API
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
And user "Brian" has shared a space "Project2" with settings:
| shareWith | Alice |
@@ -70,8 +70,8 @@ Feature: copy file
Scenario Outline: user copies a file from a project space with a different role to a project space with a viewer role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project1" with the default quota using the GraphApi
And user "Brian" has created a space "Project2" with the default quota using the GraphApi
And user "Brian" has created a space "Project1" with the default quota using the Graph API
And user "Brian" has created a space "Project2" with the default quota using the Graph API
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
And user "Brian" has shared a space "Project2" with settings:
| shareWith | Alice |
@@ -91,7 +91,7 @@ Feature: copy file
Scenario Outline: user copies a file from project space with different role to personal space
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
@@ -110,7 +110,7 @@ Feature: copy file
Scenario Outline: user copies a file from project space with different role to share space with editor role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created folder "/testshare"
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -132,7 +132,7 @@ Feature: copy file
Scenario Outline: user copies a file from project space with different role to Shares with viewer role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created folder "/testshare"
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -153,7 +153,7 @@ Feature: copy file
Scenario Outline: user copies a file from personal space to project space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |
@@ -171,7 +171,7 @@ Feature: copy file
Scenario: user copies a file from personal space to project space with role viewer
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | viewer |
@@ -224,7 +224,7 @@ Feature: copy file
Scenario Outline: user copies a file from share space with different role to project space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |
@@ -247,7 +247,7 @@ Feature: copy file
Scenario Outline: user copies a file from share space with different role to project space with role viewer
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | viewer |
@@ -309,7 +309,7 @@ Feature: copy file
Scenario Outline: copying a folder within the same project space with different role
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/folder1" in space "Project"
And user "Alice" has created a folder "/folder2" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/folder2/demo.txt"
@@ -329,8 +329,8 @@ Feature: copy file
Scenario Outline: user copies a folder from a project space with different role to a project space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project1" with the default quota using the GraphApi
And user "Brian" has created a space "Project2" with the default quota using the GraphApi
And user "Brian" has created a space "Project1" with the default quota using the Graph API
And user "Brian" has created a space "Project2" with the default quota using the Graph API
And user "Brian" has created a folder "/folder1" in space "Project1"
And user "Brian" has uploaded a file inside space "Project1" with content "some content" to "/folder1/demo.txt"
And user "Brian" has shared a space "Project2" with settings:
@@ -356,7 +356,7 @@ Feature: copy file
Scenario Outline: user copies a folder from project space with different role to personal space
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created a folder "/folder1" in space "Project"
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "/folder1/demo.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -375,7 +375,7 @@ Feature: copy file
Scenario Outline: Uuer copies a folder from project space with different role to share space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created folder "/testshare"
And user "Brian" has created a folder "/folder1" in space "Project"
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "/folder1/demo.txt"
@@ -400,7 +400,7 @@ Feature: copy file
Scenario Outline: user copies a folder from personal space to project space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |
@@ -452,7 +452,7 @@ Feature: copy file
Scenario Outline: user copies a folder from share space with different role to project space with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |
@@ -475,7 +475,7 @@ Feature: copy file
Scenario Outline: user copies a folder from share space with different role to project space with role viewer
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | viewer |
@@ -737,7 +737,7 @@ Feature: copy file
Scenario: copying a file with an option "keep both" inside of the project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/newfolder/insideSpace.txt"
And user "Alice" has uploaded a file inside space "Project" with content "new content" to "/insideSpace.txt"
@@ -751,7 +751,7 @@ Feature: copy file
@issue-4797
Scenario: copying a file with an option "replace" inside of the project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "old content version 1" to "/newfolder/insideSpace.txt"
And user "Alice" has uploaded a file inside space "Project" with content "old content version 2" to "/newfolder/insideSpace.txt"
@@ -770,7 +770,7 @@ Feature: copy file
Scenario: copying a file from Personal to Shares with an option "keep both"
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/newfolder/personal.txt"
And user "Alice" creates a share inside of space "Project" with settings:
@@ -792,7 +792,7 @@ Feature: copy file
Scenario: copying a file from Personal to Shares with an option "replace"
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "Project" with the default quota using the GraphApi
And user "Alice" has created a space "Project" with the default quota using the Graph API
And user "Alice" has created a folder "/newfolder" in space "Project"
And user "Alice" has uploaded a file inside space "Project" with content "old content version 1" to "/newfolder/personal.txt"
And user "Alice" has uploaded a file inside space "Project" with content "old content version 2" to "/newfolder/personal.txt"

View File

@@ -13,7 +13,7 @@ Feature: move (rename) file
Scenario Outline: moving a file within same space project with role manager and editor
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created a folder "newfolder" in space "Project"
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -33,7 +33,7 @@ Feature: move (rename) file
Scenario: moving a file within same space project with role viewer
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created a folder "newfolder" in space "Project"
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -49,8 +49,8 @@ Feature: move (rename) file
Scenario Outline: user moves a file from a space project with different a role to a space project with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project1" with the default quota using the GraphApi
And user "Brian" has created a space "Project2" with the default quota using the GraphApi
And user "Brian" has created a space "Project1" with the default quota using the Graph API
And user "Brian" has created a space "Project2" with the default quota using the Graph API
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "project1.txt"
And user "Brian" has shared a space "Project2" with settings:
| shareWith | Alice |
@@ -79,7 +79,7 @@ Feature: move (rename) file
Scenario Outline: user moves a file from a space project with different role to a space personal
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "project.txt"
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
@@ -99,7 +99,7 @@ Feature: move (rename) file
Scenario Outline: user moves a file from space project with different role to space Shares with different role (permission)
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has created folder "/testshare"
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "project.txt"
And user "Brian" has shared a space "Project" with settings:
@@ -125,7 +125,7 @@ Feature: move (rename) file
Scenario Outline: user moves a file from space personal to space project with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |
@@ -181,7 +181,7 @@ Feature: move (rename) file
Scenario Outline: user moves a file from space Shares with different role (permissions) to space project with different role
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
And user "Brian" has created a space "Project" with the default quota using the GraphApi
And user "Brian" has created a space "Project" with the default quota using the Graph API
And user "Brian" has shared a space "Project" with settings:
| shareWith | Alice |
| role | <role> |

View File

@@ -10,7 +10,7 @@ Feature: Public can download folders from project space public link
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
And user "Alice" has created a space "new-space" with the default quota using the Graph API
Scenario: download a folder from public link of a space

View File

@@ -13,7 +13,7 @@ Feature: Share spaces
| Brian |
| Bob |
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "share space" with the default quota using the GraphApi
And user "Alice" has created a space "share space" with the default quota using the Graph API
And using spaces DAV path
@@ -195,8 +195,8 @@ Feature: Share spaces
Scenario Outline: user shares a space with a group
Given group "group2" has been created
And the administrator has added a user "Brian" to the group "group2" using GraphApi
And the administrator has added a user "Bob" to the group "group2" using GraphApi
And the administrator has added a user "Brian" to the group "group2" using the Graph API
And the administrator has added a user "Bob" to the group "group2" using the Graph API
When user "Alice" shares a space "share space" with settings:
| shareWith | group2 |
| shareType | 8 |
@@ -213,7 +213,7 @@ Feature: Share spaces
Scenario Outline: user has no access to the space if access for the group has been removed
Given group "group2" has been created
And the administrator has added a user "Brian" to the group "group2" using GraphApi
And the administrator has added a user "Brian" to the group "group2" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | group2 |
| shareType | 8 |
@@ -230,8 +230,8 @@ Feature: Share spaces
Scenario: user has no access to the space if he has been removed from the group
Given group "group2" has been created
And the administrator has added a user "Brian" to the group "group2" using GraphApi
And the administrator has added a user "Bob" to the group "group2" using GraphApi
And the administrator has added a user "Brian" to the group "group2" using the Graph API
And the administrator has added a user "Bob" to the group "group2" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | group2 |
| shareType | 8 |
@@ -246,8 +246,8 @@ Feature: Share spaces
Scenario: users don't have access to the space if the group has been deleted
Given group "group2" has been created
And the administrator has added a user "Brian" to the group "group2" using GraphApi
And the administrator has added a user "Bob" to the group "group2" using GraphApi
And the administrator has added a user "Brian" to the group "group2" using the Graph API
And the administrator has added a user "Bob" to the group "group2" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | group2 |
| shareType | 8 |
@@ -260,7 +260,7 @@ Feature: Share spaces
Scenario: user increases permissions for one member of the group or for the entire group
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | sales |
| shareType | 8 |
@@ -277,7 +277,7 @@ Feature: Share spaces
Scenario: user increases permissions for the group, so the user's permissions are increased
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | Brian |
| role | viewer |
@@ -308,7 +308,7 @@ Feature: Share spaces
Scenario Outline: space Admin can share a space to the group with an expiration date
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
When user "Alice" shares a space "share space" with settings:
| shareWith | sales |
| shareType | 8 |
@@ -343,7 +343,7 @@ Feature: Share spaces
Scenario Outline: update the expiration date of a space in group share
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | sales |
| shareType | 8 |
@@ -383,7 +383,7 @@ Feature: Share spaces
Scenario Outline: delete the expiration date of a space in group share
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | sales |
| shareType | 8 |
@@ -420,7 +420,7 @@ Feature: Share spaces
Scenario Outline: check the end of expiration of a space in group share
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has shared a space "share space" with settings:
| shareWith | sales |
| shareType | 8 |
@@ -453,7 +453,7 @@ Feature: Share spaces
Scenario: user cannot share the personal space to a group
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" shares a space "Alice Hansen" with settings:
| shareWith | sales |
| shareType | 8 |

View File

@@ -13,7 +13,7 @@ Feature: Share spaces via link
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "share space" with the default quota using the GraphApi
And user "Alice" has created a space "share space" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "share space" with content "some content" to "test.txt"

View File

@@ -14,7 +14,7 @@ Feature: Share a file or folder that is inside a space
| Bob |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "share sub-item" with the default quota using the GraphApi
And user "Alice" has created a space "share sub-item" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "share sub-item"
And user "Alice" has uploaded a file inside space "share sub-item" with content "some content" to "file.txt"
And using new DAV path
@@ -103,7 +103,7 @@ Feature: Share a file or folder that is inside a space
Scenario: user shares the folder to the group
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
When user "Alice" creates a share inside of space "share sub-item" with settings:
| path | folder |
| shareWith | sales |
@@ -161,7 +161,7 @@ Feature: Share a file or folder that is inside a space
@issue-5823
Scenario: check the end of expiration date in group share
Given group "sales" has been created
And the administrator has added a user "Brian" to the group "sales" using GraphApi
And the administrator has added a user "Brian" to the group "sales" using the Graph API
And user "Alice" has created a share inside of space "share sub-item" with settings:
| path | folder |
| shareWith | sales |

View File

@@ -27,7 +27,7 @@ Feature: Share a file or folder that is inside a space via public link
| Brian |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "share sub-item" with the default quota using the GraphApi
And user "Alice" has created a space "share sub-item" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "share sub-item"
And user "Alice" has uploaded a file inside space "share sub-item" with content "some content" to "folder/file.txt"

View File

@@ -794,7 +794,7 @@ class GraphContext implements Context {
}
/**
* @Given /^the administrator has added a user "([^"]*)" to the group "([^"]*)" using GraphApi$/
* @Given /^the administrator has added a user "([^"]*)" to the group "([^"]*)" using the Graph API$/
*
* @param string $user
* @param string $group

View File

@@ -525,8 +525,8 @@ class SpacesContext implements Context {
}
/**
* @When /^user "([^"]*)" lists all available spaces via the GraphApi$/
* @When /^user "([^"]*)" lists all available spaces via the GraphApi with query "([^"]*)"$/
* @When /^user "([^"]*)" lists all available spaces via the Graph API$/
* @When /^user "([^"]*)" lists all available spaces via the Graph API with query "([^"]*)"$/
*
* @param string $user
* @param string $query
@@ -564,9 +564,9 @@ class SpacesContext implements Context {
}
/**
* @When /^user "([^"]*)" lists all spaces via the GraphApi$/
* @When /^user "([^"]*)" lists all spaces via the GraphApi with query "([^"]*)"$/
* @When /^user "([^"]*)" tries to list all spaces via the GraphApi$/
* @When /^user "([^"]*)" lists all spaces via the Graph API$/
* @When /^user "([^"]*)" lists all spaces via the Graph API with query "([^"]*)"$/
* @When /^user "([^"]*)" tries to list all spaces via the Graph API$/
*
* @param string $user
* @param string $query
@@ -583,7 +583,7 @@ class SpacesContext implements Context {
}
/**
* @When /^user "([^"]*)" looks up the single space "([^"]*)" via the GraphApi by using its id$/
* @When /^user "([^"]*)" looks up the single space "([^"]*)" via the Graph API by using its id$/
* @When /^user "([^"]*)" tries to look up the single space "([^"]*)" owned by the user "([^"]*)" by using its id$/
*
* @param string $user
@@ -1563,7 +1563,7 @@ class SpacesContext implements Context {
}
/**
* @Given /^user "([^"]*)" has created a space "([^"]*)" with the default quota using the GraphApi$/
* @Given /^user "([^"]*)" has created a space "([^"]*)" with the default quota using the Graph API$/
*
* @param string $user
* @param string $spaceName

View File

@@ -140,7 +140,7 @@ class TagContext implements Context {
}
/**
* @When user :user lists all available tag(s) via the GraphApi
* @When user :user lists all available tag(s) via the Graph API
*
* @param string $user
*