mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
test(kubernetes): update test expectations for changed error messages
Update helm unit test expectations to match the corrected CPU regex hint text and eviction percentage error message wording. Signed-off-by: Arsolitt <arsolitt@gmail.com>
This commit is contained in:
1 file changed
+4
-4
@@ -805,7 +805,7 @@ tests:
|
||||
kubeReservedCpu: "banana"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: invalid kubeReservedCpu value \"banana\" — must be a valid Kubernetes CPU quantity (e.g. 100m, 0.5, 1)"
|
||||
errorMessage: "nodeGroup md0: invalid kubeReservedCpu value \"banana\" — must be a valid Kubernetes CPU quantity (integer millicores like 100m, or decimal cores like 0.5, 1)"
|
||||
|
||||
- it: rejects invalid memory format for systemReservedMemory
|
||||
release:
|
||||
@@ -1074,7 +1074,7 @@ tests:
|
||||
evictionSoftMemory: "200%"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: evictionHardMemory percentage must be between 1 and 100, got 150%"
|
||||
errorMessage: "nodeGroup md0: evictionHardMemory percentage must be greater than 0 and at most 100, got 150%"
|
||||
|
||||
- it: rejects evictionSoftMemory percentage over 100
|
||||
release:
|
||||
@@ -1101,7 +1101,7 @@ tests:
|
||||
evictionSoftMemory: "150%"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: evictionSoftMemory percentage must be between 1 and 100, got 150%"
|
||||
errorMessage: "nodeGroup md0: evictionSoftMemory percentage must be greater than 0 and at most 100, got 150%"
|
||||
|
||||
- it: rejects evictionHardMemory percentage of zero
|
||||
release:
|
||||
@@ -1128,7 +1128,7 @@ tests:
|
||||
evictionSoftMemory: "10%"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: evictionHardMemory percentage must be between 1 and 100, got 0%"
|
||||
errorMessage: "nodeGroup md0: evictionHardMemory percentage must be greater than 0 and at most 100, got 0%"
|
||||
|
||||
- it: rejects negative evictionHardMemory percentage
|
||||
release:
|
||||
|
||||
Reference in new issue
Block a user