]> git.proxmox.com Git - pve-ha-manager.git/commit
sim env: derive service usage from ID as fallback
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 10:03:05 +0000 (11:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 10:09:01 +0000 (11:09 +0100)
commitd9a55b5d3c0efd9944fd886c6f08c0696f52ce3c
treeb9e697994d7b8fd0249191f10bbc2a7ef4a1dacc
parentde225e04c47b0a06c64fe6c9d12af48bf5823e58
sim env: derive service usage from ID as fallback

so that we don't need to specify all usage stats explicitly for
bigger tests.

Note, we explicitly use two digits for memory as with just one a lot
of services are exactly the same, which gives us flaky tests due to
rounding, or some flakiness in the rust code - so this is a bit of a
stop gap for that too and should be reduced to a single digit once
we fixed it in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Sim/Resources.pm