From 0550438b5301dcd347b3aa97ade06750d1498fca Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 15 Sep 2023 14:14:07 +0300 Subject: [PATCH] [#167] netmap/tests: Add replica to invalid tests Make sure we fail exactly because of the reason specified. Signed-off-by: Evgenii Stratonikov --- netmap/json_tests/selector_invalid.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/netmap/json_tests/selector_invalid.json b/netmap/json_tests/selector_invalid.json index 9a37ba2..32d0a09 100644 --- a/netmap/json_tests/selector_invalid.json +++ b/netmap/json_tests/selector_invalid.json @@ -24,7 +24,12 @@ "tests": { "missing filter": { "policy": { - "replicas": [], + "replicas": [ + { + "count": 1, + "selector": "MyStore" + } + ], "containerBackupFactor": 1, "selectors": [ { @@ -49,7 +54,12 @@ }, "not enough nodes (backup factor)": { "policy": { - "replicas": [], + "replicas": [ + { + "count": 1, + "selector": "MyStore" + } + ], "containerBackupFactor": 2, "selectors": [ { @@ -74,7 +84,12 @@ }, "not enough nodes (buckets)": { "policy": { - "replicas": [], + "replicas": [ + { + "count": 1, + "selector": "MyStore" + } + ], "containerBackupFactor": 1, "selectors": [ {