From 0ca69e673a3c49acbb02b19df097bdf57f263a47 Mon Sep 17 00:00:00 2001 From: Shubham Mishra Date: Mon, 29 Jun 2020 18:19:05 +0530 Subject: add unittest, create_real_url() function Change-Id: Id89b7dc6050746c677a361d8d2e66e4c5f329f1d Signed-off-by: Shubham Mishra --- hdv/redfish/test/sample_test_cases.yml | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 hdv/redfish/test/sample_test_cases.yml (limited to 'hdv/redfish/test/sample_test_cases.yml') 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 -- cgit 1.2.3-korg