aboutsummaryrefslogtreecommitdiffstats
path: root/hdv/redfish/test/sample_test_cases.yml
blob: 8a732b284e47aa5f94c1c8c51f3a68ad09a30c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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