Skip to content

Commit

Permalink
Fixed check of input properties in partition link end2end test
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Jan 22, 2025
1 parent e2496a6 commit 354781a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/end2end/test_partition_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ def test_partlink_crud(dpm_mode_cpcs, pl_type): # noqa: F811
# The code to be tested
partlink = console.partition_links.create(partlink_input_props)

# Remove input properties that are not in data model or that are
# different iindata model, so that we can check.
if 'partitions' in partlink_input_props:
del partlink_input_props['partitions'] # not in data model
if 'paths' in partlink_input_props:
del partlink_input_props['paths'] # different in data model

for pn, exp_value in partlink_input_props.items():
assert partlink.properties[pn] == exp_value, (
f"Unexpected value for property {pn!r} of partition link:\n"
Expand Down

0 comments on commit 354781a

Please sign in to comment.