Merge "Add test suit for SDC helm chart validator"
[integration/csit.git] / tests / optf-has / has / data / plan_with_vim_fit.json
1 {  
2    "name":"vCPE-Sanity1",
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          "REQUIRED_MEM":4,
11          "REQUIRED_DISK":100,
12          "pnf_id":"some_pnf_id"
13       },
14       "locations":{  
15          "customer_loc":{  
16             "latitude":{  
17                "get_param":"customer_lat"
18             },
19             "longitude":{  
20                "get_param":"customer_long"
21             }
22          }
23       },
24       "demands":{  
25          "vG":[  
26             {  
27                "inventory_provider":"aai",
28                "inventory_type":"cloud"
29             }
30          ]
31       },
32       "constraints":{  
33          "constraint_vg_customer":{  
34             "type":"distance_to_location",
35             "demands":[  
36                "vG"
37             ],
38             "properties":{  
39                "distance":"< 100 km",
40                "location":"customer_loc"
41             }
42          },
43          "check_cloud_capacity":{  
44             "type":"vim_fit",
45             "demands":[  
46                "vG"
47             ],
48             "properties":{  
49                "controller":"multicloud",
50                "request":{  
51                   "vCPU":10,
52                   "Memory":{  
53                      "quantity":{  
54                         "get_param":"REQUIRED_MEM"
55                      },
56                      "unit":"GB"
57                   },
58                   "Storage":{  
59                      "quantity":{  
60                         "get_param":"REQUIRED_DISK"
61                      },
62                      "unit":"GB"
63                   }
64                }
65             }
66          }
67       },
68       "optimization":{  
69          "minimize":{  
70             "sum":[  
71                {  
72                   "distance_between":[  
73                      "customer_loc",
74                      "vG"
75                   ]
76                },
77                {  
78                   "distance_between":[  
79                      "customer_loc",
80                      "vG"
81                   ]
82                }
83             ]
84          }
85       }
86    },
87    "timeout":5,
88    "limit":3
89 }