diff options
author | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-27 11:52:58 -0500 |
---|---|---|
committer | Leonardo Bellini <leonardo.bellini@att.com> | 2018-03-27 11:53:17 -0500 |
commit | d776cf56f04032fa42727ad94b6712e52022fb8d (patch) | |
tree | 86b2a057789f00068ca5ca9bff0b0f9ed27527d9 /test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json | |
parent | d984f526a6708622301cd7fa7cea1ef953b8108a (diff) |
Complete optf-has csit for M4
Issue-ID: OPTFRA-204
Change-Id: I09afb088c343699be78d2195638596ac09a0c875
Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
Diffstat (limited to 'test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json')
-rw-r--r-- | test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json b/test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json new file mode 100644 index 000000000..9f25c2dff --- /dev/null +++ b/test/csit/tests/optf-has/has/data/plan_with_wrong_distance_constraint.json @@ -0,0 +1,63 @@ +{ + "name":"onap template with wrong distance constraint", + "template":{ + "homing_template_version":"2017-10-10", + "parameters":{ + "service_name":"Residential vCPE", + "service_id":"vcpe_service_id", + "customer_lat":45.395968, + "customer_long":-71.135344, + "physical_location":"DLLSTX233", + "REQUIRED_MEM":4, + "REQUIRED_DISK":100, + "pnf_id":"some_pnf_id" + }, + "locations":{ + "customer_loc":{ + "latitude":{ + "get_param":"customer_lat" + }, + "longitude":{ + "get_param":"customer_long" + } + } + }, + "demands":{ + "vG":[ + { + "inventory_provider":"aai", + "inventory_type":"cloud" + } + ] + }, + "constraints":{ + "distance-vg":{ + "demands":[ + "vG" + ], + "properties":{ + "distance":"< 1 km", + "location":"customer_loc" + } + } + }, + "optimization":{ + "minimize": { + "sum": [ + { + "distance_between": [ + "customer_loc", + "vG" + ] + }, + { + "distance_between": [ + "customer_loc", + "vG" + ] + } + ] + } + } + } +} |