Support multiple candidates with same feature name 59/66559/9
authorRuoyu Ying <ruoyu.ying@intel.com>
Fri, 14 Sep 2018 16:28:09 +0000 (00:28 +0800)
committerRuoyu Ying <ruoyu.ying@intel.com>
Tue, 18 Sep 2018 22:17:43 +0000 (06:17 +0800)
commitaeca074c3a5b38428eefbd0b5d5ac52cd18ea382
tree31b3f8d948e2731f103a06768834ebce79726f1a
parent4642ebe717a3346b09d5697149ba46341d05b4d7
Support multiple candidates with same feature name

In one flavor, there could be multiple hpa feature blocks
with the same hpa-feature name. Add support to let HAS to
choose a proper one between all available candidates.

Change-Id: If8877a12d6e145994b0bc40aadb3b79b4718282f
Issue-ID: OPTFRA-341
Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
conductor/conductor/data/plugins/inventory_provider/hpa_utils.py
conductor/conductor/tests/unit/data/plugins/inventory_provider/hpa_flavors.json
conductor/conductor/tests/unit/data/plugins/inventory_provider/hpa_req_features.json
conductor/conductor/tests/unit/data/plugins/inventory_provider/test_aai.py