Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 1 | import time |
| 2 | |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 3 | import pytest |
| 4 | from redfish_requests import Duration, RedfishHttpStatus |
| 5 | |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 6 | |
| 7 | def test_get_telemetry_service(redfish): |
| 8 | r = redfish.get(redfish.telemetry_service_path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 9 | assert r["Status"]["State"] == "Enabled", "Invalid status of service" |
| 10 | assert ( |
| 11 | Duration.to_seconds(r["MinCollectionInterval"]) > 0 |
| 12 | ), "Invalid duration format" |
| 13 | assert r["MaxReports"] > 0, "Invalid count of max reports" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 14 | |
| 15 | |
| 16 | def test_get_metric_definition_collection(redfish): |
| 17 | r = redfish.get(redfish.metric_definition_path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 18 | assert "Members" in r, "Missing members property" |
| 19 | assert "Members@odata.count" in r, "Missing members count property" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 20 | |
| 21 | |
| 22 | def test_verify_metric_definition_members_if_contains_metrics(redfish): |
| 23 | r = redfish.get(redfish.metric_definition_path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 24 | for m in r["Members"]: |
| 25 | path = m["@odata.id"] |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 26 | metricDefinition = redfish.get(path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 27 | assert "MetricProperties" in metricDefinition, "Missing metrics" |
| 28 | assert len(metricDefinition["MetricProperties"]) > 0, "Missing metrics" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 29 | |
| 30 | |
| 31 | def test_get_metric_definition_that_not_exist_expect_not_found(redfish): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 32 | redfish.get( |
| 33 | f"{redfish.metric_definition_path}/NotExisting", |
| 34 | code=RedfishHttpStatus.not_found, |
| 35 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 36 | |
| 37 | |
| 38 | def test_get_metric_report_definition_collection(redfish): |
| 39 | r = redfish.get(redfish.metric_report_definition_path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 40 | assert "Members" in r, "Missing members property" |
| 41 | assert "Members@odata.count" in r, "Missing members count property" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 42 | |
| 43 | |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 44 | def test_get_metric_report_definition_that_not_exist_expect_not_found(redfish): |
| 45 | redfish.get( |
| 46 | f"{redfish.metric_report_definition_path}/NotExisting", |
| 47 | code=RedfishHttpStatus.not_found, |
| 48 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 49 | |
| 50 | |
| 51 | def test_get_metric_report_collection(redfish): |
| 52 | r = redfish.get(redfish.metric_report_path) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 53 | assert "Members" in r, "Missing members property" |
| 54 | assert "Members@odata.count" in r, "Missing members count property" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 55 | |
| 56 | |
| 57 | def test_get_metric_report_that_not_exist_expect_not_found(redfish): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 58 | redfish.get( |
| 59 | f"{redfish.metric_report_path}/NotExisting", |
| 60 | code=RedfishHttpStatus.not_found, |
| 61 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 62 | |
| 63 | |
| 64 | def test_post_report_definition_with_empty_body_expect_bad_request(redfish): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 65 | redfish.post( |
| 66 | redfish.metric_report_definition_path, |
| 67 | body={}, |
| 68 | code=RedfishHttpStatus.bad_request, |
| 69 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 70 | |
| 71 | |
| 72 | def test_post_report_definition_with_some_body_expect_bad_request(redfish): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 73 | redfish.post( |
| 74 | redfish.metric_report_definition_path, |
| 75 | body={"key": "value"}, |
| 76 | code=RedfishHttpStatus.bad_request, |
| 77 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 78 | |
| 79 | |
| 80 | def test_delete_non_exisiting_metric_report_definition(redfish): |
| 81 | redfish.delete( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 82 | f"{redfish.metric_report_definition_path}/NonExisitingReport", |
| 83 | code=RedfishHttpStatus.not_found, |
| 84 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 85 | |
| 86 | |
| 87 | def test_add_report(redfish, report_definitions): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 88 | id = "Test" |
| 89 | report_definitions.add_report(id) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 90 | assert 1 == len(report_definitions.get_collection()) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 91 | r = redfish.get(f"{redfish.metric_report_definition_path}/{id}") |
| 92 | assert r["Id"] == id, "Invalid Id, different then requested" |
| 93 | r = redfish.get(f"{redfish.metric_report_path}/{id}") |
| 94 | assert r["Id"] == id, "Invalid Id, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 95 | |
| 96 | |
| 97 | def test_add_report_above_max_report_expect_bad_request( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 98 | telemetry, report_definitions |
| 99 | ): |
| 100 | id = "Test" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 101 | for i in range(telemetry.max_reports): |
| 102 | report_definitions.add_report(id + str(i)) |
| 103 | assert telemetry.max_reports == len(report_definitions.get_collection()) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 104 | report_definitions.add_report( |
| 105 | id + str(telemetry.max_reports), |
| 106 | metrics=[], |
| 107 | interval=telemetry.min_interval, |
| 108 | code=RedfishHttpStatus.bad_request, |
| 109 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 110 | |
| 111 | |
| 112 | def test_add_report_long_name(report_definitions): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 113 | report_definitions.add_report("Test" * 65) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 114 | |
| 115 | |
| 116 | def test_add_report_twice_expect_bad_request(report_definitions): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 117 | report_definitions.add_report("Test") |
| 118 | report_definitions.add_report("Test", code=RedfishHttpStatus.bad_request) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 119 | |
| 120 | |
| 121 | @pytest.mark.parametrize( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 122 | "actions", |
| 123 | [ |
| 124 | [], |
| 125 | ["RedfishEvent"], |
| 126 | ["LogToMetricReportsCollection"], |
| 127 | ["RedfishEvent", "LogToMetricReportsCollection"], |
| 128 | ], |
| 129 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 130 | def test_add_report_with_actions(actions, redfish, report_definitions): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 131 | report_definitions.add_report("Test", actions=actions) |
| 132 | r = redfish.get(f"{redfish.metric_report_definition_path}/Test") |
| 133 | assert ( |
| 134 | r["ReportActions"] == actions |
| 135 | ), "Invalid actions, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 136 | |
| 137 | |
| 138 | @pytest.mark.parametrize( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 139 | "invalid_actions", |
| 140 | [ |
| 141 | ["NonExisting"], |
| 142 | ["RedfishEvent", "Partially"], |
| 143 | ["LogToMetricNotThisOne"], |
| 144 | ], |
| 145 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 146 | def test_add_report_with_invalid_actions_expect_bad_request( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 147 | invalid_actions, report_definitions |
| 148 | ): |
| 149 | report_definitions.add_report( |
| 150 | "Test", actions=invalid_actions, code=RedfishHttpStatus.bad_request |
| 151 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 152 | |
| 153 | |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 154 | @pytest.mark.parametrize("invalid_id", ["test_-", "t t", "T.T", "T,t", "T:t"]) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 155 | def test_add_report_with_invalid_id_expect_bad_request( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 156 | invalid_id, report_definitions |
| 157 | ): |
| 158 | report_definitions.add_report( |
| 159 | invalid_id, code=RedfishHttpStatus.bad_request |
| 160 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 161 | |
| 162 | |
| 163 | def test_add_report_with_metric(redfish, telemetry, report_definitions): |
| 164 | if len(telemetry.metrics) <= 0: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 165 | pytest.skip("Redfish has no sensor available") |
| 166 | metric = {"MetricId": "Id1", "MetricProperties": [telemetry.metrics[0]]} |
| 167 | report_definitions.add_report("Test", metrics=[metric]) |
| 168 | r = redfish.get(redfish.metric_report_definition_path + "/Test") |
| 169 | assert len(r["Metrics"]) == 1, "Invalid Metrics, different then requested" |
| 170 | assert ( |
| 171 | r["Metrics"][0]["MetricId"] == metric["MetricId"] |
| 172 | ), "Invalid MetricId, different then requested" |
| 173 | assert ( |
| 174 | r["Metrics"][0]["MetricProperties"] == metric["MetricProperties"] |
| 175 | ), "Invalid MetricProperties, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 176 | |
| 177 | |
| 178 | def test_add_report_with_invalid_metric_expect_bad_request(report_definitions): |
| 179 | metric = { |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 180 | "MetricId": "Id1", |
| 181 | "MetricProperties": [ |
| 182 | "/redfish/v1/Chassis/chassis/Sensors/NonExisting/Reading" |
| 183 | ], |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 184 | } |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 185 | report_definitions.add_report( |
| 186 | "Test", metrics=[metric], code=RedfishHttpStatus.bad_request |
| 187 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 188 | |
| 189 | |
| 190 | def test_add_report_with_many_metrics(redfish, telemetry, report_definitions): |
| 191 | if len(telemetry.metrics) <= 0: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 192 | pytest.skip("Redfish has no sensor available") |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 193 | metrics = [] |
| 194 | for i, prop in enumerate(telemetry.metrics): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 195 | metrics.append({"MetricId": f"Id{str(i)}", "MetricProperties": [prop]}) |
| 196 | report_definitions.add_report("Test", metrics=metrics) |
| 197 | r = redfish.get(redfish.metric_report_definition_path + "/Test") |
| 198 | assert len(r["Metrics"]) == len( |
| 199 | telemetry.metrics |
| 200 | ), "Invalid Metrics, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 201 | |
| 202 | |
| 203 | def test_add_report_on_request_with_metric_expect_updated_metric_report( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 204 | redfish, telemetry, report_definitions |
| 205 | ): |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 206 | if len(telemetry.metrics) <= 0: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 207 | pytest.skip("Redfish has no sensor available") |
| 208 | metric = {"MetricId": "Id1", "MetricProperties": [telemetry.metrics[0]]} |
| 209 | report_definitions.add_report("Test", metrics=[metric], type="OnRequest") |
| 210 | r = redfish.get(redfish.metric_report_path + "/Test") |
| 211 | assert len(r["MetricValues"]) > 0, "Missing MetricValues" |
| 212 | metric_value = r["MetricValues"][0] |
| 213 | assert metric_value["MetricValue"], "Missing MetricValues" |
| 214 | assert ( |
| 215 | metric_value["MetricId"] == metric["MetricId"] |
| 216 | ), "Different Id then set in request" |
| 217 | assert ( |
| 218 | metric_value["MetricProperty"] == metric["MetricProperties"][0] |
| 219 | ), "Different MetricProperty then set in request" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 220 | |
| 221 | |
| 222 | def test_add_report_periodic_with_metric_expect_updated_metric_report( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 223 | redfish, telemetry, report_definitions |
| 224 | ): |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 225 | if len(telemetry.metrics) <= 0: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 226 | pytest.skip("Redfish has no sensor available") |
| 227 | metric = {"MetricId": "Id1", "MetricProperties": [telemetry.metrics[0]]} |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 228 | report_definitions.add_report( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 229 | "Test", |
| 230 | metrics=[metric], |
| 231 | type="Periodic", |
| 232 | interval=Duration.to_iso8061(telemetry.min_interval), |
| 233 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 234 | time.sleep(telemetry.min_interval + 1) |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 235 | r = redfish.get(redfish.metric_report_path + "/Test") |
| 236 | assert len(r["MetricValues"]) > 0, "Missing MetricValues" |
| 237 | metric_value = r["MetricValues"][0] |
| 238 | assert metric_value["MetricValue"], "Missing MetricValues" |
| 239 | assert ( |
| 240 | metric_value["MetricId"] == metric["MetricId"] |
| 241 | ), "Different Id then set in request" |
| 242 | assert ( |
| 243 | metric_value["MetricProperty"] == metric["MetricProperties"][0] |
| 244 | ), "Different MetricProperty then set in request" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 245 | |
| 246 | |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 247 | @pytest.mark.parametrize("interval", [10, 60, 2400, 90000]) |
| 248 | def test_add_report_check_if_duration_is_set( |
| 249 | interval, redfish, telemetry, report_definitions |
| 250 | ): |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 251 | if interval < telemetry.min_interval: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 252 | pytest.skip("Interval is below minimal acceptable value, skipping") |
| 253 | id = f"Test{str(interval)}" |
| 254 | report_definitions.add_report( |
| 255 | id, type="Periodic", interval=Duration.to_iso8061(interval) |
| 256 | ) |
| 257 | r = redfish.get(f"{redfish.metric_report_definition_path}/{id}") |
| 258 | assert r["Schedule"]["RecurrenceInterval"], "Missing RecurrenceInterval" |
| 259 | r_interval = Duration.to_seconds(r["Schedule"]["RecurrenceInterval"]) |
| 260 | assert interval == r_interval, "Invalid interval, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 261 | |
| 262 | |
| 263 | @pytest.mark.parametrize( |
Patrick Williams | 2d5404f | 2022-12-08 06:18:23 -0600 | [diff] [blame] | 264 | "invalid", ["50000", "P12ST", "PT12S12", "PPPPD222T222H222M222.222S"] |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 265 | ) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 266 | def test_add_report_with_invalid_duration_response_bad_request( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 267 | invalid, report_definitions |
| 268 | ): |
| 269 | r = report_definitions.add_report( |
| 270 | "Test", |
| 271 | type="Periodic", |
| 272 | interval=invalid, |
| 273 | code=RedfishHttpStatus.bad_request, |
| 274 | ) |
| 275 | assert r["error"]["@Message.ExtendedInfo"][ |
| 276 | 0 |
| 277 | ], "Wrong response, not an error" |
| 278 | info = r["error"]["@Message.ExtendedInfo"][0] |
| 279 | assert ( |
| 280 | "RecurrenceInterval" in info["MessageArgs"] |
| 281 | ), 'Wrong response, should contain "RecurrenceInterval"' |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 282 | |
| 283 | |
| 284 | def test_stress_add_reports_with_many_metrics_check_metric_reports( |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 285 | redfish, telemetry, report_definitions |
| 286 | ): |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 287 | if len(telemetry.metrics) <= 0: |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 288 | pytest.skip("Redfish has no sensor available") |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 289 | metrics = [] |
| 290 | for i, prop in enumerate(telemetry.metrics): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 291 | metrics.append({"MetricId": f"Id{str(i)}", "MetricProperties": [prop]}) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 292 | for i in range(telemetry.max_reports): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 293 | report_definitions.add_report(f"Test{str(i)}", metrics=metrics) |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 294 | for i in range(telemetry.max_reports): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 295 | r = redfish.get( |
| 296 | f"{redfish.metric_report_definition_path}/Test{str(i)}" |
| 297 | ) |
| 298 | assert len(r["Metrics"]) == len( |
| 299 | telemetry.metrics |
| 300 | ), "Invalid Metrics, different then requested" |
Wludzik, Jozef | 405c1e4 | 2021-01-28 16:24:27 +0100 | [diff] [blame] | 301 | for i in range(telemetry.max_reports): |
Patrick Williams | 89cf7d7 | 2022-12-05 07:59:22 -0600 | [diff] [blame] | 302 | r = redfish.get(f"{redfish.metric_report_path}/Test{str(i)}") |
| 303 | assert len(r["MetricValues"]) > 0, "Missing MetricValues" |