test: fix container resource-limit value

The constaint was supposed to be 50% of one CPU core, or 500 millicores
as per Kubernetes nomenclature.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-01-02 20:09:32 +01:00
parent 3934838663
commit 25a7050c23
+2 -2
View File
@@ -49,7 +49,7 @@ with infamy.Test() as test:
},
"resource-limit": {
"memory": 512, # 512 KiB
"cpu": 50000 # 50% of one CPU
"cpu": 500 # 50% of one CPU (0.5 cores)
}
}
]
@@ -70,7 +70,7 @@ with infamy.Test() as test:
limits = web.get("resource-limit", {})
assert limits.get("memory") == 512, "Memory limit not set correctly"
assert limits.get("cpu") == 50000, "CPU limit not set correctly"
assert limits.get("cpu") == 500, "CPU limit not set correctly"
rusage = web.get("resource-usage", {})
assert rusage is not None, "Resource usage data not available"