2026-07-14 10:53:02 +05:45
Feature: vault
As a user
I want to store resource in vault storage
So that vault resources are isolated with regular drive storage
Background:
Given using spaces DAV path
And these users have been created with default attributes:
| username |
| Alice |
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2026-07-14 10:53:02 +05:45
Scenario: user can create folders and files in personal space in vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-14 10:53:02 +05:45
When user " Alice " creates a folder " vaultFolder " in space " Personal " in vault using the WebDav Api
Then the HTTP status code should be " 201 "
When user " Alice " uploads a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
Scenario: user can create folders and files in project space in vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-14 10:53:02 +05:45
And user " Alice " has created a space " vault-space " in vault with the default quota using the Graph API
When user " Alice " creates a folder " vaultFolder " in space " vault-space " in vault using the WebDav Api
Then the HTTP status code should be " 201 "
When user " Alice " uploads a file inside space " vault-space " with content " some content " to " vaultFile.txt " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the space " vault-space " in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
Scenario: resources in drive and vault are isolated
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-14 10:53:02 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " driveFile.txt "
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
When user " Alice " uploads a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
And for user " Alice " the space " Personal " should contain these entries:
| driveFolder |
| driveFile.txt |
And for user " Alice " the space " Personal " in vault should not contain these entries:
| driveFolder |
| driveFile.txt |
And for user " Alice " the space " Personal " should not contain these entries:
| vaultFolder |
| vaultFile.txt |
2026-07-15 11:27:47 +05:45
@env-config @keycloak-config
Scenario: user can set custom auth level names
Given the administrator has set the Keycloak realm attribute " acr.loa.map " to '{" regular ":" 1 "," testing ":" 2 "}'
2026-09-10 16:49:07 +05:45
# OCIS_MFA_AUTH_LEVEL_NAMES is read by both the proxy (mfa.go, gates access) and the
# frontend (exposed via the capabilities endpoint, which tells the web app which acr_values
# to request during step-up). In k8s each is a separate deployment, so both must be
# reconfigured explicitly - unlike the single-binary setup, there is no "just set it
# globally" here.
And the config " OCIS_MFA_AUTH_LEVEL_NAMES " has been set to " testing " for " proxy " service
And the config " OCIS_MFA_AUTH_LEVEL_NAMES " has been set to " testing " for " frontend " service
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
2026-07-15 11:27:47 +05:45
When user " Alice " uploads a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
2026-08-18 14:36:40 +05:45
And user " Alice " should have a JWT token with an ACR value " testing "
2026-07-15 14:12:08 +05:45
Scenario: check capabilities endpoint for vault
Given using OCS API version " 2 "
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
2026-07-15 14:12:08 +05:45
When user " Alice " retrieves the vault mode capabilities using the capabilities API
Then the OCS status code should be " 200 "
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",
"auth",
"vault"
],
"properties": {
"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": {
"federation": {
"type": "object",
"required": [
"outgoing",
"incoming"
],
"properties": {
"outgoing": {
"const": false
},
"incoming": {
"const": false
}
}
},
"public": {
"type": "object",
"required": [
"enabled",
"multiple",
"upload",
"supports_upload_only",
"send_mail",
"social_share"
],
"properties": {
"enabled": {
"const": false
}
}
}
}
},
"auth": {
"type": "object",
"required": [
"mfa"
],
"properties": {
"mfa": {
"type": "object",
"required": [
"enabled",
"levelnames"
],
"properties": {
"enabled": {
"const": true
},
"levelnames": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"const": "advanced"
}
}
}
}
}
},
"vault": {
"type": "object",
"required": [
"enabled",
"vault_storage_provider"
],
"properties": {
"enabled": {
"const": true
},
"vault_storage_provider": {
"pattern": "%uuidv4_pattern%"
}
}
}
}
}
}
}
"""
2026-07-28 14:23:42 +05:45
Scenario: user copies folder from drive to vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
When user " Alice " copies folder " driveFolder " from space " Personal " to " driveFolder " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " in vault should contain these entries:
| driveFolder |
And for user " Alice " the space " Personal " should contain these entries:
| driveFolder |
Scenario: user copies file from drive to vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testfile.txt "
When user " Alice " copies file " testfile.txt " from space " Personal " to " testfile.txt " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the content of the file " testfile.txt " of the space " Personal " in vault should be " some content "
And for user " Alice " the space " Personal " should contain these entries:
| testfile.txt |
Scenario: user tries to copy folder from vault to drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
When user " Alice " copies folder " vaultFolder " from space " Personal " in vault to " vaultFolder " inside space " Personal " using the WebDAV API
Then the HTTP status code should be " 409 "
And for user " Alice " the space " Personal " should not contain these entries:
| vaultFolder |
And for user " Alice " the space " Personal " in vault should contain these entries:
| vaultFolder |
Scenario: user tries to copy file from vault to drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testfile.txt " in vault
When user " Alice " copies file " testfile.txt " from space " Personal " in vault to " testfile.txt " inside space " Personal " using the WebDAV API
Then the HTTP status code should be " 409 "
And for user " Alice " the space " Personal " should not contain these entries:
| testfile.txt |
And for user " Alice " the space " Personal " in vault should contain these entries:
| testfile.txt |
Scenario: user copies sub-folder from drive to vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has created a folder " driveFolder/subFolder " in space " Personal "
When user " Alice " copies folder " driveFolder/subFolder " from space " Personal " to " subFolder " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " in vault should contain these entries:
| subFolder |
And for user " Alice " folder " driveFolder " of the space " Personal " should contain these entries:
| subFolder |
Scenario: user copies file inside folder from drive to vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " driveFolder/testfile.txt "
When user " Alice " copies file " driveFolder/testfile.txt " from space " Personal " to " testfile.txt " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the content of the file " testfile.txt " of the space " Personal " in vault should be " some content "
And for user " Alice " folder " driveFolder " of the space " Personal " should contain these entries:
| testfile.txt |
Scenario: user copies sub-folder from drive to a folder in vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has created a folder " driveFolder/subFolder " in space " Personal "
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
When user " Alice " copies folder " driveFolder/subFolder " from space " Personal " to " vaultFolder/subFolder " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " folder " vaultFolder " of the space " Personal " in vault should contain these entries:
| subFolder |
And for user " Alice " folder " driveFolder " of the space " Personal " should contain these entries:
| subFolder |
Scenario: user copies file inside folder from drive to a folder in vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-28 14:23:42 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " driveFolder/testfile.txt "
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
When user " Alice " copies file " driveFolder/testfile.txt " from space " Personal " to " vaultFolder/testfile.txt " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the content of the file " vaultFolder/testfile.txt " of the space " Personal " in vault should be " some content "
And for user " Alice " folder " driveFolder " of the space " Personal " should contain these entries:
| testfile.txt |
2026-07-30 12:07:41 +05:45
2026-08-13 14:53:57 +05:45
Scenario: user tries to create a public link of a folder inside vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-13 14:53:57 +05:45
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
When user " Alice " creates the following resource link share using the Graph API:
| resource | vaultFolder |
| space | Personal |
| permissionsRole | View |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "public links are not allowed for vault resources"
}
}
}
}
}
"""
Scenario: user tries to create a public link of a file inside vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-13 14:53:57 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testfile.txt " in vault
When user " Alice " creates the following resource link share using the Graph API:
| resource | testfile.txt |
| space | Personal |
| permissionsRole | View |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "public links are not allowed for vault resources"
}
}
}
}
}
"""
Scenario: user tries to create a public link of a space root inside vault
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-13 14:53:57 +05:45
And user " Alice " has created a space " vault-space " in vault with the default quota using the Graph API
When user " Alice " tries to create the following space link share using permissions endpoint of the Graph API:
| space | vault-space |
| permissionsRole | View |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "public links are not allowed for vault resources"
}
}
}
}
}
"""
2026-07-30 12:07:41 +05:45
Scenario Outline: send share invitation for project space in vault to user with different roles (permissions endpoint)
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "object",
"required": [
"grantedToV2",
"roles"
],
"properties": {
"grantedToV2": {
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"type": "object",
"required": [
"displayName",
"id"
],
"properties": {
"displayName": {
"const": "Brian Murphy"
},
"id": {
"type": "string",
"pattern": "^%user_id_pattern%$"
}
}
}
}
},
"roles": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "string",
"pattern": "^%role_id_pattern%$"
}
}
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: send share invitation for disabled project space in vault to user with different roles (permissions endpoint)
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Admin " has disabled a space " new-space " in vault
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 404 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"const": "itemNotFound"
},
"message": {
"type": "string",
"pattern": "^stat: error: not found: %user_id_pattern%$"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: send share invitation for deleted project space in vault to user with different roles (permissions endpoint)
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Admin " has disabled a space " new-space " in vault
And user " Admin " has deleted a space " new-space " in vault
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 404 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"const": "itemNotFound"
},
"message": {
"const": "stat: error: not found: "
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: try to send share invitation for personal space in vault to user with different roles (permissions endpoint)
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "space type is not eligible for sharing"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: try to share Shares space in vault with a user (permissions endpoint)
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | Shares |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": " <error-message> "
}
}
}
}
}
"""
Examples:
| permissions-role | error-message |
| Space Viewer | role not applicable to this resource |
| Space Editor | role not applicable to this resource |
| Manager | role not applicable to this resource |
Scenario Outline: invite user to a project space in vault with different roles using root endpoint
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
When user " Alice " sends the following space share invitation using root endpoint of the Graph API:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "object",
"required": [
"grantedToV2",
"roles"
],
"properties": {
"grantedToV2": {
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"type": "object",
"required": [
"displayName",
"id"
],
"properties": {
"displayName": {
"type": "string",
"const": "Brian Murphy"
},
"id": {
"type": "string",
"pattern": "^%user_id_pattern%$"
}
}
}
}
},
"roles": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "string",
"pattern": "^%role_id_pattern%$"
}
}
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: try to invite user to personal drive in vault with different roles using root endpoint
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
When user " Alice " tries to send the following space share invitation using root endpoint of the Graph API:
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "unsupported space type"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: try to invite user to Shares drive in vault with different roles using root endpoint
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-07-30 12:07:41 +05:45
And user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-07-30 12:07:41 +05:45
When user " Alice " tries to send the following space share invitation using root endpoint of the Graph API:
| space | Shares |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 400 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "unsupported space type"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
2026-08-07 09:11:49 +05:45
Scenario: search results for resources in Personal space should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a folder " testDriveFolder " in space " Personal "
And user " Alice " has created a folder " testVaultFolder " in space " Personal " in vault
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testVaultFile.txt " in vault
When user " Alice " searches for " *test* " inside space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these entries:
| testVaultFolder |
| testVaultFile.txt |
When user " Alice " searches for " *test* " inside space " Personal " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these entries:
| testDriveFolder |
| testDriveFile.txt |
Scenario: search results for resources inside folder with same name should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a folder " newFolder " in space " Personal "
And user " Alice " has created a folder " newFolder " in space " Personal " in vault
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " newFolder/testDriveFile.txt "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " newFolder/testVaultFile.txt " in vault
When user " Alice " searches for " *test* " inside folder " newFolder " in space " Personal " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these entries:
| newFolder/testVaultFile.txt |
When user " Alice " searches for " *test* " inside folder " newFolder " in space " Personal " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these entries:
| newFolder/testDriveFile.txt |
Scenario: search result for resources inside project spaces with same name should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a space " new-space " with the default quota using the Graph API
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Alice " has created a folder " testDriveFolder " in space " new-space "
And user " Alice " has created a folder " testVaultFolder " in space " new-space " in vault
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " testVaultFile.txt " in vault
When user " Alice " searches for " *test* " inside space " new-space " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these entries:
| testVaultFolder |
| testVaultFile.txt |
When user " Alice " searches for " *test* " inside space " new-space " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these entries:
| testDriveFolder |
| testDriveFile.txt |
@tikaServiceNeeded
Scenario: search result by content of file should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " content of file in drive " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " Personal " with content " content of file in vault " to " testVaultFile.txt " in vault
When user " Alice " searches for " Content:content " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these files:
| testVaultFile.txt |
When user " Alice " searches for " Content:content " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these files:
2026-08-24 12:01:48 +05:45
| testDriveFile.txt |
2026-08-07 09:11:49 +05:45
@tikaServiceNeeded
Scenario: search result by content of file inside project space should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a space " new-space " with the default quota using the Graph API
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Alice " has uploaded a file inside space " new-space " with content " content of file in drive " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " new-space " with content " content of file in vault " to " testVaultFile.txt " in vault
When user " Alice " searches for " Content:content " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these files:
| testVaultFile.txt |
When user " Alice " searches for " Content:content " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 1 " entries
And the search result of user " Alice " should contain only these files:
2026-08-24 12:01:48 +05:45
| testDriveFile.txt |
2026-08-07 09:11:49 +05:45
Scenario: search results by resource tags should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " testVaultFile.txt " in vault
And user " Alice " has tagged the following files of the space " Personal ":
| path | tagName |
| testDriveFile.txt | tag1 |
And user " Alice " has tagged the following folders of the space " Personal ":
| path | tagName |
| driveFolder | tag1 |
And user " Alice " has tagged the following files of the space " Personal " in vault:
| path | tagName |
| testVaultFile.txt | tag1 |
And user " Alice " has tagged the following folders of the space " Personal " in vault:
| path | tagName |
| vaultFolder | tag1 |
When user " Alice " searches for " Tags:tag1 " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these files:
| testVaultFile.txt |
| vaultFolder |
When user " Alice " searches for " Tags:tag1 " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these files:
| testDriveFile.txt |
| driveFolder |
Scenario: search results by resource tags inside project space should be isolated between vault and drive
2026-09-16 12:12:55 +05:45
Given user " Alice " has been set up in oCIS
2026-08-07 09:11:49 +05:45
And user " Alice " has created a space " new-space " with the default quota using the Graph API
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Alice " has created a folder " driveFolder " in space " new-space "
And user " Alice " has created a folder " vaultFolder " in space " new-space " in vault
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " testDriveFile.txt "
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " testVaultFile.txt " in vault
And user " Alice " has tagged the following files of the space " new-space ":
| path | tagName |
| testDriveFile.txt | tag1 |
And user " Alice " has tagged the following folders of the space " new-space ":
| path | tagName |
| driveFolder | tag1 |
And user " Alice " has tagged the following files of the space " new-space " in vault:
| path | tagName |
| testVaultFile.txt | tag1 |
And user " Alice " has tagged the following folders of the space " new-space " in vault:
| path | tagName |
| vaultFolder | tag1 |
When user " Alice " searches for " Tags:tag1 " in vault using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these files:
| testVaultFile.txt |
| vaultFolder |
When user " Alice " searches for " Tags:tag1 " using the WebDAV API
Then the HTTP status code should be " 207 "
And the search result should contain " 2 " entries
And the search result of user " Alice " should contain only these files:
| testDriveFile.txt |
| driveFolder |
2026-08-24 12:01:48 +05:45
Scenario Outline: folder share received from vault and drive personal space should be isolated
Given user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-08-24 12:01:48 +05:45
And user " Alice " has created a folder " driveFolder " in space " Personal "
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
And user " Alice " has sent the following resource share invitation:
| resource | driveFolder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | vaultFolder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And user " Brian " should have a share in vault " vaultFolder " synced
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space | storage |
| vaultFolder | <permissions-role> | Alice | Personal | vault |
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space |
| driveFolder | <permissions-role> | Alice | Personal |
Examples:
| permissions-role |
| Viewer |
| Editor |
| Uploader |
Scenario Outline: file share received from vault and drive personal space should be isolated
Given user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-08-24 12:01:48 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " driveFile.txt "
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault
And user " Alice " has sent the following resource share invitation:
| resource | driveFile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | vaultFile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And user " Brian " should have a share in vault " vaultFile.txt " synced
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space | storage |
| vaultFile.txt | <permissions-role> | Alice | Personal | vault |
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space |
| driveFile.txt | <permissions-role> | Alice | Personal |
Examples:
| permissions-role |
| Viewer |
| File Editor |
Scenario Outline: folder share received from vault and drive project space should be isolated
Given user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-08-24 12:01:48 +05:45
And user " Alice " has created a space " new-space " with the default quota using the Graph API
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Alice " has created a folder " driveFolder " in space " new-space "
And user " Alice " has created a folder " vaultFolder " in space " new-space " in vault
And user " Alice " has sent the following resource share invitation:
| resource | driveFolder |
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | vaultFolder |
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And user " Brian " should have a share in vault " vaultFolder " synced
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space | storage |
| vaultFolder | <permissions-role> | Alice | new-space | vault |
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space |
| driveFolder | <permissions-role> | Alice | new-space |
Examples:
| permissions-role |
| Viewer |
| Editor |
| Uploader |
Scenario Outline: folder share received from vault and drive project space should be isolated
Given user " Brian " has been created with default attributes
2026-09-09 12:44:45 +02:00
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-08-24 12:01:48 +05:45
And user " Alice " has created a space " new-space " with the default quota using the Graph API
And user " Alice " has created a space " new-space " in vault with the default quota using the Graph API
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " driveFile.txt "
And user " Alice " has uploaded a file inside space " new-space " with content " some content " to " vaultFile.txt " in vault
And user " Alice " has sent the following resource share invitation:
| resource | driveFile.txt |
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | vaultFile.txt |
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And user " Brian " should have a share in vault " vaultFile.txt " synced
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space | storage |
| vaultFile.txt | <permissions-role> | Alice | new-space | vault |
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space |
| driveFile.txt | <permissions-role> | Alice | new-space |
Examples:
| permissions-role |
| Viewer |
| File Editor |
2026-09-04 12:00:32 +05:45
2026-09-14 15:49:35 +02:00
Scenario Outline: try to send share invitation for a resource in vault to a user without the vault mode permission
Given user " Brian " has been created with default attributes
And the administrator has assigned the role " User Light " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-09-14 15:49:35 +02:00
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | <resource> |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 403 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "innererror", "message"],
"properties": {
"code": {
"const": "accessDenied"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "grantee is not allowed to access vault resources"
}
}
}
}
}
"""
Examples:
| resource | permissions-role |
| vaultFolder | Viewer |
| vaultFolder | Editor |
| vaultFile.txt | Viewer |
| vaultFile.txt | File Editor |
Scenario: try to send share invitation for a resource in vault to a group
Given these groups have been created:
| groupname |
| vault-group |
And user " Brian " has been created with default attributes
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-09-14 15:49:35 +02:00
And user " Brian " has been added to group " vault-group "
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
2026-09-14 15:49:35 +02:00
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | vaultFile.txt |
| space | Personal |
| sharee | vault-group |
| shareType | group |
| permissionsRole | Viewer |
| storage | vault |
Then the HTTP status code should be " 403 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "message"],
"properties": {
"code": {
"const": "accessDenied"
},
"message": {
"const": "grantee is not allowed to access vault resources"
}
}
}
}
}
"""
2026-10-07 16:03:09 +02:00
Scenario Outline: server sets a default 30-day expiration when a user share is created without one
Given user " Brian " has been created with default attributes
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
And user " Alice " has uploaded a file inside space " Personal " with content " to share " to " textfile1.txt " in vault
And user " Alice " has created a folder " FolderToShare " in space " Personal " in vault
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | <resource> |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"type": "object",
"required": [
"id",
"roles",
"grantedToV2",
"expirationDateTime"
],
"properties": {
"expirationDateTime": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
"""
And the last share invitation should have an expiration date approximately " 30 " days from now
Examples:
| permissions-role | resource |
| Viewer | textfile1.txt |
| Viewer | FolderToShare |
2026-09-14 15:49:35 +02:00
Scenario Outline: try to send share invitation for a project space in vault to a user without the vault mode permission (permissions endpoint)
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
And user " Brian " has been created with default attributes
And the administrator has assigned the role " User Light " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-09-14 15:49:35 +02:00
And user " Alice " has created a space " vault-space " in vault with the default quota using the Graph API
When user " Alice " sends the following space share invitation using permissions endpoint of the Graph API:
| space | vault-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 403 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": ["code", "message"],
"properties": {
"code": {
"const": "accessDenied"
},
"message": {
"const": "grantee is not allowed to access vault resources"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |
Scenario Outline: send share invitation for a resource in vault to a user with the vault mode permission
Given user " Brian " has been created with default attributes
And the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
And user " Brian " has been set up in oCIS
2026-09-14 15:49:35 +02:00
And user " Alice " has created a folder " vaultFolder " in space " Personal " in vault
And user " Alice " has uploaded a file inside space " Personal " with content " some content " to " vaultFile.txt " in vault
When user " Alice " sends the following resource share invitation using the Graph API:
| resource | <resource> |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
| storage | vault |
Then the HTTP status code should be " 200 "
And user " Brian " should have a share in vault " <resource> " synced
And user " Brian " should have the following resource shares:
| resource | permissionsRole | sharer | space | storage |
| <resource> | <permissions-role> | Alice | Personal | vault |
Examples:
| resource | permissions-role |
| vaultFolder | Viewer |
| vaultFile.txt | Viewer |
2026-09-09 12:44:45 +02:00
Scenario Outline: users with role Admin or Space Admin should have access to vault
2026-09-04 12:00:32 +05:45
Given the administrator has assigned the role " <user-role> " to user " Alice " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Alice " has been set up in oCIS
2026-09-04 12:00:32 +05:45
When user " Alice " gets the permissions list using the settings API
Then the HTTP status code should be " 201 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["permissions"],
"properties": {
"permissions": {
"type": "array",
"minItems": <permission-count> ,
"maxItems": <permission-count> ,
"uniqueItems": true,
"contains": {
"const": "VaultMode.ReadWriteEnabled.own"
}
}
}
}
"""
Examples:
| user-role | permission-count |
| Admin | 33 |
| Space Admin | 27 |
2026-09-09 12:44:45 +02:00
Scenario Outline: users with role User or User Light should not have access to vault
Given user " Brian " has been created with default attributes
And the administrator has assigned the role " <user-role> " to user " Brian " using the Graph API
2026-09-16 12:12:55 +05:45
And user " Brian " has been set up in oCIS
2026-09-09 12:44:45 +02:00
When user " Brian " gets the permissions list using the settings API
2026-09-04 12:00:32 +05:45
Then the HTTP status code should be " 201 "
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["permissions"],
"properties": {
"permissions": {
"type": "array",
2026-09-09 12:44:45 +02:00
"minItems": <permission-count> ,
"maxItems": <permission-count> ,
2026-09-04 12:00:32 +05:45
"uniqueItems": true,
"not": {
"contains": {
"const": "VaultMode.ReadWriteEnabled.own"
}
}
}
}
}
"""
2026-09-09 12:44:45 +02:00
Examples:
| user-role | permission-count |
| User | 19 |
| User Light | 13 |
2026-09-04 12:00:32 +05:45