From 984a1e549788da61aa6375a87cc0434c355927e1 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 25 Jun 2024 17:48:39 +0200 Subject: [PATCH] Added example to design feature #27707 --- .../context/vre-configuration-example.json | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 src/test/resources/context/vre-configuration-example.json diff --git a/src/test/resources/context/vre-configuration-example.json b/src/test/resources/context/vre-configuration-example.json new file mode 100644 index 0000000..c969e1f --- /dev/null +++ b/src/test/resources/context/vre-configuration-example.json @@ -0,0 +1,143 @@ +{ + "type": "Context", + "id": "ded93b00-934c-11ee-869e-bfa3de466a2b", + "name": "devVRE", + "parent": + { + "type": "IsParentOf", + "id": "4d47b286-bfe5-4ab0-a5fa-85139cadfaa9", + "source": + { + "type": "Context", + "id": "2a9f4a4b-5f3e-4eee-9630-e2f7b2e58c34", + "name": "devsec" + } + }, + "children": [], + "state": "active", + "information": { + "Name": "devVRE", + "Description": "This VRE is used for development", + "Designer": "luca.frosini", + "Managers": [ "luca.frosini", "pasquale.pagano", "leonardo.candela" ], + "Start when": "2024-06-11 10:49:20.618 +0000", + "End when": "2025-06-11 10:49:20.618 +0000" + }, + "events": [ + { + "type": "Event", + "what": "created", + "when": "2024-06-10 10:49:20.618 +0000", + "who": "luca.frosini", + "comment": "Created devVE context. This event is automatically generated from the resource-registry." + }, + { + "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": "Event", + "what": "failed", + "when": "2024-06-10 12:49:20.618 +0000", + "who": "resource-manager", + "comment": "The process failed see report. This event is added by the resource-manager.", + "report": { + "encoded": "The generated report part is saved encoded in BASE64." + } + }, + { + "type": "Event", + "what": "active", + "when": "2024-06-10 12:49:20.618 +0000", + "who": "resource-manager", + "comment": "All steps of devVE context creation completed successfully. The context is now active. This event is added by the resource-manager.", + "report": { + "encoded": "The generated report part is saved encoded in BASE64." + } + }, + { + "type": "Event", + "what": "renamed", + "when": "2024-06-12 10:49:20.618 +0000", + "who": "luca.frosini", + "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." + } + }, + { + "type": "Event", + "what": "moved", + "when": "2024-06-13 10:49:20.618 +0000", + "who": "pasquale.pagano", + "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." + } + }, + { + "type": "Event", + "what": "attributeChange", + "when": "2024-06-15 10:49:20.618 +0000", + "affectedAttribute": "information.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." + } + }, + { + "type": "Event", + "what": "attributeChange", + "when": "2024-06-15 11:43:10.308 +0000", + "who": "leonardo.candela", + "affectedAttribute": "information.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." + } + }, + { + "type": "Event", + "what": "definitionChange", + "when": "2024-06-15 11:53:24.101 +0000", + "who": "leonardo.candela", + "comment": "Added Catalogue Service", + "definition": { + "encoded": "The Context definition is saved encoded in BASE64." + }, + "report": { + "encoded": "The generated report is saved encoded in BASE64." + } + }, + { + "type": "Event", + "what": "definitionChange", + "when": "2024-06-15 11:53:24.101 +0000", + "who": "leonardo.candela", + "comment": "Removed DataMiner Service", + "definition": { + "encoded": "The Context definition is saved encoded in BASE64." + }, + "report": { + "encoded": "The generated report is saved encoded in BASE64." + } + } + ], + "currentDefintion" : { + "encoded": "The Context definition is saved encoded in BASE64." + } +} \ No newline at end of file