Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-api: fix core pool parse #1519

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/functional/api/cas/casadm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def get_cas_devices_dict() -> dict:
for device in device_list:
if device["type"] == "cache":
cache_id = int(device["id"])
core_pool = False
params = [
("id", cache_id),
("device_path", device["disk"]),
Expand All @@ -91,14 +92,17 @@ def get_cas_devices_dict() -> dict:
]
if core_pool:
params.append(("core_pool", device))
devices["core_pool"][(cache_id, int(device["id"]))] = dict(
devices["core_pool"][device["disk"]] = dict(
[(key, value) for key, value in params]
)
else:
devices["cores"][(cache_id, int(device["id"]))] = dict(
[(key, value) for key, value in params]
)

elif device["type"] == "core pool":
core_pool = True

return devices


Expand Down