summaryrefslogtreecommitdiffstats
path: root/csit/tests/has/data/plan_with_wrong_distance_constraint.json
diff options
context:
space:
mode:
Diffstat (limited to 'csit/tests/has/data/plan_with_wrong_distance_constraint.json')
-rw-r--r--csit/tests/has/data/plan_with_wrong_distance_constraint.json63
1 files changed, 63 insertions, 0 deletions
diff --git a/csit/tests/has/data/plan_with_wrong_distance_constraint.json b/csit/tests/has/data/plan_with_wrong_distance_constraint.json
new file mode 100644
index 0000000..9f25c2d
--- /dev/null
+++ b/csit/tests/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"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}