Skip to content

Commit

Permalink
tests: update test_shard_preferred_azs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed Dec 10, 2024
1 parent 6b12954 commit fe2965c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_runner/regress/test_storage_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3032,9 +3032,9 @@ def assign_az(ps_cfg):
assert shards[0]["preferred_az_id"] == expected_az

# When all other schedule scoring parameters are equal, tenants should round-robin on AZs
assert env.storage_controller.tenant_describe(tids[0])["shards"][0]["preferred_az_id"] == "az-1"
assert env.storage_controller.tenant_describe(tids[1])["shards"][0]["preferred_az_id"] == "az-0"
assert env.storage_controller.tenant_describe(tids[2])["shards"][0]["preferred_az_id"] == "az-1"
assert env.storage_controller.tenant_describe(tids[0])["shards"][0]["preferred_az_id"] == "az-0"
assert env.storage_controller.tenant_describe(tids[1])["shards"][0]["preferred_az_id"] == "az-1"
assert env.storage_controller.tenant_describe(tids[2])["shards"][0]["preferred_az_id"] == "az-0"

# Try modifying preferred AZ
updated = env.storage_controller.set_preferred_azs(
Expand Down

0 comments on commit fe2965c

Please sign in to comment.