summaryrefslogtreecommitdiffstats
path: root/test/placement-tests/response.json
diff options
context:
space:
mode:
authorRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:30:15 +0800
committerRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:32:10 +0800
commit6ae89d5df37c626d7bd6f1fcf94571e718f10b02 (patch)
tree8054d725df42b1cc450f1c10374a0f20fd170911 /test/placement-tests/response.json
parenta014bc832ce5e59b6dd52a6ac9dd5cea03a0ceec (diff)
Update sample response and resolve directives
Update the sample conductor response and add name_map to resolve directives. Also updated functest payload and localpolicies with the new policy model. Change-Id: I5255c40fb714558261efffabbdf44da535171cbf Issue-ID: OPTFRA-322 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
Diffstat (limited to 'test/placement-tests/response.json')
-rw-r--r--test/placement-tests/response.json126
1 files changed, 98 insertions, 28 deletions
diff --git a/test/placement-tests/response.json b/test/placement-tests/response.json
index 92751ac..71963e2 100644
--- a/test/placement-tests/response.json
+++ b/test/placement-tests/response.json
@@ -6,44 +6,114 @@
"solutions": {
"placementSolutions": [
[
- {
- "resourceModuleName": "vGMuxInfra",
- "serviceResourceId": "someResourceId",
- "solution": {
+ {
+ "resourceModuleName": "vGMuxInfra",
+ "serviceResourceId": "someResourceId",
+ "solution": {
"identifierType": "serviceInstanceId",
- "identifiers": ["gjhd-098-fhd-987"]
+ "identifiers": [
+ "gjhd-098-fhd-987"
+ ]
+ },
+ "assignmentInfo": [
+ {
+ "key": "cloudOwner",
+ "value": "amazon"
+ },
+ {
+ "key": "vnfHostName",
+ "value": "ahr344gh"
+ },
+ {
+ "key": "isRehome",
+ "value": "False"
+ },
+ {
+ "key": "cloudRegionId",
+ "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d"
+ },
+ {
+ "key": "oof_directives",
+ "value": {
+ "directives": [
+ {
+ "id": "vgmux_1",
+ "type": "vnfc",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "flavorLabel1",
+ "attribute_value": "vimFlavorX"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "vgmux_2",
+ "type": "vnfc",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "flavorLabel2",
+ "attribute_value": "vimFlavorY"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
},
- "assignmentInfo": [
- { "key": "cloudOwner", "value": "amazon" },
- { "key": "vnfHostName", "value": "ahr344gh" },
- { "key": "isRehome", "value": "False" },
- { "key": "cloudRegionId", "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d" },
- { "key":"flavors", "value": { "flavorLabel1": "vimFlavorX", "flavorLabel2": "vimFlavorY"}}
- ]
- },
- {
- "resourceModuleName": "vG",
- "serviceResourceId": "someResourceId",
- "solution": {
+ {
+ "resourceModuleName": "vG",
+ "serviceResourceId": "someResourceId",
+ "solution": {
"identifierType": "cloudRegionId",
"cloudOwner": "amazon",
- "identifiers": ["gjhd-098-fhd-987"]
- },
- "assignmentInfo": [
- { "key": "cloudOwner", "value": "amazon" },
- { "key": "cloudRegionId", "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d" }
- ]
- }
+ "identifiers": [
+ "gjhd-098-fhd-987"
+ ]
+ },
+ "assignmentInfo": [
+ {
+ "key": "cloudOwner",
+ "value": "amazon"
+ },
+ {
+ "key": "cloudRegionId",
+ "value": "1ac71fb8-ad43-4e16-9459-c3f372b8236d"
+ }
+ ]
+ }
]
],
"licenseSolutions": [
{
"resourceModuleName": "vGMuxInfra",
"serviceResourceId": "someResourceId",
- "entitlementPoolUUID": ["1ac71fb8-ad43-4e16-9459-c3f372b8236d", "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"],
- "licenseKeyGroupUUID": ["1ac71fb8-ad43-4e16-9459-c3f372b8236d", "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"],
- "entitlementPoolInvariantUUID": ["1ac71fb8-ad43-4e16-9459-c3f372b8236d", "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"],
- "licenseKeyGroupInvariantUUID": ["1ac71fb8-ad43-4e16-9459-c3f372b8236d", "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"]
+ "entitlementPoolUUID": [
+ "1ac71fb8-ad43-4e16-9459-c3f372b8236d",
+ "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"
+ ],
+ "licenseKeyGroupUUID": [
+ "1ac71fb8-ad43-4e16-9459-c3f372b8236d",
+ "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"
+ ],
+ "entitlementPoolInvariantUUID": [
+ "1ac71fb8-ad43-4e16-9459-c3f372b8236d",
+ "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"
+ ],
+ "licenseKeyGroupInvariantUUID": [
+ "1ac71fb8-ad43-4e16-9459-c3f372b8236d",
+ "834fc71fb8-ad43-4fh7-9459-c3f372b8236f"
+ ]
}
]
}