infrastructure-tests/src/test/java/org/gcube/informationsystem/deliverable65/instances-examples.json

253 lines
5.2 KiB
JSON

{
"@class": "CPUFacet",
"header": {
"@class": "Header",
"uuid": "69f0b376-38d2-4a85-bc63-37f9fa323f82"
},
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "1 GHz"
}{
"@class": "CPUFacet",
"header": {
"@class": "Header",
"uuid": "69f0b376-38d2-4a85-bc63-37f9fa323f82",
"creator": "luca.frosini",
"modifiedBy": "luca.frosini",
"creationTime": "2016-10-05 11:16:24",
"lastUpdateTime": "2016-10-05 11:16:24"
},
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "1 GHz"
}{
"@class": "CPUFacet",
"header": {
"uuid": "69f0b376-38d2-4a85-bc63-37f9fa323f82"
},
/* only the UUID is checked and must be the same of the UUID provided in the URL*/
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "2 GHz"
}{
"@class": "CPUFacet",
"header": {
"@class": "Header",
"uuid": "69f0b376-38d2-4a85-bc63-37f9fa323f82",
"creator": "luca.frosini",
"modifiedBy": "luca.frosini",
"creationTime": "2016-10-05 11:16:24",
"lastUpdateTime": "2016-10-05 11:18:33"
},
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "2 GHz"
}{
"@class": "HostingNode",
"header": {
"uuid": "670eeabf-76c7-493f-a449-4e6e139a2e84",
...
}"consistsOf": [
{
"@class": "ConsistsOf",
"target": {
"@class": "CPUFacet",
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "3 GHz"
}
},
{
"@class": "IsIdentifiedBy",
"target": {
"@class": "NetworkingFacet",
"ipAddress": "146.48.87.183",
"hostName": "pc-frosini.isti.cnr.it",
"domainName": "isti.cnr.it",
"mask": "255.255.248.0",
"broadcastAddress": "146.48.87.255"
}
}
],
"isRelatedTo": [
{
"@class": "Hosts",
"propagationConstraint": {
"add": "unpropagate",
"remove": "cascade"
},
"target": {
"@class": " EService",
"header": {
"uuid": "9bff49c8-c0a7-45de-827c-accb71defbd3"
} /* The EService was already created, so the UUID is enough to attach it by using Hosts relation */
}
}
]
}{
"@class": "HostingNode",
"header": {
"uuid": "670eeabf-76c7-493f-a449-4e6e139a2e84",
...
},
"consistsOf": [
{
"@class": "ConsistsOf",
"header": {
"uuid": "9d0b1b2b-ac4e-40a9-8dea-bec90076e0ca",
...
},
"target": {
"@class": "CPUFacet",
"header": {
"uuid": "1daef6a8-5ca4-4700-844b-2a2d784e17b0",
...
},
"model": "Opteron",
"vendor": "AMD",
"clockSpeed": "1 GHz"
}
},
{
"@class": "IsIdentifiedBy",
"header": {
"uuid": "02a7072c-4f72-4568-945b-9ddccc881e9f",
...
},
"target": {
"@class": "NetworkingFacet",
"header": {
"uuid": "59617b01-5856-4d8e-b85c-590a42039933",
...
},
"ipAddress": "146.48.87.183",
"hostName": "pc-frosini.isti.cnr.it",
"domainName": "isti.cnr.it",
"mask": "255.255.248.0",
"broadcastAddress": "146.48.87.255"
}
}
],
"isRelatedTo": [
{
"@class": "Hosts",
"header": {
"uuid": "47494ad0-e606-4630-9def-4c607761ae14",
...
},
"propagationConstraint": {
"add": "unpropagate",
"remove": "cascade"
},
"target": {
"@class": "EService",
"header": {
"uuid": "9bff49c8-c0a7-45de-827c-accb71defbd3",
...
}
}
}
]
}{
"@class": "HostingNode",
"header": {
"uuid": "670eeabf-76c7-493f-a449-4e6e139a2e84",
...
},
"consistsOf": [
{
"@class": "ConsistsOf",
"header": {
"uuid": "9d0b1b2b-ac4e-40a9-8dea-bec90076e0ca",
...
},
"target": {
"@class": "CPUFacet",
"header": {
"uuid": "1daef6a8-5ca4-4700-844b-2a2d784e17b0",
...
},
"model": "Opteron",
"vendor": "AMD",
/* Updated the following property */
"clockSpeed": "1 GHz"
}
},
{
"@class": "IsIdentifiedBy",
"header": {
"uuid": "02a7072c-4f72-4568-945b-9ddccc881e9f",
...
},
"target": {
"@class": "NetworkingFacet",
"header": {
"uuid": "59617b01-5856-4d8e-b85c-590a42039933",
...
},
"ipAddress": "146.48.87.183",
"hostName": "pc-frosini.isti.cnr.it",
"domainName": "isti.cnr.it",
"mask": "255.255.248.0",
"broadcastAddress": "146.48.87.255",
/* Added the following property */
"username": "luca.frosini"
}
}
]
}
{
"@class": "IsIdentifiedBy",
"header": {
"uuid": "02a7072c-4f72-4568-945b-9ddccc881e9f",
...
},
"source": {
"@class": "HostingNode",
// The HostingNode must be already created. The header with UUID is enough.
"header": {
"uuid": "670eeabf-76c7-493f-a449-4e6e139a2e84"
}
},
"target": {
"@class": "NetworkingFacet",
/* The NetworkingFacet already exists, so the UUID is enough to attach it by using IsIdentifiedBy relation */
"header": {
"uuid": "59617b01-5856-4d8e-b85c-590a42039933"
},
}
}
{
"@class": "IsIdentifiedBy",
"header": {
"uuid": "02a7072c-4f72-4568-945b-9ddccc881e9f",
...
},
"propagationConstraint": {
"add": "propagate",
"remove": "cascadeWhenOrphan"
},
"source": {
"@class": "HostingNode",
"header": {
"uuid": "670eeabf-76c7-493f-a449-4e6e139a2e84"
}
},
"target": {
"@class": "NetworkingFacet",
"header": {
"uuid": "59617b01-5856-4d8e-b85c-590a42039933",
...
},
"ipAddress": "146.48.87.183",
"hostName": "pc-frosini.isti.cnr.it",
"domainName": "isti.cnr.it",
"mask": "255.255.248.0",
"broadcastAddress": "146.48.87.255"
}
}