find accepted users
This commit is contained in:
@@ -89,7 +89,7 @@ Feature: search federation users
|
||||
"""
|
||||
|
||||
|
||||
Scenario: sers search for federation users by email
|
||||
Scenario: user search for federation users by email
|
||||
Given using server "LOCAL"
|
||||
And "Alice" has created the federation share invitation
|
||||
And using server "REMOTE"
|
||||
@@ -209,4 +209,120 @@ Feature: search federation users
|
||||
"""
|
||||
And using server "REMOTE"
|
||||
|
||||
|
||||
Scenario: users search all federation users
|
||||
Given using server "REMOTE"
|
||||
And "Brian" has created the federation share invitation
|
||||
And using server "LOCAL"
|
||||
And "Alice" has accepted invitation
|
||||
And "Carol" has accepted invitation
|
||||
When "Alice" searches for accepted users
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"display_name",
|
||||
"idp",
|
||||
"user_id",
|
||||
"mail"
|
||||
],
|
||||
"properties": {
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"const": "Brian Murphy"
|
||||
},
|
||||
"idp": {
|
||||
"type": "string",
|
||||
"const": "federation-ocis-server"
|
||||
},
|
||||
"mail": {
|
||||
"type": "string",
|
||||
"pattern": "brian@example.org"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"pattern": "^%fed_invitation_token_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
When using server "REMOTE"
|
||||
And "Brian" searches for accepted users
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "array",
|
||||
"minItems": 2,
|
||||
"maxItems": 2,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"display_name",
|
||||
"idp",
|
||||
"user_id",
|
||||
"mail"
|
||||
],
|
||||
"properties": {
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"const": "Alice Hansen"
|
||||
},
|
||||
"idp": {
|
||||
"type": "string",
|
||||
"const": "https://ocis-server:9200"
|
||||
},
|
||||
"mail": {
|
||||
"type": "string",
|
||||
"pattern": "alice@example.org"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"pattern": "^%fed_invitation_token_pattern%$"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"display_name",
|
||||
"idp",
|
||||
"user_id",
|
||||
"mail"
|
||||
],
|
||||
"properties": {
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"const": "Carol King"
|
||||
},
|
||||
"idp": {
|
||||
"type": "string",
|
||||
"const": "https://ocis-server:9200"
|
||||
},
|
||||
"mail": {
|
||||
"type": "string",
|
||||
"pattern": "carol@example.org"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string",
|
||||
"pattern": "^%fed_invitation_token_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
|
||||
# TODO try to find federation users after deleting federated conection
|
||||
Reference in New Issue
Block a user