Merge "Add test suit for SDC helm chart validator"
[integration/csit.git] / tests / optf-has / has / data / plan_with_wrong_distance_constraint.json
1 {
2    "name":"onap template with wrong distance constraint",
3    "template":{
4       "homing_template_version":"2017-10-10",
5       "parameters":{
6          "service_name":"Residential vCPE",
7          "service_id":"vcpe_service_id",
8          "customer_lat":45.395968,
9          "customer_long":-71.135344,
10          "physical_location":"DLLSTX233",
11          "REQUIRED_MEM":4,
12          "REQUIRED_DISK":100,
13          "pnf_id":"some_pnf_id"
14       },
15       "locations":{
16          "customer_loc":{
17             "latitude":{
18                "get_param":"customer_lat"
19             },
20             "longitude":{
21                "get_param":"customer_long"
22             }
23          }
24       },
25       "demands":{
26          "vG":[
27             {
28                "inventory_provider":"aai",
29                "inventory_type":"cloud"
30             }
31          ]
32       },
33       "constraints":{
34          "distance-vg":{
35             "demands":[
36                "vG"
37             ],
38             "properties":{
39                "distance":"< 1 km",
40                "location":"customer_loc"
41             }
42          }
43       },
44       "optimization":{
45     "minimize": {
46       "sum": [
47         {
48           "distance_between": [
49             "customer_loc",
50             "vG"
51           ]
52         },
53         {
54           "distance_between": [
55             "customer_loc",
56             "vG"
57           ]
58         }
59       ]
60     }
61       }
62    }
63 }