Fixed examples

This commit is contained in:
Luca Frosini 2024-06-26 17:11:48 +02:00
parent 554224374c
commit fba2195c7e
2 changed files with 118 additions and 273 deletions

View File

@ -1,208 +1,142 @@
{ {
"type": "Configuration", "type": "Context",
"consistsOf": [ "id": "ded93b00-934c-11ee-869e-bfa3de466a2b",
"name": "devVRE",
"parent":
{
"type": "IsParentOf",
"id": "4d47b286-bfe5-4ab0-a5fa-85139cadfaa9",
"source":
{ {
"type": "IsIdentifiedBy", "type": "Context",
"propagationConstraint": { "id": "2a9f4a4b-5f3e-4eee-9630-e2f7b2e58c34",
"type": "PropagationConstraint", "name": "devsec"
"remove": "cascade", }
"add": "propagate" },
}, "children": [],
"target": { "state": "active",
"type": "IdentifierFacet", "information": {
"value": "VRE Configuration", "Description": "This VRE is used for development",
"identificationType": "STRING", "Designer": "luca.frosini",
"comment" : "Should we relate this resource with the Virtual Services?", "Managers": [ "luca.frosini", "pasquale.pagano", "leonardo.candela" ],
"Name": "devVRE", "From": "2024-06-11 10:49:20.618 +0000",
"Description": "This VRE is used for development", "To": "2025-06-11 10:49:20.618 +0000"
"Designer":"luca.frosini", },
"Managers": ["luca.frosini", "pasquale.pagano"], "events": [
"Start Date": "2024-06-11 10:49:20.618 +0000", {
"End Date": "2025-06-11 10:49:20.618 +0000" "type": "Event",
"what": "created",
"when": "2024-06-10 10:49:20.618 +0000",
"who": "luca.frosini",
"comment": "Created devVE context."
},
{
"type": "Event",
"what": "pending",
"when": "2024-06-10 10:49:20.618 +0000",
"who": "luca.frosini",
"comment": "The VRE has been defined. This event is added by the resource-manager",
"definition": {
"encoded": "The Context definition is saved encoded in BASE64."
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "failed",
"type": "PropagationConstraint", "when": "2024-06-10 12:49:20.618 +0000",
"remove": "cascade", "who": "resource-manager",
"add": "propagate" "comment": "The process failed see report. This event is added by the resource-manager.",
}, "report": {
"target": { "encoded": "The generated report part is saved encoded in BASE64."
"type": "StateFacet",
"value": "created | active | failed | dissmissed | expired "
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "active",
"type": "PropagationConstraint", "when": "2024-06-10 12:49:20.618 +0000",
"remove": "cascade", "who": "resource-manager",
"add": "propagate" "comment": "All steps of devVE context creation completed successfully. The context is now active. This event is added by the resource-manager.",
}, "report": {
"target": { "encoded": "The generated report part is saved encoded in BASE64."
"type": "EventFacet",
"value": "created",
"date": "2024-06-10 10:49:20.618 +0000",
"comment": "Created in IS devVE context",
"report": {
"encoded":"The generated report part is saved encoded in BASE64.",
"filename": "devVE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "renamed",
"type": "PropagationConstraint", "when": "2024-06-12 10:49:20.618 +0000",
"remove": "cascade", "who": "luca.frosini",
"add": "propagate" "old": "/gcube/devsec/devVE",
}, "new": "/gcube/devsec/devVRE",
"target": { "comment": "It was created with the wrong name. The right name is devVRE",
"type": "EventFacet", "report": {
"value": "failed", "encoded": "The generated report is saved encoded in BASE64."
"date": "2024-06-10 12:49:20.618 +0000",
"comment": "The process failed see report",
"report": {
"encoded":"The generated report part is saved encoded in BASE64.",
"filename": "devVE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "moved",
"type": "PropagationConstraint", "when": "2024-06-13 10:49:20.618 +0000",
"remove": "cascade", "who": "pasquale.pagano",
"add": "propagate" "old": "/gcube/devsec/devVRE",
}, "new": "/gcube/dev/devVRE",
"target": { "comment": "The /gcube/devsec context has a confusing name and it will be dissmissed",
"type": "EventFacet", "report": {
"value": "active", "encoded": "The generated report is saved encoded in BASE64."
"date": "2024-06-10 12:49:20.618 +0000",
"comment": "All steps of devVE context creation completed successfully. The context is now active",
"report": {
"encoded":"The generated report part is saved encoded in BASE64.",
"filename": "devVE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "attributeChange",
"type": "PropagationConstraint", "when": "2024-06-15 10:49:20.618 +0000",
"remove": "cascade", "affectedAttribute": "information.Managers",
"add": "propagate" "old": [ "luca.frosini", "pasquale.pagano" ],
}, "new": [ "luca.frosini", "pasquale.pagano", "leonardo.candela" ],
"target": { "comment": "Added Leo as Manager",
"type": "EventFacet", "report": {
"value": "renamed", "encoded": "The generated report is saved encoded in BASE64."
"date": "2024-06-12 10:49:20.618 +0000",
"old": "/gcube/devsec/devVE",
"new": "/gcube/devsec/devVRE",
"comment": "It was created with the wrong name. The right name is devVRE",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "attributeChange",
"type": "PropagationConstraint", "when": "2024-06-15 11:43:10.308 +0000",
"remove": "cascade", "who": "leonardo.candela",
"add": "propagate" "affectedAttribute": "information.Description",
}, "old": "These VRE is used for development",
"target": { "new": "This VRE is used for development",
"type": "EventFacet", "comment": "Fixed grammatical error in description",
"value": "moved", "report": {
"date": "2024-06-13 10:49:20.618 +0000", "encoded": "The generated report is saved encoded in BASE64."
"old": "/gcube/devsec/devVRE",
"new": "/gcube/dev/devVRE",
"comment": "The /gcube/devsec context has a confusing name and it will be dissmissed",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "definitionChange",
"type": "PropagationConstraint", "when": "2024-06-15 11:53:24.101 +0000",
"remove": "cascade", "who": "leonardo.candela",
"add": "propagate" "comment": "Added Catalogue Service",
"definition": {
"encoded": "The Context definition is saved encoded in BASE64."
}, },
"target": { "report": {
"type": "EventFacet", "encoded": "The generated report is saved encoded in BASE64."
"value": "attributeChange",
"date": "2024-06-14 10:49:20.618 +0000",
"affectedAttribute" : "Description",
"old": "These VRE is used for development",
"new": "This VRE is used for development",
"comment": "Fixed grammatical error in description",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
} }
}, },
{ {
"type": "ConsistsOf", "type": "Event",
"propagationConstraint": { "what": "definitionChange",
"type": "PropagationConstraint", "when": "2024-06-15 11:53:24.101 +0000",
"remove": "cascade", "who": "leonardo.candela",
"add": "propagate" "comment": "Removed DataMiner Service",
"definition": {
"encoded": "The Context definition is saved encoded in BASE64."
}, },
"target": { "report": {
"type": "EventFacet", "encoded": "The generated report is saved encoded in BASE64."
"value": "attributeChange",
"date": "2024-06-15 10:49:20.618 +0000",
"affectedAttribute" : "Managers",
"old": ["luca.frosini", "pasquale.pagano"],
"new": ["luca.frosini", "pasquale.pagano", "leonardo.candela"],
"comment": "Added Leo as Manager",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
}
},
{
"type": "ConsistsOf",
"propagationConstraint": {
"type": "PropagationConstraint",
"remove": "cascade",
"add": "propagate"
},
"target": {
"type": "EventFacet",
"value": "definitionChange",
"comment": "Added Catalogue Service",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
}
},
{
"type": "ConsistsOf",
"propagationConstraint": {
"type": "PropagationConstraint",
"remove": "cascade",
"add": "propagate"
},
"target": {
"type": "EventFacet",
"value": "definitionChange",
"comment": "Removed DataMiner Service",
"report": {
"encoded":"The generated report is saved encoded in BASE64.",
"filename": "devVRE.json"
}
} }
} }
], ],
"isRelatedTo": [] "currentDefintion" : {
"encoded": "The Context definition is saved encoded in BASE64."
}
} }

View File

@ -1,89 +0,0 @@
{
"type": "ConfigurationTemplate",
"consistsOf": [
{
"type": "IsIdentifiedBy",
"propagationConstraint": {
"type": "PropagationConstraint",
"remove": "cascade",
"add": "propagate"
},
"target": {
"type": "IdentifierFacet",
"value": "VRE Configuration",
"identificationType": "STRING"
}
},
{
"type": "ConsistsOf",
"propagationConstraint": {
"type": "PropagationConstraint",
"remove": "cascade",
"add": "propagate"
},
"target": {
"type": "TemplateFacet",
"name": "VRE Information",
"description": "These are the requested information to create a VRE",
"targetFacetType": "SimpleFacet",
"attributes": [
{
"type": "AttributeProperty",
"name": "Name",
"description": "The name of the context is going to be created. TODO Insert regex which validate the name",
"max": null,
"min": null,
"regexp": null,
"propertyType": "String"
},
{
"type": "AttributeProperty",
"name": "Description",
"description": "VRE description",
"max": null,
"min": null,
"regexp": null,
"propertyType": "String"
},
{
"type": "AttributeProperty",
"name": "Designer",
"description": "Designer is the person which initially designed/created the Context.",
"max": null,
"min": null,
"regexp": null,
"propertyType": "String"
},
{
"type": "AttributeProperty",
"name": "Managers",
"description": "A list fo Managers for the new Context. The Context-Manager role will be added to the selected people for the Context",
"max": null,
"min": null,
"regexp": null,
"propertyType": "List<String>"
},
{
"type": "AttributeProperty",
"name": "Start Date",
"description": "",
"max": null,
"min": null,
"regexp": null,
"propertyType": "Date"
},
{
"type": "AttributeProperty",
"name": "End Date",
"description": "",
"max": null,
"min": null,
"regexp": null,
"propertyType": "Date"
}
]
}
}
],
"isRelatedTo": []
}