test: check link share creation date

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
This commit is contained in:
Saw-jan
2025-05-05 14:06:43 +05:45
parent 6a1a2f3a63
commit de56fd67df

View File

@@ -19,45 +19,20 @@ Feature: Create a link share for a resource
"""
{
"type": "object",
"required": [
"hasPassword",
"id",
"link"
],
"required": ["createdDateTime","hasPassword","id","link"],
"properties": {
"hasPassword": {
"const": true
},
"id": {
"type": "string",
"pattern": "^[a-zA-Z]{15}$"
},
"createdDateTime": { "format": "date-time" },
"hasPassword": { "const": true },
"id": { "pattern": "^[a-zA-Z]{15}$" },
"link": {
"type": "object",
"required": [
"@libre.graph.displayName",
"@libre.graph.quickLink",
"preventsDownload",
"type",
"webUrl"
],
"required": ["@libre.graph.displayName","@libre.graph.quickLink","preventsDownload","type","webUrl"],
"properties": {
"@libre.graph.displayName": {
"const": ""
},
"@libre.graph.quickLink": {
"const": false
},
"preventsDownload": {
"const": false
},
"type": {
"const": "<permissions-role-value>"
},
"webUrl": {
"type": "string",
"pattern": "^%base_url%/s/[a-zA-Z]{15}$"
}
"@libre.graph.displayName": { "const": "" },
"@libre.graph.quickLink": { "const": false },
"preventsDownload": { "const": false },
"type": { "const": "<permissions-role-value>" },
"webUrl": { "pattern": "^%base_url%/s/[a-zA-Z]{15}$" }
}
}
}