Merge "Add test suit for SDC helm chart validator"
[integration/csit.git] / tests / optf-has / has / data / plan_with_hpa_unmatched.json
1 {  
2    "name":"vCPE-with-HPA-unmatched-requirements",
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_vgmux_customer":{  
34             "type":"distance_to_location",
35             "demands":[  
36                "vG"
37             ],
38             "properties":{  
39                "distance":"< 100 km",
40                "location":"customer_loc"
41             }
42          },
43          "hpa_constraint":{  
44             "type":"hpa",
45             "demands":[  
46                "vG"
47             ],
48             "properties":{  
49                "evaluate":[  
50                   {  
51                      "id":"vg_1",
52                      "type":"vnfc",
53                      "directives":[
54                          {
55                             "type":"flavor_directives",
56                             "attributes":[
57                                {
58                                   "attribute_name":"flavor_label_1",
59                                   "attribute_value":""
60                                }
61                             ]
62                          }
63                      ],
64                      "flavorProperties":[  
65                         {  
66                            "hpa-feature":"basicCapabilities",
67                            "hpa-version":"v1",
68                            "architecture":"generic",
69                            "mandatory": "True",
70                            "directives":[],
71                            "hpa-feature-attributes":[  
72                               {  
73                                  "hpa-attribute-key":"numVirtualCpu",
74                                  "hpa-attribute-value":"60",
75                                  "operator":"="
76                               },
77                               {  
78                                  "hpa-attribute-key":"virtualMemSize",
79                                  "hpa-attribute-value":"64",
80                                  "operator":"=",
81                                  "unit":"GB"
82                               }
83                            ]
84                         }
85                      ]
86                   },
87                   {  
88                      "id":"vg_2",
89                      "type":"vnfc",
90                      "directives":[
91                          {
92                             "type":"flavor_directives",
93                             "attributes":[
94                                {
95                                   "attribute_name":"flavor_label_2",
96                                   "attribute_value":""
97                                }
98                             ]
99                          }
100                      ],
101                      "flavorProperties":[  
102                         {  
103                            "hpa-feature":"basicCapabilities",
104                            "hpa-version":"v1",
105                            "architecture":"generic",
106                            "mandatory":"True",
107                            "directives":[],
108                            "hpa-feature-attributes":[  
109                               {  
110                                  "hpa-attribute-key":"numVirtualCpu",
111                                  "hpa-attribute-value":"30",
112                                  "operator":"="
113                               },
114                               {  
115                                  "hpa-attribute-key":"virtualMemSize",
116                                  "hpa-attribute-value":"128",
117                                  "operator":"=",
118                                  "unit":"GB"
119                               }
120                            ]
121                         }
122                      ]
123                   }
124                ]
125             }
126          }
127       },
128       "optimization":{  
129          "minimize":{  
130             "sum":[  
131                {  
132                   "distance_between":[  
133                      "customer_loc",
134                      "vG"
135                   ]
136                }
137             ]
138          }
139       }
140    },
141    "timeout":5,
142    "limit":3
143 }