tests: update ocm setup and docs
docs: separate provider config tests: substitution for local and remote server urls tests: create local configs tests: fix vscode debugger config tests: separate federation share steps
This commit is contained in:
@@ -148,7 +148,7 @@ Feature: create invitation
|
||||
|
||||
Please visit your federation settings and use the following details:
|
||||
Token: %fed_invitation_token%
|
||||
ProviderDomain: https://ocis-server:9200
|
||||
ProviderDomain: %local_base_url%
|
||||
"""
|
||||
|
||||
@env-config
|
||||
|
||||
@@ -71,12 +71,11 @@ Feature: delete federated connections
|
||||
And using server "LOCAL"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And using server "REMOTE"
|
||||
When user "Brian" deletes federated connection with user "Alice" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -108,12 +107,11 @@ Feature: delete federated connections
|
||||
And using server "LOCAL"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Alice" deletes federated connection with user "Brian" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And using server "REMOTE"
|
||||
|
||||
@@ -64,7 +64,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "ocis-server:9200"
|
||||
"const": "%local_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -126,7 +126,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "federation-ocis-server:10200"
|
||||
"const": "%remote_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -194,7 +194,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "ocis-server:9200"
|
||||
"const": "%local_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -256,7 +256,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "federation-ocis-server:10200"
|
||||
"const": "%remote_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -346,7 +346,7 @@ Feature: search federation users
|
||||
},
|
||||
"idp": {
|
||||
"type": "string",
|
||||
"const": "federation-ocis-server:10200"
|
||||
"const": "%remote_host_port%"
|
||||
},
|
||||
"mail": {
|
||||
"type": "string",
|
||||
@@ -385,7 +385,7 @@ Feature: search federation users
|
||||
"const": "Alice Hansen"
|
||||
},
|
||||
"idp": {
|
||||
"const": "ocis-server:9200"
|
||||
"const": "%local_host_port%"
|
||||
},
|
||||
"mail": {
|
||||
"pattern": "alice@example.org"
|
||||
@@ -409,7 +409,7 @@ Feature: search federation users
|
||||
"const": "Carol King"
|
||||
},
|
||||
"idp": {
|
||||
"const": "ocis-server:9200"
|
||||
"const": "%local_host_port%"
|
||||
},
|
||||
"mail": {
|
||||
"pattern": "carol@example.org"
|
||||
@@ -480,7 +480,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "ocis-server:9200"
|
||||
"const": "%local_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -545,7 +545,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "federation-ocis-server:10200"
|
||||
"const": "%remote_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
@@ -692,7 +692,7 @@ Feature: search federation users
|
||||
],
|
||||
"properties": {
|
||||
"issuer": {
|
||||
"const": "federation-ocis-server:10200"
|
||||
"const": "%remote_host_port%"
|
||||
},
|
||||
"issuerAssignedId": {
|
||||
"type": "string",
|
||||
|
||||
@@ -18,12 +18,11 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has uploaded file with content "ocm test" to "/textfile.txt"
|
||||
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
Then the HTTP status code should be "200"
|
||||
When using server "REMOTE"
|
||||
And user "Brian" lists the shares shared with him without retry using the Graph API
|
||||
@@ -112,12 +111,11 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And user "Alice" has created a space "projectSpace" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "folderToShare" in space "projectSpace"
|
||||
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
|
||||
| resource | folderToShare |
|
||||
| space | projectSpace |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | folderToShare |
|
||||
| space | projectSpace |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
Then the HTTP status code should be "200"
|
||||
When using server "REMOTE"
|
||||
And user "Brian" lists the shares shared with him without retry using the Graph API
|
||||
@@ -185,12 +183,11 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And user "Brian" has created folder "folderToShare"
|
||||
And user "Brian" has uploaded file with content "ocm test" to "/textfile.txt"
|
||||
When user "Brian" sends the following resource share invitation to federated user using the Graph API:
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @ocis-server:9200 |
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
Then the HTTP status code should be "200"
|
||||
When using server "LOCAL"
|
||||
And user "Alice" lists the shares shared with her without retry using the Graph API
|
||||
@@ -277,11 +274,10 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "alice's space" with the default quota using the Graph API
|
||||
When user "Alice" tries to send the following space share invitation to federated user using permissions endpoint of the Graph API:
|
||||
| space | alice's space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| space | alice's space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
Then the HTTP status code should be "400"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -334,11 +330,10 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And "Brian" has accepted invitation
|
||||
And using server "LOCAL"
|
||||
When user "Alice" tries to send the following space share invitation to federated user using root endpoint of the Graph API:
|
||||
| space | alice's space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| space | alice's space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
Then the HTTP status code should be "400"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -389,12 +384,11 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And "Brian" has accepted invitation
|
||||
And using server "LOCAL"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Alice" lists the shares shared by her using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should contain resource "textfile.txt" with the following data:
|
||||
@@ -511,12 +505,11 @@ Feature: an user shares resources using ScienceMesh application
|
||||
And using server "LOCAL"
|
||||
And user "Alice" has uploaded file with content "ocm test" to "/textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And using server "LOCAL"
|
||||
When user "Alice" gets permissions list for file "textfile.txt" of the space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
|
||||
Reference in New Issue
Block a user