diff options
author | 2018-07-24 21:11:37 +0800 | |
---|---|---|
committer | 2018-08-02 10:35:20 +0800 | |
commit | 1941c5ebe3a6722e759a8ec0b262ac331ac7fdce (patch) | |
tree | dbf817f290d5f091d090491dce34f13371f2a305 /lcm/lcm/samples | |
parent | 6340336bdf5e80206cac55feed20fca4252c30d0 (diff) |
Fix create flavor error
1.we add unit convert function.
2.align to some csar data.
Change-Id: Ibc7f53d21ac5ad4c531c9d88d9605772cd21a2a9
Issue-ID: VFC-972
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'lcm/lcm/samples')
-rw-r--r-- | lcm/lcm/samples/tests.py | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/lcm/lcm/samples/tests.py b/lcm/lcm/samples/tests.py index 3a923ab7..47e23533 100644 --- a/lcm/lcm/samples/tests.py +++ b/lcm/lcm/samples/tests.py @@ -39,10 +39,10 @@ inst_res_data = { "num_virtual_cpu": "2", "cpu_architecture": "generic" }, - "virtual_storage": { - "type_of_storage": "root", - "size_of_storage": "40 GB" - }, + }, + "virtual_storage": { + "type_of_storage": "root", + "size_of_storage": "40 GB" }, "artifacts": [ { @@ -305,26 +305,30 @@ c4_data_create_port = { "id": "456" } -c5_data_get_flavor = [{ - "flavors": { - "flavor": [ +c5_data_get_flavor = { + "flavor": [ + { + "flavor-id": "111111", + "flavor-name": "onap.large", + "hpa-capabilities": { - "flavor-id": "111111", - "hpa-capabilities": [ + "hpa-capability": + [ { "hpa-capability-id": "1243", - "hpa-feature-attributes": [ + "hpa-feature-attributes": + [ { "hpa-attribute-key": "memoryPageSize", - "hpa-attribute-value": {"value": 2, "unit": "MB"} + "hpa-attribute-value": '{"value": "2", "unit": "MB"}' } ] } ] } - ] - } -}] + } + ] +} c6_data_list_image = { "images": [ |