Initial QSfera import
This commit is contained in:
@@ -0,0 +1,254 @@
|
||||
Feature: capabilities
|
||||
As an admin
|
||||
I want to list the capabilities
|
||||
So that I can know what capabilities are available
|
||||
|
||||
Background:
|
||||
Given using OCS API version "1"
|
||||
|
||||
@smokeTest @issue-1285
|
||||
Scenario: getting default capabilities with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"files_sharing"
|
||||
],
|
||||
"properties": {
|
||||
"files_sharing": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"user"
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"profile_picture"
|
||||
],
|
||||
"properties": {
|
||||
"profile_picture": {
|
||||
"type": "boolean",
|
||||
"const": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@skipOnReva
|
||||
Scenario: getting trashbin app capability with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"files"
|
||||
],
|
||||
"properties": {
|
||||
"files": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"undelete"
|
||||
],
|
||||
"properties": {
|
||||
"undelete": {
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@skipOnReva
|
||||
Scenario: getting versions app capability with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"files"
|
||||
],
|
||||
"properties": {
|
||||
"files": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"versioning"
|
||||
],
|
||||
"properties": {
|
||||
"versioning": {
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@issue-1285
|
||||
Scenario: getting default_permissions capability with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"files_sharing"
|
||||
],
|
||||
"properties": {
|
||||
"files_sharing": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"default_permissions"
|
||||
],
|
||||
"properties": {
|
||||
"default_permissions": {
|
||||
"type": "number",
|
||||
"const": 22
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@smokeTest
|
||||
Scenario: getting default capabilities with version string with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities",
|
||||
"version"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"core"
|
||||
],
|
||||
"properties": {
|
||||
"core": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"status"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"edition",
|
||||
"product",
|
||||
"productname",
|
||||
"version",
|
||||
"versionstring"
|
||||
],
|
||||
"properties": {
|
||||
"edition": {
|
||||
"type": "string",
|
||||
"enum": ["%edition%"]
|
||||
},
|
||||
"product": {
|
||||
"type": "string",
|
||||
"enum": ["%productname%"]
|
||||
},
|
||||
"productname": {
|
||||
"type": "string",
|
||||
"enum": ["%productname%"]
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"enum": ["%version%"]
|
||||
},
|
||||
"versionstring": {
|
||||
"type": "string",
|
||||
"enum": ["%versionstring%"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"string",
|
||||
"edition",
|
||||
"product"
|
||||
],
|
||||
"properties": {
|
||||
"string": {
|
||||
"type": "string",
|
||||
"enum": ["%versionstring%"]
|
||||
},
|
||||
"edition": {
|
||||
"type": "string",
|
||||
"enum": ["%edition%"]
|
||||
},
|
||||
"product": {
|
||||
"type": "string",
|
||||
"enum": ["%productname%"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
And the major-minor-micro version data in the response should match the version string
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
Feature: default capabilities for normal user
|
||||
As a user
|
||||
I want to list capabilities
|
||||
So that I can make sure what capabilities are available to me
|
||||
|
||||
Background:
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
# adjust this scenario after fixing tagged issues as its just created to show difference
|
||||
# in the response items in different environment (core & qsfera-reva)
|
||||
@issue-1285 @issue-1286
|
||||
Scenario: getting default capabilities with normal user
|
||||
When user "Alice" retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
And the HTTP status code should be "200"
|
||||
And the ocs JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [ "capabilities" ],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"core",
|
||||
"files",
|
||||
"files_sharing"
|
||||
],
|
||||
"properties": {
|
||||
"core": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pollinterval",
|
||||
"webdav-root",
|
||||
"status"
|
||||
],
|
||||
"properties": {
|
||||
"pollinterval": {
|
||||
"const": 60
|
||||
},
|
||||
"webdav-root": {
|
||||
"const": "remote.php/webdav"
|
||||
},
|
||||
"status": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"version",
|
||||
"versionstring",
|
||||
"edition",
|
||||
"productname"
|
||||
],
|
||||
"properties": {
|
||||
"version": {
|
||||
"const": "%version%"
|
||||
},
|
||||
"versionstring": {
|
||||
"const": "%versionstring%"
|
||||
},
|
||||
"edition": {
|
||||
"const": "%edition%"
|
||||
},
|
||||
"productname": {
|
||||
"const": "%productname%"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bigfilechunking",
|
||||
"privateLinks"
|
||||
],
|
||||
"properties": {
|
||||
"bigfilechunking": {
|
||||
"const": false
|
||||
},
|
||||
"privateLinks": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"files_sharing": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"api_enabled",
|
||||
"default_permissions",
|
||||
"public",
|
||||
"resharing",
|
||||
"federation",
|
||||
"group_sharing",
|
||||
"share_with_group_members_only",
|
||||
"share_with_membership_groups_only",
|
||||
"auto_accept_share",
|
||||
"user_enumeration"
|
||||
],
|
||||
"properties": {
|
||||
"api_enabled": {
|
||||
"const": true
|
||||
},
|
||||
"default_permissions": {
|
||||
"const": 22
|
||||
},
|
||||
"public": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"enabled",
|
||||
"multiple",
|
||||
"upload",
|
||||
"supports_upload_only",
|
||||
"send_mail",
|
||||
"social_share"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"const": true
|
||||
},
|
||||
"multiple": {
|
||||
"const": true
|
||||
},
|
||||
"upload": {
|
||||
"const": true
|
||||
},
|
||||
"supports_upload_only": {
|
||||
"const": true
|
||||
},
|
||||
"send_mail": {
|
||||
"const": true
|
||||
},
|
||||
"social_share": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"resharing": {
|
||||
"const": false
|
||||
},
|
||||
"federation": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"outgoing",
|
||||
"incoming"
|
||||
],
|
||||
"properties": {
|
||||
"outgoing": {
|
||||
"const": false
|
||||
},
|
||||
"incoming": {
|
||||
"const": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"group_sharing": {
|
||||
"const": true
|
||||
},
|
||||
"share_with_group_members_only": {
|
||||
"const": true
|
||||
},
|
||||
"share_with_membership_groups_only": {
|
||||
"const": true
|
||||
},
|
||||
"auto_accept_share": {
|
||||
"const": true
|
||||
},
|
||||
"user_enumeration": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"enabled",
|
||||
"group_members_only"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"const": true
|
||||
},
|
||||
"group_members_only": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Reference in New Issue
Block a user