Skip to content

Commit

Permalink
* [e2e] fix side-effect bug when setting overcommit from default
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Oct 23, 2023
1 parent 0708ae6 commit 4f510e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion harvester_e2e_tests/integration/test_vm_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ def unset_cpu_memory_overcommit(api_client):
code, data = api_client.settings.get('overcommit-config')
assert 200 == code, (code, data)

origin_val = json.loads(data.get('value', "{}"))
origin_val = json.loads(data.get('value', data['default']))
spec = api_client.settings.Spec.from_dict(data)
spec.cpu = spec.memory = 100
spec.storage = origin_val['storage']
code, data = api_client.settings.update('overcommit-config', spec)
assert 200 == code, (code, data)

Expand Down

0 comments on commit 4f510e8

Please sign in to comment.