diff options
author | Shubham Mishra <shivam828787@gmail.com> | 2020-06-29 18:19:05 +0530 |
---|---|---|
committer | Shubham Mishra <shivam828787@gmail.com> | 2020-07-14 21:34:11 +0530 |
commit | 0ca69e673a3c49acbb02b19df097bdf57f263a47 (patch) | |
tree | f439133e18fd556973de67817d188f37f3637ede /hdv/redfish/test/sample_test_cases.yml | |
parent | 5ea4ca492b80712a822774cf50ee9864cbbb37ea (diff) |
add unittest, create_real_url() function
Change-Id: Id89b7dc6050746c677a361d8d2e66e4c5f329f1d
Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Diffstat (limited to 'hdv/redfish/test/sample_test_cases.yml')
-rw-r--r-- | hdv/redfish/test/sample_test_cases.yml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/hdv/redfish/test/sample_test_cases.yml b/hdv/redfish/test/sample_test_cases.yml new file mode 100644 index 0000000..8a732b2 --- /dev/null +++ b/hdv/redfish/test/sample_test_cases.yml @@ -0,0 +1,69 @@ +--- +- case_name: get asset code + case_sn: 1 + enabled: false + expected_code: 200 + expected_result: + AssetTag: CM_cc@1234 + group: asset managment + header: null + method: GET + request_body: null + url: /redfish/v1/Systems/{system_id} + key_flag_dict: + system_id: Members + +- case_name: check main board name + case_sn: 8 + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + BoardName: RS33M2C9S + group: asset managment + header: null + method: GET + request_body: null + url: /redfish/v1/Chassis/{chassis_id} + key_flag_dict: + chassis_id: Members + +- case_name: check CPU amount + case_sn: 11 + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 2 + group: compoment management + header: null + method: GET + request_body: null + url: /redfish/v1/Systems/{system_id}/Processors + key_flag_dict: + system_id: Members + +- case_name: check CPU info + case_sn: 2 + enabled: true + expected_code: 200 + expected_result: + count: 2 + Manufacturer: "Intel(R) Corporation" + MaxSpeedMHz: 2300 + Model: "Intel(R) Xeon(R) Gold 5218N CPU @ 2.30GHz" + ProcessorArchitecture: ["x86", "IA-64", "ARM", "MIPS", "OEM"] + Socket: [1, 2] + Status: + Health: OK + State: Enabled + TotalCores: 16 + TotalThreads: 32 + group: compoment management + header: null + method: GET + request_body: null + url: /redfish/v1/Systems/{system_id}/Processors/{cpu_id} + key_flag_dict: + system_id: Members + cpu_id: Members |