summaryrefslogtreecommitdiffstats
path: root/test/placement-tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/placement-tests')
-rw-r--r--test/placement-tests/conductor_response.json62
-rw-r--r--test/placement-tests/response.json126
2 files changed, 157 insertions, 31 deletions
diff --git a/test/placement-tests/conductor_response.json b/test/placement-tests/conductor_response.json
index e7037c2..ee38ce9 100644
--- a/test/placement-tests/conductor_response.json
+++ b/test/placement-tests/conductor_response.json
@@ -24,9 +24,65 @@
"location_type": "openstack-cloud"
},
"attributes": {
- "flavors": {
- "flavor_label_1": "vim_flavor_X",
- "flavor_label_2": "vim_flavor_Y"
+ "directives": {
+ "directives": [
+ {
+ "id": "vFW_0",
+ "type": "<vnfc/tocsa.nodes.nfv.Vdu.Compute>",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_flavor_label_for_firewall",
+ "attribute_value": "vim_flavor_X"
+ }
+ ]
+ },
+ {
+ "type": "sriovNICNetwork_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_vnic_type_for_firewall_protected",
+ "attribute_value": "direct"
+ },
+ {
+ "attribute_name": "oof_returned_provider_network_for_firewall_protected",
+ "attribute_value": "physnet1"
+ }
+ ]
+ },
+ {
+ "type": "sriovNICNetwork_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_vnic_type_for_firewall_unprotected",
+ "attribute_value": "direct"
+ },
+ {
+ "attribute_name": "oof_returned_provider_network_for_firewall_unprotected",
+ "attribute_value": "physnet2"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "vFW_1",
+ "type": "<vnfc/tocsa.nodes.nfv.Vdu.Compute>",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_flavor_label_for_generator",
+ "attribute_value": "vim_flavor_Y"
+ }
+ ]
+ }
+ ]
+ }
+ ]
},
"cloud_owner": "CloudOwner1",
"physical-location-id": "DLLSTX1A",
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"
+ ]
}
]
}