fix capabilities test

This commit is contained in:
Viktor Scharf
2024-06-13 13:55:00 +02:00
parent b6141627e5
commit a5426867e1
2 changed files with 2 additions and 53 deletions
@@ -39,9 +39,7 @@ Feature: capabilities
"properties": {
"profile_picture": {
"type": "boolean",
"enum": [
true
]
"const": false
}
}
}
@@ -158,51 +156,7 @@ Feature: capabilities
"properties": {
"default_permissions": {
"type": "number",
"enum": [
31
]
}
}
}
}
}
}
}
"""
@issue-1285
Scenario: .htaccess is reported as a blacklisted file by default
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": [
"blacklisted_files"
],
"properties": {
"blacklisted_files": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "string",
"enum": [".htaccess"]
}
"const": 22
}
}
}