[#167] netmap/tests: Add replica to invalid tests

Make sure we fail exactly because of the reason specified.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-09-15 14:14:07 +03:00
parent c899163860
commit 0550438b53

View file

@ -24,7 +24,12 @@
"tests": { "tests": {
"missing filter": { "missing filter": {
"policy": { "policy": {
"replicas": [], "replicas": [
{
"count": 1,
"selector": "MyStore"
}
],
"containerBackupFactor": 1, "containerBackupFactor": 1,
"selectors": [ "selectors": [
{ {
@ -49,7 +54,12 @@
}, },
"not enough nodes (backup factor)": { "not enough nodes (backup factor)": {
"policy": { "policy": {
"replicas": [], "replicas": [
{
"count": 1,
"selector": "MyStore"
}
],
"containerBackupFactor": 2, "containerBackupFactor": 2,
"selectors": [ "selectors": [
{ {
@ -74,7 +84,12 @@
}, },
"not enough nodes (buckets)": { "not enough nodes (buckets)": {
"policy": { "policy": {
"replicas": [], "replicas": [
{
"count": 1,
"selector": "MyStore"
}
],
"containerBackupFactor": 1, "containerBackupFactor": 1,
"selectors": [ "selectors": [
{ {