mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 22:13:18 +09:00
test(kubernetes): update reservation validation tests for expanded regex hints
Signed-off-by: Arsolitt <arsolitt@gmail.com>
This commit is contained in:
1 file changed
+3
-3
@@ -827,7 +827,7 @@ tests:
|
||||
systemReservedMemory: "abc"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: invalid systemReservedMemory value \"abc\" — must be a valid Kubernetes memory quantity (e.g. 128Mi, 1Gi)"
|
||||
errorMessage: "nodeGroup md0: invalid systemReservedMemory value \"abc\" — must be a valid Kubernetes memory quantity (e.g. 128Mi, 1Gi, 1e9, 500e6)"
|
||||
|
||||
################################################
|
||||
# Multi-nodeGroup isolation test #
|
||||
@@ -949,7 +949,7 @@ tests:
|
||||
evictionSoftMemory: "500Mi"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: invalid evictionHardMemory value \"banana\" — must be a percentage (e.g. 7%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi)"
|
||||
errorMessage: "nodeGroup md0: invalid evictionHardMemory value \"banana\" — must be a percentage (e.g. 7%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi, 1e9)"
|
||||
|
||||
- it: rejects invalid format for absolute evictionSoftMemory
|
||||
release:
|
||||
@@ -976,7 +976,7 @@ tests:
|
||||
evictionSoftMemory: "not-a-quantity"
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "nodeGroup md0: invalid evictionSoftMemory value \"not-a-quantity\" — must be a percentage (e.g. 10%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi)"
|
||||
errorMessage: "nodeGroup md0: invalid evictionSoftMemory value \"not-a-quantity\" — must be a percentage (e.g. 10%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi, 1e9)"
|
||||
|
||||
- it: accepts valid absolute eviction thresholds with correct format
|
||||
release:
|
||||
|
||||
Reference in new issue
Block a user