|
|
|
@@ -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 given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/newfolder" in space "Project"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/insideSpace.txt"
|
|
|
|
@@ -32,7 +32,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: copying a file within a same project space with role viewer
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/newfolder" in space "Project"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
|
|
|
|
@@ -46,7 +46,7 @@ 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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
|
|
|
|
@@ -70,7 +70,7 @@ 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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
|
|
|
|
And user "Brian" has shared a space "Project" with settings:
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/testshare"
|
|
|
|
|
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/testshare"
|
|
|
|
|
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -207,7 +207,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: user copies a file from share space with different role to personal space
|
|
|
|
|
Given the administrator has given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
|
|
|
|
And user "Brian" has created folder "/testshare"
|
|
|
|
|
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
|
|
|
|
And user "Brian" has shared folder "/testshare" with user "Alice" with permissions "<permissions>"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -309,7 +309,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: copying a folder within the same project space with different role
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/folder1" in space "Project"
|
|
|
|
|
And user "Alice" has created a folder "/folder2" in space "Project"
|
|
|
|
@@ -329,7 +329,7 @@ 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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/folder1" in space "Project1"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/folder1" in space "Project"
|
|
|
|
|
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "/folder1/demo.txt"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/testshare"
|
|
|
|
|
And user "Brian" has created a folder "/folder1" in space "Project"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -435,7 +435,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario Outline: user copies a folder from share space with different role to personal space
|
|
|
|
|
Given the administrator has given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
|
|
|
|
And user "Brian" has created folder "/testshare"
|
|
|
|
|
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
|
|
|
|
And user "Brian" has shared folder "/testshare" with user "Alice" with permissions "<permissions>"
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -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 given "Brian" the role "Space Admin" using the settings api
|
|
|
|
|
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 shared a space "Project" with settings:
|
|
|
|
|
| shareWith | Alice |
|
|
|
|
@@ -736,7 +736,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: copying a file with an option "keep both" inside of the project space
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/newfolder" in space "Project"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/newfolder/insideSpace.txt"
|
|
|
|
@@ -750,7 +750,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
@issue-4797
|
|
|
|
|
Scenario: copying a file with an option "replace" inside of the project space
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 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"
|
|
|
|
@@ -769,7 +769,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: copying a file from Personal to Shares with an option "keep both"
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 folder "/newfolder" in space "Project"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/newfolder/personal.txt"
|
|
|
|
@@ -791,7 +791,7 @@ Feature: copy file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: copying a file from Personal to Shares with an option "replace"
|
|
|
|
|
Given the administrator has given "Alice" the role "Space Admin" using the settings api
|
|
|
|
|
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 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"
|
|
|
|
|