From 98fd81e0c4e0f116c58bad8a8051f5e999af261e Mon Sep 17 00:00:00 2001 From: Shubham Mishra Date: Wed, 23 Sep 2020 13:17:28 +0530 Subject: add support for pdf2.0 Change-Id: I5efa879f4707c75d347e49e34cb178d978849b94 Signed-off-by: Shubham Mishra --- .gitignore | 1 + hdv/redfish/conf/pdf2.0.json | 1094 ++++++++++++++++++++ hdv/redfish/conftest.py | 11 +- hdv/redfish/hdv_redfish.py | 35 +- ...alhost:8000Wed Sep 23 13:08:17 2020_report.yaml | 560 ++++++++++ ...alhost:8000Wed Sep 23 13:08:37 2020_report.yaml | 560 ++++++++++ 6 files changed, 2241 insertions(+), 20 deletions(-) create mode 100644 hdv/redfish/conf/pdf2.0.json create mode 100644 hdv/redfish/result/localhost:8000Wed Sep 23 13:08:17 2020_report.yaml create mode 100644 hdv/redfish/result/localhost:8000Wed Sep 23 13:08:37 2020_report.yaml diff --git a/.gitignore b/.gitignore index 884471c..5296718 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ cover docs_output .tox docs/_build/* +./hdv/redfish/result/*.yaml diff --git a/hdv/redfish/conf/pdf2.0.json b/hdv/redfish/conf/pdf2.0.json new file mode 100644 index 0000000..91b8fad --- /dev/null +++ b/hdv/redfish/conf/pdf2.0.json @@ -0,0 +1,1094 @@ +{ + + "_comment_head1":"User should Configure all profiles. Add new, if reqd.", + + "_comment_head2":"User should Configure the roles", + + "_comment_head3":"All infos should be filled by the user", + + "_comment_head4":"The servers data will be automatically generated", + + "_comment_info1":"All Infos", + + "management_info": { + + "owner":"", + + "area_name": "", + + "area_center_name": "", + + "room_id": "", + + "city": "", + + "resource_pool_name": "" + + }, + + "user_info": [ + + { + + "username":"", + + "password":"", + + "pub_key":"", + + "passphrase":"", + + "tls_ca_cert":"", + + "tls_cert":"", + + "tls_key":"", + + "email":"" + + } + + ], + + "ntp_info": { + + "primary_ip":"", + + "primary_zone":"", + + "secondary_ip":"", + + "secondary_zone":"" + + }, + + "syslog_info": { + + "server_ip":"", + + "transport":"" + + }, + + "dns_info": [ + + { + + "name":"", + + "domain":"", + + "servers": [ + + { + + "ip": "" + + } + + ] + + } + + ], + + "proxy_info": { + + "address":"", + + "port":"", + + "user":"", + + "password":"" + + }, + + "ldap_info": { + + "base_url":"", + + "url":"", + + "auth_path":"", + + "common_name":"", + + "subdomain":"", + + "domain":"" + + }, + + "vim_info": { + + "vim_name": " ", + + "vim_id": " ", + + "vendor": " ", + + "version": " ", + + "installer":"", + + "deployment_style":"", + + "container_orchestrator":"", + + "storage_type":"" + + }, + + "_comment_deployment":" Type can be OOK or NOOK, block storage method is rbd or iscsi", + + "deployment_info": { + + "high_availability":"", + + "introspection":"", + + "deployment_type":"", + + "installer_used":"", + + "workload_vnf":"", + + "workload_cnf":"", + + "sdn_controller":"", + + "sdn_controller_version":"", + + "sdn_controller_nbapps":"", + + "vnfm":"", + + "vnfm_version":"", + + "data_plane_used":"", + + "ironic_deploy_interface":"", + + "external_storage_cluster":"", + + "bl_str_connect_method":"" + + }, + + "vim_functional": { + + "scheduler_filters":"", + + "cpu_allocation_ratio":"" + + }, + + "jumphost_info": { + + "ip":"", + + "name":"" + + }, + + "rack_info": [ + + { + + "rack_id":"", + + "rack_details": { + + "rack_name":"", + + "rack_description":"", + + "rack_az":"" + + } + + } + + ], + + "storage_cluster_info": { + + "name":"", + + "cluster_type":"", + + "cluster_id":"", + + "auth_type":"", + + "username":"", + + "password":"", + + "certificate_location":"", + + "client_key":"", + + "mon_host_ips": [ + + { + + "ips":"" + + } + + ], + + "public_cidr":"", + + "cluster_cidr":"", + + "pools": [ + + { + + "key":"", + + "value":"" + + } + + ] + + }, + + "_comment_info2": "End of Information - Except Software-INFO", + + "bios_profile": [ + + { + + "profile_name":"", + + "bios_info": + + { + + "bios_version": "", + + "bios_mode":"", + + "bootstrap_proto":"", + + "hyperthreading_enabled":"", + + "_comment":"C4_C6_MLC-STR_MLC-SPA_DCU_DCA_RAS_TURBO", + + "bios_setting":"" + + } + + } + + ], + + "processor_profiles": [ + + { + + "profile_name":"", + + "profile_info": + + { + + "manufacturer": "", + + "generation":"", + + "speed":"", + + "model":"", + + "architecture":"", + + "cpu_cflags":"", + + "cache_size":"", + + "numas": [ + + { + + "node_id":"", + + "cpu_set":"" + + } + + ] + + } + + } + + ], + + "disks_profiles": [ + + { + + "profile_name":"", + + "profile_info": [ + + { + + "alias":"", + + "vendor":"", + + "address":"", + + "size":"", + + "model":"", + + "dev_type":"", + + "rotation":"", + + "bus":"", + + "logical_name":"" + + } + + ] + + } + + ], + + "nic_profiles": [ + + { + + "profile_name":"", + + "profile_info": [ + + { + + "alias":"", + + "name":"", + + "address":"", + + "dev_type":"", + + "bus":"", + + "sriov_capable":"", + + "numa_id":"" + + } + + ] + + } + + ], + + "hardware_profiles": [ + + { + + "profile_name": "", + + "profile_info": { + + "manufacturer": "", + + "model": "", + + "generation":"", + + "bios_profile":"", + + "processor_profile": "", + + "memory": "", + + "disks_profile": "", + + "nics_profile":"" + + } + + } + + ], + + "_comment_hw":" Hardware Information is complete", + + "storage_profile": [ + + { + + "name":"", + + "bootdrive":"", + + "bd_partitions": [ + + { + + "name":"", + + "size":"", + + "bootable":"", + + "filesystem": { + + "mountpoint":"", + + "fstype":"", + + "mount_options":"" + + } + + } + + ], + + "data_devices": [ + + { + + "name":"", + + "partitions": [ + + { + + "name":"ceph", + + "size":"available", + + "filesystem": { + + "mountpoint":"/var/lib/ceph", + + "fstype":"ext4", + + "mount_options":"defaults" + + } + + } + + ] + + } + + ], + + "journal_devices": [ + + { + + "name":"" + + } + + ] + + + + } + + ], + + "_comment_nw1": "Network Info, Please include IPMI & Physnets info too", + + "networks": [ + + { + + "name":"", + + "vips":[ + + { + + "name":"", + + "ip":"" + + } + + ], + + "tunnel_type":"", + + "tunnel_id":"", + + "tunnel_id_range":"", + + "mtu":"", + + "routedomain":"", + + "cidr":"", + + "dns":"", + + "routes": [ + + { + + "subnet":"", + + "gateway":"", + + "metric":"", + + "routedomain":"" + + } + + ], + + "allocation_pools": [ + + { + + "type":"", + + "start":"", + + "end":"" + + } + + ], + + "v6_cidr":"", + + "v6_allocation_pools": [ + + { + + "type":"", + + "start":"", + + "end":"" + + } + + ] + + } + + ], + + "physical_networks": [ + + { + + "name":"external", + + "cidr":"", + + "type":"flat" + + } + + ], + + "_comment_nw2":" type: trunk (airship), bond, interface, bridge", + + "network_link": [ + + { + + "name":"", + + "type":"", + + "bonding_mode":"", + + "mtu":"", + + "linkspeed":"auto", + + "trunking_mode":"", + + "trunking_default_nw":"", + + "metadata": [ + + { + + "key":"", + + "value":"" + + } + + ], + + "members":[ + + { + + "name":"", + + "type":"" + + } + + ], + + "vid":"", + + "vf_count":"" + + } + + ], + + "_comment_nw4": "The interface_name could be i/f, bond, bridges", + + "_comment_nw5": "These profiles are mapped to roles", + + "interface_mapping_profiles": [ + + { + + "profile_name":"", + + "profile_data": [ + + { + + "interface_name":"", + + "interface_type":"", + + "networks": [ + + { + + "name":"" + + } + + ], + + "use_dhcp":"" + + } + + ] + + } + + ], + + "platform_profiles": [ + + { + + "profile_name":"", + + "os":"", + + "rt_kvm":"", + + "kernel_version":"", + + "kernel_parameters":"", + + "isolated_cpus":"", + + "vnf_cores":"", + + "os_reserved_cores": " ", + + "hugepage_count":"", + + "hugepages": [ + + { + + "hugepage_count":"", + + "hugepage_size":"" + + } + + ], + + "iommu":"", + + "vswitch_daemon_cores": " ", + + "vswitch_type":"", + + "vswitch_uio_driver":"", + + "vswitch_mem_channels":"", + + "vswitch_socket_memory":"", + + "vswitch_pmd_cores":"", + + "vswitch_dpdk_lcores":"", + + "vswitch_dpdk_rxqs":"", + + "vswitch_options":"" + + } + + ], + + "undercloud_ook":{ + + "dns": { + + "cluster_domain":"", + + "service_ip":"" + + }, + + "etcd":{ + + "service_ip":"", + + "container_port":"", + + "haproxy_port":"" + + }, + + "masters": [ + + { + + "hostname":"" + + } + + ], + + "networking":{ + + "type":"", + + "interface_used":"", + + "api_service_ip":"", + + "etcd_service_ip":"", + + "pod_cidr":"", + + "service_cidr":"", + + "apiserver_port":"", + + "haproxy_port":"", + + "servicenode_port_range":"" + + }, + + "kvps":[ + + { + + "key":"", + + "value":"" + + } + + ] + + + + }, + + "undercloud_ooo":{ + + "host_name":"", + + "local_ip":"", + + "public_host":"", + + "admin_host":"", + + "local_interface":"", + + "inspection_interface":"", + + "networking":{ + + "ctrlplane_cidr":"", + + "ctrlplane_ip_start":"", + + "ctrlplane_ip_end":"", + + "inspection_range":"", + + "gateway":"" + + } + + }, + + "_comment_sw1":"Software Begins", + + "undercloud_sw_profiles":[ + + { + + "profile_name":"", + + "sw_list": [ + + { + + "name":"", + + "version":"" + + } + + ] + + } + + ], + + "openstack_sw_profiles":[ + + { + + "profile_name":"", + + "sw_list": [ + + { + + "name":"", + + "version":"" + + } + + ] + + } + + ], + + "infra_sw_profiles":[ + + { + + "profile_name":"", + + "sw_list": [ + + { + + "name":"", + + "version":"" + + } + + ] + + } + + ], + + "software_set": [ + + { + + "set_name":"", + + "undercloud_profile":"", + + "infrasw_profile":"", + + "openstack_profile":"" + + } + + ], + + "_comment_role1":"User has to configure this - What profile to use for a role", + + "_comment_role2":"Based on this server_info will be autogenerated for all servers", + + "roles": [ + + { + + "name":"", + + "hostname_prefix":"", + + "hostname_suffix":"", + + "hostname_number_start":"", + + "count":"", + + "hardware_profile":"", + + "interface_mapping":"", + + "storage_mapping":"", + + "platform_profile":"", + + "sw_set_name":"", + + "metadata": [ + + { + + "on_count_condition":"", + + "count":"", + + "key":"", + + "value":"" + + } + + ] + + } + + ], + + "_comment_ex1":"C:City, A:Area, R:Room, N:Unique Number", + + "_comment_ex2":"All are 2 characters. City-Capitals, Area-Small", + + "extrapolation_info": { + + "ilo_password":"CID-AID-RID-NID", + + "ilo_user":"owner", + + "ip_increment":"" + + }, + + "host_aggregates": [ + + { + + "aggregate_name":"", + + "properties": [ + + { + + "key":"", + + "value":"" + + } + + ], + + "servers": [ + + { + + "identifier":"", + + "ilo_ip":"", + + "hostname":"" + + } + + ] + + } + + ], + + "_comment_servers1":"This will be auto generated", + + "_comment_servers2":"This describes the entire cloud.", + + "servers": [ + + { + + "role_name":"controller", + + "device_name":"SRV-001", + + "az_name": "AZ-1", + + "ha_name": "HA-1", + + "rack":"r01", + + "ilo_info": { + + "ip":"localhost:8000", + + "user":"admin", + + "password":"password" + + } + + }, + + { + + "role_name":"controller", + + "device_name":"SRV-002", + + "az_name": "AZ-1", + + "ha_name": "HA-1", + + "rack":"r01", + + "ilo_info": { + + "ip":"localhost:8000", + + "user":"admin", + + "password":"password" + + } + + } + ] + +} \ No newline at end of file diff --git a/hdv/redfish/conftest.py b/hdv/redfish/conftest.py index 9bc7bcb..b1d8d5f 100644 --- a/hdv/redfish/conftest.py +++ b/hdv/redfish/conftest.py @@ -1,19 +1,20 @@ import pytest -from hdv_redfish import read_yaml +from hdv_redfish import read_yaml, parse_config def pytest_addoption(parser): parser.addoption( "--cases", action="store", default="./conf/cases.yaml", help="case yaml file" ) parser.addoption( - "--config", action="store", default="./conf/config.yaml", help="given global config.yaml file" + "--config", action="store", default="./conf/pdf2.0.json", help="given global config.yaml file" ) -@pytest.fixture(scope = 'session') -def conf_file(request): - return request.config.getoption("--config") def pytest_generate_tests(metafunc): + if "config_list" in metafunc.fixturenames: + config_file = metafunc.config.getoption("--config") + metafunc.parametrize("config_list", parse_config(config_file), indirect=True, scope='session') + if "case" in metafunc.fixturenames: cases_file = metafunc.config.getoption("--cases") metafunc.parametrize("case", read_yaml(cases_file)) \ No newline at end of file diff --git a/hdv/redfish/hdv_redfish.py b/hdv/redfish/hdv_redfish.py index 306c93b..38a1347 100644 --- a/hdv/redfish/hdv_redfish.py +++ b/hdv/redfish/hdv_redfish.py @@ -32,22 +32,25 @@ WAIT_INTERVAL = 5 cases_result = [] -def parse_config(config_yaml): +def parse_config(config_json): """ parse setting from config.yaml :return: """ try: - if not os.path.exists(config_yaml): - LOGGER.error(" %s, %s", ERROR_CODE['E400001'], config_yaml) - with open(config_yaml, 'r') as conf_file: - config = yaml.load(conf_file.read(), Loader=yaml.FullLoader) + if not os.path.exists(config_json): + LOGGER.error(" %s, %s", ERROR_CODE['E400001'], config_json) + with open(config_json, 'r') as conf_file: + config = json.load(conf_file) except FileNotFoundError as fnfe: LOGGER.error(fnfe) LOGGER.error(u"%s", ERROR_CODE['E400002']) return None else: - return config + config_list = [] + for each_server in config["servers"]: + config_list.append(each_server["ilo_info"]) + return config_list def get_token(http_handler, url): @@ -509,15 +512,15 @@ def test_case_yaml_run(run, case): assert flag == 0, final_rst -def write_result_2_yaml(result): +def write_result_2_yaml(result, bmc_ip): ''' write test result to new report.yaml ''' LOGGER.info("writing to yaml file") - yaml.safe_dump(result, open("./conf/report.yaml", "w"), + + yaml.safe_dump(result, open("./result/"+bmc_ip+time.ctime()+"_report.yaml", "w"), explicit_start=True) - def generate_testapi_result(cases_result): ''' convert cases_result from list to dictionary for pushing to testapi @@ -531,9 +534,12 @@ def generate_testapi_result(cases_result): return testapi_result +@pytest.fixture('session') +def config_list(request): + return request.param @pytest.fixture(scope='session') -def run(conf_file): +def run(config_list): ''' @param conf_file: config.yaml @param case_file: case yaml file @@ -541,16 +547,14 @@ def run(conf_file): ''' # parse config.yaml LOGGER.info("start engine ...") - config_file = parse_config(conf_file) http_handler = UrllibHttpHandler() - # get bmc info bmc_ip, bmc_user, bmc_pwd = \ - config_file["bmc_ip"], config_file["bmc_user"], config_file["bmc_pwd"] + "https://" + config_list["ip"], config_list["user"], config_list["password"] ACCOUNT_INFO.update({"UserName": bmc_user}) ACCOUNT_INFO.update({"Password": bmc_pwd}) - url = "{0}/redfish/v1/SessionService/Sessions/".format(bmc_ip) + url = "https://{0}/redfish/v1/SessionService/Sessions/".format(bmc_ip) x_auth_token = get_token(http_handler, url) LOGGER.info("x_auth_token: %s", x_auth_token) @@ -566,10 +570,11 @@ def run(conf_file): yield depends_id, http_handler, bmc_ip - write_result_2_yaml(cases_result) + write_result_2_yaml(cases_result, config_list["ip"]) LOGGER.info("############### end perform test case ###################") LOGGER.info("done,checking the log %s", LOG_FILE) # parse cases_result for testapi and push it testapi_result = generate_testapi_result(cases_result) PushResults(testapi_result, LOGGER) + cases_result.clear() return True diff --git a/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:17 2020_report.yaml b/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:17 2020_report.yaml new file mode 100644 index 0000000..a9706db --- /dev/null +++ b/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:17 2020_report.yaml @@ -0,0 +1,560 @@ +--- +- case_name: get asset code + case_sn: 0 + enabled: false + expected_code: 200 + expected_result: + AssetTag: CM_cc@1234 + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + url: /redfish/v1/Systems/{system_id}/ +- case_name: check main board name + case_sn: 8 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''BoardName'': + ''RS33M2C9S''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + BoardName: RS33M2C9S + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check CPU amount + case_sn: 11 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 2, return value: + 3''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Processors/ +- case_name: check CPU info + case_sn: 2 + details_result: '{''count'': ''Failure, the actual num is 3'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': ''Failure, expect + value: 2300, return value: 3700'', ''Model'': ''Failure, expect value: Intel(R) + Xeon(R) Gold 5218N CPU @ 2.30GHz, return value: Multi-Core Intel(R) Xeon(R) processor + 7xxx Series'', ''ProcessorArchitecture'': ''Success'', ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 1'', ''Status'': {''Health'': ''Success'', + ''State'': ''Success''}, ''TotalCores'': ''Failure, expect value: 16, return value: + 8'', ''TotalThreads'': ''Failure, expect value: 32, return value: 16''}, {''return_code'': + ''Success'', ''Manufacturer'': "Failure, expect value: Intel(R) Corporation, return + value: Can''t find key Manufacturer in return value", ''MaxSpeedMHz'': "Failure, + expect value: 2300, return value: Can''t find key MaxSpeedMHz in return value", + ''Model'': "Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ 2.30GHz, + return value: Can''t find key Model in return value", ''ProcessorArchitecture'': + "Failure, expect value: [''x86'', ''IA-64'', ''ARM'', ''MIPS'', ''OEM''], return + value: Can''t find key ProcessorArchitecture in return value", ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 2'', ''Status'': {''Health'': "Failure, + expect value: OK, return value: Can''t find key Health in return value", ''State'': + ''Failure, expect value: Enabled, return value: Absent''}, ''TotalCores'': "Failure, + expect value: 16, return value: Can''t find key TotalCores in return value", ''TotalThreads'': + "Failure, expect value: 32, return value: Can''t find key TotalThreads in return + value"}, {''return_code'': ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': + "Failure, expect value: 2300, return value: Can''t find key MaxSpeedMHz in return + value", ''Model'': ''Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ + 2.30GHz, return value: Stratix 10'', ''ProcessorArchitecture'': ''Success'', ''Socket'': + "Failure, expect value: [1, 2], return value: Can''t find key Socket in return + value", ''Status'': {''Health'': ''Success'', ''State'': ''Success''}, ''TotalCores'': + "Failure, expect value: 16, return value: Can''t find key TotalCores in return + value", ''TotalThreads'': "Failure, expect value: 32, return value: Can''t find + key TotalThreads in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + 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 + count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + cpu_id: Members + system_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Processors/{cpu_id}/ +- case_name: set asset code + case_sn: 1 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Failure'', ''AssetTag'': "Failure, expect value: CM_cc@1234, return value: Can''t + find key AssetTag in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + AssetTag: CM_cc@1234 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: PATCH + request_body: '{"AssetTag": "CM_cc@1234"}' + return_code_seq: '[''N/A'']' + url: /redfish/v1/Systems/{system_id}/ +- case_name: set host name + case_sn: 3 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Failure'', ''HostName'': "Failure, expect value: NFV-RPZJHZ-01B, return value: + Can''t find key HostName in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + HostName: NFV-RPZJHZ-01B + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: PATCH + request_body: '{"HostName": "NFV-RPZJHZ-01B"}' + return_code_seq: '[''N/A'']' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check host name + case_sn: 4 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''HostName'': ''Failure, expect value: NFV-RPZJHZ-01B, return value: + web483''}]}' + enabled: true + expected_code: 200 + expected_result: + HostName: NFV-RPZJHZ-01B + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check manufacturer + case_sn: 5 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Failure, expect value: New H3C Technologies Co., + Ltd., return value: Contoso''}]}' + enabled: true + expected_code: 200 + expected_result: + Manufacturer: New H3C Technologies Co., Ltd. + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check model + case_sn: 6 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Model'': ''Failure, expect value: UniServer R4900 G3, return value: + 3500''}]}' + enabled: true + expected_code: 200 + expected_result: + Model: UniServer R4900 G3 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check serial number + case_sn: 7 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''SerialNumber'': ''Success''}]}' + enabled: true + expected_code: 200 + expected_result: + SerialNumber: N/A + final_rst: Success + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check main board name + case_sn: 8 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''BoardName'': + ''RS33M2C9S''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + BoardName: RS33M2C9S + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check main board serial number + case_sn: 9 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''SerialNumber'': + ''N/A''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + SerialNumber: N/A + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check BIOS version + case_sn: 10 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''BiosVersion'': ''Failure, expect value: 2.00.35P01 V100R001B02D035SP01, + return value: P79 v1.45 (12/06/2017)''}]}' + enabled: true + expected_code: 200 + expected_result: + BiosVersion: 2.00.35P01 V100R001B02D035SP01 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check CPU amount + case_sn: 11 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 2, return value: + 3''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Member + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Processors/ +- case_name: check CPU info + case_sn: 12 + details_result: '{''count'': ''Failure, the actual num is 3'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': ''Failure, expect + value: 2300, return value: 3700'', ''Model'': ''Failure, expect value: Intel(R) + Xeon(R) Gold 5218N CPU @ 2.30GHz, return value: Multi-Core Intel(R) Xeon(R) processor + 7xxx Series'', ''ProcessorArchitecture'': ''Success'', ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 1'', ''Status'': {''Health'': ''Success'', + ''State'': ''Success''}, ''TotalCores'': ''Failure, expect value: 16, return value: + 8'', ''TotalThreads'': ''Failure, expect value: 32, return value: 16''}, {''return_code'': + ''Success'', ''Manufacturer'': "Failure, expect value: Intel(R) Corporation, return + value: Can''t find key Manufacturer in return value", ''MaxSpeedMHz'': "Failure, + expect value: 2300, return value: Can''t find key MaxSpeedMHz in return value", + ''Model'': "Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ 2.30GHz, + return value: Can''t find key Model in return value", ''ProcessorArchitecture'': + "Failure, expect value: [''x86'', ''IA-64'', ''ARM'', ''MIPS'', ''OEM''], return + value: Can''t find key ProcessorArchitecture in return value", ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 2'', ''Status'': {''Health'': "Failure, + expect value: OK, return value: Can''t find key Health in return value", ''State'': + ''Failure, expect value: Enabled, return value: Absent''}, ''TotalCores'': "Failure, + expect value: 16, return value: Can''t find key TotalCores in return value", ''TotalThreads'': + "Failure, expect value: 32, return value: Can''t find key TotalThreads in return + value"}, {''return_code'': ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': + "Failure, expect value: 2300, return value: Can''t find key MaxSpeedMHz in return + value", ''Model'': ''Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ + 2.30GHz, return value: Stratix 10'', ''ProcessorArchitecture'': ''Success'', ''Socket'': + "Failure, expect value: [1, 2], return value: Can''t find key Socket in return + value", ''Status'': {''Health'': ''Success'', ''State'': ''Success''}, ''TotalCores'': + "Failure, expect value: 16, return value: Can''t find key TotalCores in return + value", ''TotalThreads'': "Failure, expect value: 32, return value: Can''t find + key TotalThreads in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + 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 + count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + cpu_id: Members + system_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Processors/{cpu_id}/ +- case_name: check memory mount + case_sn: 13 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 12, return value: + 4''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 12 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Memory/ +- case_name: check memory information + case_sn: 14 + details_result: '{''count'': ''Failure, the actual num is 4'', ''info'': [{''return_code'': + ''Success'', ''BaseModuleType'': ''Success'', ''CapacityMiB'': ''Success'', ''DeviceLocator'': + ''Success'', ''Manufacturer'': "Failure, expect value: [''Hynix Semiconductor'', + ''Micron''], return value: Can''t find key Manufacturer in return value", ''MemoryDeviceType'': + ''Success'', ''OperatingSpeedMhz'': "Failure, expect value: 2666, return value: + Can''t find key OperatingSpeedMhz in return value", ''PartNumber'': "Failure, + expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], return value: Can''t + find key PartNumber in return value", ''Status'': {''Health'': ''Success'', ''State'': + ''Success''}}, {''return_code'': ''Success'', ''BaseModuleType'': ''Success'', + ''CapacityMiB'': ''Success'', ''DeviceLocator'': ''Success'', ''Manufacturer'': + "Failure, expect value: [''Hynix Semiconductor'', ''Micron''], return value: Can''t + find key Manufacturer in return value", ''MemoryDeviceType'': ''Success'', ''OperatingSpeedMhz'': + "Failure, expect value: 2666, return value: Can''t find key OperatingSpeedMhz + in return value", ''PartNumber'': "Failure, expect value: [''HMA84GR7AFR4N-VK'', + ''36ASF4G72PZ-2G6D1''], return value: Can''t find key PartNumber in return value", + ''Status'': {''Health'': ''Success'', ''State'': ''Success''}}, {''return_code'': + ''Success'', ''BaseModuleType'': ''Success'', ''CapacityMiB'': ''Success'', ''DeviceLocator'': + ''Success'', ''Manufacturer'': "Failure, expect value: [''Hynix Semiconductor'', + ''Micron''], return value: Can''t find key Manufacturer in return value", ''MemoryDeviceType'': + ''Success'', ''OperatingSpeedMhz'': "Failure, expect value: 2666, return value: + Can''t find key OperatingSpeedMhz in return value", ''PartNumber'': "Failure, + expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], return value: Can''t + find key PartNumber in return value", ''Status'': {''Health'': ''Success'', ''State'': + ''Success''}}, {''return_code'': ''Success'', ''BaseModuleType'': "Failure, expect + value: RDIMM, return value: Can''t find key BaseModuleType in return value", ''CapacityMiB'': + "Failure, expect value: 32768, return value: Can''t find key CapacityMiB in return + value", ''DeviceLocator'': ''Success'', ''Manufacturer'': "Failure, expect value: + [''Hynix Semiconductor'', ''Micron''], return value: Can''t find key Manufacturer + in return value", ''MemoryDeviceType'': "Failure, expect value: DDR4, return value: + Can''t find key MemoryDeviceType in return value", ''OperatingSpeedMhz'': "Failure, + expect value: 2666, return value: Can''t find key OperatingSpeedMhz in return + value", ''PartNumber'': "Failure, expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], + return value: Can''t find key PartNumber in return value", ''Status'': {''Health'': + "Failure, expect value: OK, return value: Can''t find key Health in return value", + ''State'': ''Failure, expect value: Enabled, return value: Absent''}}]}' + enabled: true + expected_code: 200 + expected_result: + BaseModuleType: RDIMM + CapacityMiB: 32768 + DeviceLocator: N/A + Manufacturer: + - Hynix Semiconductor + - Micron + MemoryDeviceType: DDR4 + OperatingSpeedMhz: 2666 + PartNumber: + - HMA84GR7AFR4N-VK + - 36ASF4G72PZ-2G6D1 + Status: + Health: OK + State: Enabled + count: 12 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + System_id: Members + memory_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Memory/{memory_id}/ +- case_name: check fans information + case_sn: 20 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''FanSummary'': "Failure, expect value: {''Count'': 6, ''Fans'': + [{''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': + {''Health'': ''OK'', ''State'': ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': + {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': + ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': + ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': ''Enabled''}}, {''MemberId'': + ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': + ''OK'', ''State'': ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': {''Public'': + {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': ''Enabled''}}, + {''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': + {''Health'': ''OK'', ''State'': ''Enabled''}}]}, return value: Can''t find key + FanSummary in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + FanSummary: + Count: 6 + Fans: + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/Thermal/ +- case_name: check power amount + case_sn: 21 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''DeviceMaxNum'': "Failure, expect value: {''PowerSupplyNum'': 2}, + return value: Can''t find key DeviceMaxNum in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + DeviceMaxNum: + PowerSupplyNum: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + chassis_id: MemberId + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check cpu temperature + case_sn: 25 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Temperatures'': [{''Name'': ''Failure, expect value: INPUT_TEMP, + return value: CPU1 Temp'', ''ReadingCelsius'': ''Success''}, {''Name'': ''Failure, + expect value: CPU1_TEMP, return value: CPU2 Temp'', ''ReadingCelsius'': ''Success''}, + {''Name'': ''Failure, expect value: CPU2_TEMP, return value: Chassis Intake Temp'', + ''ReadingCelsius'': ''Success''}]}]}' + enabled: true + expected_code: 200 + expected_result: + Temperatures: + - Name: INPUT_TEMP + ReadingCelsius: N/A + - Name: CPU1_TEMP + ReadingCelsius: N/A + - Name: CPU2_TEMP + ReadingCelsius: N/A + final_rst: Failure + group: sensor management + header: null + key_flag_dict: + chassis_id: Member + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/Thermal/ diff --git a/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:37 2020_report.yaml b/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:37 2020_report.yaml new file mode 100644 index 0000000..a9706db --- /dev/null +++ b/hdv/redfish/result/localhost:8000Wed Sep 23 13:08:37 2020_report.yaml @@ -0,0 +1,560 @@ +--- +- case_name: get asset code + case_sn: 0 + enabled: false + expected_code: 200 + expected_result: + AssetTag: CM_cc@1234 + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + url: /redfish/v1/Systems/{system_id}/ +- case_name: check main board name + case_sn: 8 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''BoardName'': + ''RS33M2C9S''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + BoardName: RS33M2C9S + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check CPU amount + case_sn: 11 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 2, return value: + 3''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Processors/ +- case_name: check CPU info + case_sn: 2 + details_result: '{''count'': ''Failure, the actual num is 3'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': ''Failure, expect + value: 2300, return value: 3700'', ''Model'': ''Failure, expect value: Intel(R) + Xeon(R) Gold 5218N CPU @ 2.30GHz, return value: Multi-Core Intel(R) Xeon(R) processor + 7xxx Series'', ''ProcessorArchitecture'': ''Success'', ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 1'', ''Status'': {''Health'': ''Success'', + ''State'': ''Success''}, ''TotalCores'': ''Failure, expect value: 16, return value: + 8'', ''TotalThreads'': ''Failure, expect value: 32, return value: 16''}, {''return_code'': + ''Success'', ''Manufacturer'': "Failure, expect value: Intel(R) Corporation, return + value: Can''t find key Manufacturer in return value", ''MaxSpeedMHz'': "Failure, + expect value: 2300, return value: Can''t find key MaxSpeedMHz in return value", + ''Model'': "Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ 2.30GHz, + return value: Can''t find key Model in return value", ''ProcessorArchitecture'': + "Failure, expect value: [''x86'', ''IA-64'', ''ARM'', ''MIPS'', ''OEM''], return + value: Can''t find key ProcessorArchitecture in return value", ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 2'', ''Status'': {''Health'': "Failure, + expect value: OK, return value: Can''t find key Health in return value", ''State'': + ''Failure, expect value: Enabled, return value: Absent''}, ''TotalCores'': "Failure, + expect value: 16, return value: Can''t find key TotalCores in return value", ''TotalThreads'': + "Failure, expect value: 32, return value: Can''t find key TotalThreads in return + value"}, {''return_code'': ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': + "Failure, expect value: 2300, return value: Can''t find key MaxSpeedMHz in return + value", ''Model'': ''Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ + 2.30GHz, return value: Stratix 10'', ''ProcessorArchitecture'': ''Success'', ''Socket'': + "Failure, expect value: [1, 2], return value: Can''t find key Socket in return + value", ''Status'': {''Health'': ''Success'', ''State'': ''Success''}, ''TotalCores'': + "Failure, expect value: 16, return value: Can''t find key TotalCores in return + value", ''TotalThreads'': "Failure, expect value: 32, return value: Can''t find + key TotalThreads in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + 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 + count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + cpu_id: Members + system_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Processors/{cpu_id}/ +- case_name: set asset code + case_sn: 1 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Failure'', ''AssetTag'': "Failure, expect value: CM_cc@1234, return value: Can''t + find key AssetTag in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + AssetTag: CM_cc@1234 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: PATCH + request_body: '{"AssetTag": "CM_cc@1234"}' + return_code_seq: '[''N/A'']' + url: /redfish/v1/Systems/{system_id}/ +- case_name: set host name + case_sn: 3 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Failure'', ''HostName'': "Failure, expect value: NFV-RPZJHZ-01B, return value: + Can''t find key HostName in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + HostName: NFV-RPZJHZ-01B + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: PATCH + request_body: '{"HostName": "NFV-RPZJHZ-01B"}' + return_code_seq: '[''N/A'']' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check host name + case_sn: 4 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''HostName'': ''Failure, expect value: NFV-RPZJHZ-01B, return value: + web483''}]}' + enabled: true + expected_code: 200 + expected_result: + HostName: NFV-RPZJHZ-01B + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check manufacturer + case_sn: 5 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Failure, expect value: New H3C Technologies Co., + Ltd., return value: Contoso''}]}' + enabled: true + expected_code: 200 + expected_result: + Manufacturer: New H3C Technologies Co., Ltd. + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check model + case_sn: 6 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Model'': ''Failure, expect value: UniServer R4900 G3, return value: + 3500''}]}' + enabled: true + expected_code: 200 + expected_result: + Model: UniServer R4900 G3 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check serial number + case_sn: 7 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''SerialNumber'': ''Success''}]}' + enabled: true + expected_code: 200 + expected_result: + SerialNumber: N/A + final_rst: Success + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check main board name + case_sn: 8 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''BoardName'': + ''RS33M2C9S''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + BoardName: RS33M2C9S + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check main board serial number + case_sn: 9 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Oem'': "Failure, expect value: {''Mainboard'': {''SerialNumber'': + ''N/A''}}, return value: Can''t find key Oem in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + Oem: + Mainboard: + SerialNumber: N/A + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check BIOS version + case_sn: 10 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''BiosVersion'': ''Failure, expect value: 2.00.35P01 V100R001B02D035SP01, + return value: P79 v1.45 (12/06/2017)''}]}' + enabled: true + expected_code: 200 + expected_result: + BiosVersion: 2.00.35P01 V100R001B02D035SP01 + final_rst: Failure + group: asset managment + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/ +- case_name: check CPU amount + case_sn: 11 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 2, return value: + 3''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Member + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Processors/ +- case_name: check CPU info + case_sn: 12 + details_result: '{''count'': ''Failure, the actual num is 3'', ''info'': [{''return_code'': + ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': ''Failure, expect + value: 2300, return value: 3700'', ''Model'': ''Failure, expect value: Intel(R) + Xeon(R) Gold 5218N CPU @ 2.30GHz, return value: Multi-Core Intel(R) Xeon(R) processor + 7xxx Series'', ''ProcessorArchitecture'': ''Success'', ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 1'', ''Status'': {''Health'': ''Success'', + ''State'': ''Success''}, ''TotalCores'': ''Failure, expect value: 16, return value: + 8'', ''TotalThreads'': ''Failure, expect value: 32, return value: 16''}, {''return_code'': + ''Success'', ''Manufacturer'': "Failure, expect value: Intel(R) Corporation, return + value: Can''t find key Manufacturer in return value", ''MaxSpeedMHz'': "Failure, + expect value: 2300, return value: Can''t find key MaxSpeedMHz in return value", + ''Model'': "Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ 2.30GHz, + return value: Can''t find key Model in return value", ''ProcessorArchitecture'': + "Failure, expect value: [''x86'', ''IA-64'', ''ARM'', ''MIPS'', ''OEM''], return + value: Can''t find key ProcessorArchitecture in return value", ''Socket'': ''Failure, + expect value: [1, 2], return value: CPU 2'', ''Status'': {''Health'': "Failure, + expect value: OK, return value: Can''t find key Health in return value", ''State'': + ''Failure, expect value: Enabled, return value: Absent''}, ''TotalCores'': "Failure, + expect value: 16, return value: Can''t find key TotalCores in return value", ''TotalThreads'': + "Failure, expect value: 32, return value: Can''t find key TotalThreads in return + value"}, {''return_code'': ''Success'', ''Manufacturer'': ''Success'', ''MaxSpeedMHz'': + "Failure, expect value: 2300, return value: Can''t find key MaxSpeedMHz in return + value", ''Model'': ''Failure, expect value: Intel(R) Xeon(R) Gold 5218N CPU @ + 2.30GHz, return value: Stratix 10'', ''ProcessorArchitecture'': ''Success'', ''Socket'': + "Failure, expect value: [1, 2], return value: Can''t find key Socket in return + value", ''Status'': {''Health'': ''Success'', ''State'': ''Success''}, ''TotalCores'': + "Failure, expect value: 16, return value: Can''t find key TotalCores in return + value", ''TotalThreads'': "Failure, expect value: 32, return value: Can''t find + key TotalThreads in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + 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 + count: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + cpu_id: Members + system_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Processors/{cpu_id}/ +- case_name: check memory mount + case_sn: 13 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Members@odata.count'': ''Failure, expect value: 12, return value: + 4''}]}' + enabled: true + expected_code: 200 + expected_result: + Members@odata.count: 12 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + system_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Systems/{system_id}/Memory/ +- case_name: check memory information + case_sn: 14 + details_result: '{''count'': ''Failure, the actual num is 4'', ''info'': [{''return_code'': + ''Success'', ''BaseModuleType'': ''Success'', ''CapacityMiB'': ''Success'', ''DeviceLocator'': + ''Success'', ''Manufacturer'': "Failure, expect value: [''Hynix Semiconductor'', + ''Micron''], return value: Can''t find key Manufacturer in return value", ''MemoryDeviceType'': + ''Success'', ''OperatingSpeedMhz'': "Failure, expect value: 2666, return value: + Can''t find key OperatingSpeedMhz in return value", ''PartNumber'': "Failure, + expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], return value: Can''t + find key PartNumber in return value", ''Status'': {''Health'': ''Success'', ''State'': + ''Success''}}, {''return_code'': ''Success'', ''BaseModuleType'': ''Success'', + ''CapacityMiB'': ''Success'', ''DeviceLocator'': ''Success'', ''Manufacturer'': + "Failure, expect value: [''Hynix Semiconductor'', ''Micron''], return value: Can''t + find key Manufacturer in return value", ''MemoryDeviceType'': ''Success'', ''OperatingSpeedMhz'': + "Failure, expect value: 2666, return value: Can''t find key OperatingSpeedMhz + in return value", ''PartNumber'': "Failure, expect value: [''HMA84GR7AFR4N-VK'', + ''36ASF4G72PZ-2G6D1''], return value: Can''t find key PartNumber in return value", + ''Status'': {''Health'': ''Success'', ''State'': ''Success''}}, {''return_code'': + ''Success'', ''BaseModuleType'': ''Success'', ''CapacityMiB'': ''Success'', ''DeviceLocator'': + ''Success'', ''Manufacturer'': "Failure, expect value: [''Hynix Semiconductor'', + ''Micron''], return value: Can''t find key Manufacturer in return value", ''MemoryDeviceType'': + ''Success'', ''OperatingSpeedMhz'': "Failure, expect value: 2666, return value: + Can''t find key OperatingSpeedMhz in return value", ''PartNumber'': "Failure, + expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], return value: Can''t + find key PartNumber in return value", ''Status'': {''Health'': ''Success'', ''State'': + ''Success''}}, {''return_code'': ''Success'', ''BaseModuleType'': "Failure, expect + value: RDIMM, return value: Can''t find key BaseModuleType in return value", ''CapacityMiB'': + "Failure, expect value: 32768, return value: Can''t find key CapacityMiB in return + value", ''DeviceLocator'': ''Success'', ''Manufacturer'': "Failure, expect value: + [''Hynix Semiconductor'', ''Micron''], return value: Can''t find key Manufacturer + in return value", ''MemoryDeviceType'': "Failure, expect value: DDR4, return value: + Can''t find key MemoryDeviceType in return value", ''OperatingSpeedMhz'': "Failure, + expect value: 2666, return value: Can''t find key OperatingSpeedMhz in return + value", ''PartNumber'': "Failure, expect value: [''HMA84GR7AFR4N-VK'', ''36ASF4G72PZ-2G6D1''], + return value: Can''t find key PartNumber in return value", ''Status'': {''Health'': + "Failure, expect value: OK, return value: Can''t find key Health in return value", + ''State'': ''Failure, expect value: Enabled, return value: Absent''}}]}' + enabled: true + expected_code: 200 + expected_result: + BaseModuleType: RDIMM + CapacityMiB: 32768 + DeviceLocator: N/A + Manufacturer: + - Hynix Semiconductor + - Micron + MemoryDeviceType: DDR4 + OperatingSpeedMhz: 2666 + PartNumber: + - HMA84GR7AFR4N-VK + - 36ASF4G72PZ-2G6D1 + Status: + Health: OK + State: Enabled + count: 12 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + System_id: Members + memory_id: Members + method: GET + request_body: null + return_code_seq: '[200, 200, 200, 200]' + url: /redfish/v1/Systems/{system_id}/Memory/{memory_id}/ +- case_name: check fans information + case_sn: 20 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''FanSummary'': "Failure, expect value: {''Count'': 6, ''Fans'': + [{''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': + {''Health'': ''OK'', ''State'': ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': + {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': + ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': + ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': ''Enabled''}}, {''MemberId'': + ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': + ''OK'', ''State'': ''Enabled''}}, {''MemberId'': ''N/A'', ''Oem'': {''Public'': + {''SpeedRatio'': ''N/A''}}, ''Status'': {''Health'': ''OK'', ''State'': ''Enabled''}}, + {''MemberId'': ''N/A'', ''Oem'': {''Public'': {''SpeedRatio'': ''N/A''}}, ''Status'': + {''Health'': ''OK'', ''State'': ''Enabled''}}]}, return value: Can''t find key + FanSummary in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + FanSummary: + Count: 6 + Fans: + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + - MemberId: N/A + Oem: + Public: + SpeedRatio: N/A + Status: + Health: OK + State: Enabled + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + chassis_id: Members + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/Thermal/ +- case_name: check power amount + case_sn: 21 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''DeviceMaxNum'': "Failure, expect value: {''PowerSupplyNum'': 2}, + return value: Can''t find key DeviceMaxNum in return value"}]}' + enabled: true + expected_code: 200 + expected_result: + DeviceMaxNum: + PowerSupplyNum: 2 + final_rst: Failure + group: compoment management + header: null + key_flag_dict: + chassis_id: MemberId + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/ +- case_name: check cpu temperature + case_sn: 25 + details_result: '{''count'': ''N/A for this case'', ''info'': [{''return_code'': + ''Success'', ''Temperatures'': [{''Name'': ''Failure, expect value: INPUT_TEMP, + return value: CPU1 Temp'', ''ReadingCelsius'': ''Success''}, {''Name'': ''Failure, + expect value: CPU1_TEMP, return value: CPU2 Temp'', ''ReadingCelsius'': ''Success''}, + {''Name'': ''Failure, expect value: CPU2_TEMP, return value: Chassis Intake Temp'', + ''ReadingCelsius'': ''Success''}]}]}' + enabled: true + expected_code: 200 + expected_result: + Temperatures: + - Name: INPUT_TEMP + ReadingCelsius: N/A + - Name: CPU1_TEMP + ReadingCelsius: N/A + - Name: CPU2_TEMP + ReadingCelsius: N/A + final_rst: Failure + group: sensor management + header: null + key_flag_dict: + chassis_id: Member + method: GET + request_body: null + return_code_seq: '[200]' + url: /redfish/v1/Chassis/{chassis_id}/Thermal/ -- cgit 1.2.3-korg