diff --git a/test-data/profiledDocuments/profiles/basicProfile.json b/test-data/profiledDocuments/profiles/basicProfile.json index b6a4a9e..15ca18c 100644 --- a/test-data/profiledDocuments/profiles/basicProfile.json +++ b/test-data/profiledDocuments/profiles/basicProfile.json @@ -3,27 +3,37 @@ "_version" : "1.0.0", "_name" : "Basic Use Case Descriptor", - "_schema" : {}, - - - "_description" : "Simple testing UCD", + "_description" : "Simple UCD", "_creationInfo": { "_user" : { "_username": "fabio.sinibaldi" } }, + "_schema" :{ "title" : {"_min" : 1}, + "section" : { "_max" : 1, "_min" : 1, + "_children" : [ + {"fileset" :{"_type" : "RegisteredFileSet", "_min": 1}}, + {"title" : {"_min" : 1}} + ] + } + }, "_dataAccessPolicies" : [ - {"_policy" : {"_read" : "own", "_write" : "own"}, "_roles":[]} + {"_policy" : {"_read" : "own", "_write" : "own"}, "_roles":["BaseUser"]}, + {"_policy" : {"_read" : "any", "_write" : "none"}, "_roles":[], + "_enforcer": {"_filter" : {"_lifecycleInformation._phase" : {"$eq" : "Published"}}}}, + {"_policy" : {"_read" : "any", "_write" : "none"}, "_roles":["Editor"]}, + {"_policy" : {"_read" : "any", "_write" : "any"}, "_roles":["Admin"]} ], + "_handlers" : [ { "_id" : "DEFAULT-SINGLE-STEP", "_type" : "LifecycleManagement", "_configuration" : { "step_access" : [ - {"STEP" : "PUBLISH", "roles" :[ "FakeAdmin"]} + {"STEP" : "PUBLISH", "roles" :[ "Admin"]} ] } }