aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/optf-has/has/data
diff options
context:
space:
mode:
authorLeonardo Bellini <leonardo.bellini@att.com>2018-03-09 04:26:58 -0600
committerLeonardo Bellini <leonardo.bellini@att.com>2018-03-12 11:02:16 -0500
commitd280c2636f4eb21cf31095acb0e8e03ac3c47148 (patch)
tree5e28b8d1f6829237ea9bcd62311a2a18b6f5a7e0 /test/csit/tests/optf-has/has/data
parent320b3de582bfdde19ce9da087d26d3032e84a46b (diff)
Rename optf base dir to optf-has
Issue-ID: OPTFRA-171 Change-Id: I19d7b8c38bf324171b7204499114e79839cc9c18 Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
Diffstat (limited to 'test/csit/tests/optf-has/has/data')
-rw-r--r--test/csit/tests/optf-has/has/data/plan_with_wrong_version.json175
-rw-r--r--test/csit/tests/optf-has/has/data/plan_without_demand_section.json93
2 files changed, 268 insertions, 0 deletions
diff --git a/test/csit/tests/optf-has/has/data/plan_with_wrong_version.json b/test/csit/tests/optf-has/has/data/plan_with_wrong_version.json
new file mode 100644
index 000000000..9471fbf82
--- /dev/null
+++ b/test/csit/tests/optf-has/has/data/plan_with_wrong_version.json
@@ -0,0 +1,175 @@
+{
+ "name": "onap optf has plan with wrong version",
+ "template": {
+ "conductor_template_version": "yyyy-mm-dd",
+ "parameters": {
+ "UCPEHOST": "chcil129snd",
+ "CUSTOMER":"21014aa2-526b-11e6-beb8-9e71128cae77"
+ },
+ "locations": {
+ "customer_loc": {
+ "host_name": {
+ "get_param": "UCPEHOST"
+ }
+ }
+ },
+ "demands": {
+ "vHNPortalaaS_PRIMARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "HNPORTAL",
+ "customer_id": {"get_param": "CUSTOMER"}
+ },
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "cloud"
+ }
+ ],
+ "vHNPortalaaS_SECONDARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "HNPORTAL",
+ "customer_id": {"get_param": "CUSTOMER"}
+ },
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "cloud"
+ }
+ ],
+ "vHNGWaaS_PRIMARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "HNGATEWAY",
+ "customer_id": {"get_param": "CUSTOMER"}
+ },
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "cloud"
+ }
+ ],
+ "vHNGWaaS_SECONDARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "HNGATEWAY",
+ "customer_id": {"get_param": "CUSTOMER"}
+ },
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "cloud"
+ }
+ ],
+ "vVIGaaS_PRIMARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "VVIG",
+ "customer_id": {"get_param": "CUSTOMER"}
+ }
+ ],
+ "vVIGaaS_SECONDARY_1": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "VVIG",
+ "customer_id": {"get_param": "CUSTOMER"}
+ }
+ ],
+ "vVIGaaS_PRIMARY_2": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "VVIG",
+ "customer_id": {"get_param": "CUSTOMER"}
+ }
+ ],
+ "vVIGaaS_SECONDARY_2": [
+ {
+ "inventory_provider": "aai",
+ "inventory_type": "service",
+ "service_type": "VVIG",
+ "customer_id": {"get_param": "CUSTOMER"}
+ }
+ ]
+ },
+ "constraints": {
+ "distance-vvig": {
+ "type": "distance_to_location",
+ "demands": [
+ "vVIGaaS_SECONDARY_1",
+ "vVIGaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "distance": "< 5000 km",
+ "location": "customer_loc"
+ }
+ },
+ "distance-vgw": {
+ "type": "distance_to_location",
+ "demands": [
+ "vHNGWaaS_SECONDARY_1",
+ "vHNGWaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "distance": "< 5000 km",
+ "location": "customer_loc"
+ }
+ },
+ "zone-vhngw": {
+ "type": "zone",
+ "demands": [
+ "vHNGWaaS_SECONDARY_1",
+ "vHNGWaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "qualifier": "different",
+ "category": "complex"
+ }
+ },
+ "zone-vhnportal": {
+ "type": "zone",
+ "demands": [
+ "vHNPortalaaS_SECONDARY_1",
+ "vHNPortalaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "qualifier": "different",
+ "category": "complex"
+ }
+ }
+ },
+ "optimization": {
+ "minimize": {
+ "sum": [
+ {
+ "product": [
+ 1,
+ {
+ "distance_between": [
+ "customer_loc",
+ "vVIGaaS_PRIMARY_1"
+ ]
+ }
+ ]
+ },
+ {
+ "product": [
+ 1,
+ {
+ "distance_between": [
+ "customer_loc",
+ "vHNGWaaS_PRIMARY_1"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+},
+ "timeout": 5,
+ "limit": 3
+}
diff --git a/test/csit/tests/optf-has/has/data/plan_without_demand_section.json b/test/csit/tests/optf-has/has/data/plan_without_demand_section.json
new file mode 100644
index 000000000..87a459d87
--- /dev/null
+++ b/test/csit/tests/optf-has/has/data/plan_without_demand_section.json
@@ -0,0 +1,93 @@
+{
+ "name": "onap optf has plan with wrong version",
+ "template": {
+ "conductor_template_version": "2016-11-01",
+ "parameters": {
+ "UCPEHOST": "chcil129snd",
+ "CUSTOMER":"21014aa2-526b-11e6-beb8-9e71128cae77"
+ },
+ "locations": {
+ "customer_loc": {
+ "host_name": {
+ "get_param": "UCPEHOST"
+ }
+ }
+ },
+ "constraints": {
+ "distance-vvig": {
+ "type": "distance_to_location",
+ "demands": [
+ "vVIGaaS_SECONDARY_1",
+ "vVIGaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "distance": "< 5000 km",
+ "location": "customer_loc"
+ }
+ },
+ "distance-vgw": {
+ "type": "distance_to_location",
+ "demands": [
+ "vHNGWaaS_SECONDARY_1",
+ "vHNGWaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "distance": "< 5000 km",
+ "location": "customer_loc"
+ }
+ },
+ "zone-vhngw": {
+ "type": "zone",
+ "demands": [
+ "vHNGWaaS_SECONDARY_1",
+ "vHNGWaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "qualifier": "different",
+ "category": "complex"
+ }
+ },
+ "zone-vhnportal": {
+ "type": "zone",
+ "demands": [
+ "vHNPortalaaS_SECONDARY_1",
+ "vHNPortalaaS_PRIMARY_1"
+ ],
+ "properties": {
+ "qualifier": "different",
+ "category": "complex"
+ }
+ }
+ },
+ "optimization": {
+ "minimize": {
+ "sum": [
+ {
+ "product": [
+ 1,
+ {
+ "distance_between": [
+ "customer_loc",
+ "vVIGaaS_PRIMARY_1"
+ ]
+ }
+ ]
+ },
+ {
+ "product": [
+ 1,
+ {
+ "distance_between": [
+ "customer_loc",
+ "vHNGWaaS_PRIMARY_1"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+},
+ "timeout": 5,
+ "limit": 3
+}