diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-23 13:08:51 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-25 14:35:41 +0200 |
commit | 8754c21694b5dff69105a0d9b739dd87088626ee (patch) | |
tree | 57ecca7dc8fcc01d67aa6755924124ed8bce76a5 /tests/units/test_0007_software.py | |
parent | 3b40ec7918531cf60d9d4b7749d97ea3f0bf1b1f (diff) |
src: report used and free partition data in bytes
Add "used_size" and "free_size" to the partition data and the
cache data.
Old response from ogClient for /cache/delete, /cache/fetch
and /image/restore:
{
'cache': [
{'name': 'windows.img', 'size': 2432370213, checksum: '5d4dcc677bc19f40a647d0002f4ade90'},
{'name': 'linux.img', 'size': 243234534213, checksum: '3eb22f888f88a55ad954f55644e1192e'}
]
}
New response:
{
'cache': {
'used_size': 4520232322423,
'free_size': 48273465287452945,
'images': [
{'name': 'windows.img', 'size': 2432370213, checksum: '5d4dcc677bc19f40a647d0002f4ade90'},
{'name': 'linux.img', 'size': 243234534213, checksum: '3eb22f888f88a55ad954f55644e1192e'}
]
}
}
Diffstat (limited to 'tests/units/test_0007_software.py')
0 files changed, 0 insertions, 0 deletions