2022-01-10 08:34:14 +00:00
|
|
|
{
|
|
|
|
"name": "invalid selections",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Russia"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Germany"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tests": {
|
|
|
|
"missing filter": {
|
|
|
|
"policy": {
|
2023-09-15 11:14:07 +00:00
|
|
|
"replicas": [
|
|
|
|
{
|
|
|
|
"count": 1,
|
|
|
|
"selector": "MyStore"
|
|
|
|
}
|
|
|
|
],
|
2022-01-10 08:34:14 +00:00
|
|
|
"containerBackupFactor": 1,
|
|
|
|
"selectors": [
|
|
|
|
{
|
|
|
|
"name": "MyStore",
|
|
|
|
"count": 1,
|
|
|
|
"clause": "DISTINCT",
|
|
|
|
"attribute": "Country",
|
|
|
|
"filter": "FromNL"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"name": "FromRU",
|
|
|
|
"key": "Country",
|
|
|
|
"op": "EQ",
|
|
|
|
"value": "Russia",
|
|
|
|
"filters": []
|
|
|
|
}
|
2023-04-14 13:31:08 +00:00
|
|
|
]
|
2022-01-10 08:34:14 +00:00
|
|
|
},
|
|
|
|
"error": "filter not found"
|
|
|
|
},
|
|
|
|
"not enough nodes (backup factor)": {
|
|
|
|
"policy": {
|
2023-09-15 11:14:07 +00:00
|
|
|
"replicas": [
|
|
|
|
{
|
|
|
|
"count": 1,
|
|
|
|
"selector": "MyStore"
|
|
|
|
}
|
|
|
|
],
|
2022-01-10 08:34:14 +00:00
|
|
|
"containerBackupFactor": 2,
|
|
|
|
"selectors": [
|
|
|
|
{
|
|
|
|
"name": "MyStore",
|
|
|
|
"count": 2,
|
|
|
|
"clause": "DISTINCT",
|
|
|
|
"attribute": "Country",
|
|
|
|
"filter": "FromRU"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"name": "FromRU",
|
|
|
|
"key": "Country",
|
|
|
|
"op": "EQ",
|
|
|
|
"value": "Russia",
|
|
|
|
"filters": []
|
|
|
|
}
|
2023-04-14 13:31:08 +00:00
|
|
|
]
|
2022-01-10 08:34:14 +00:00
|
|
|
},
|
|
|
|
"error": "not enough nodes"
|
|
|
|
},
|
|
|
|
"not enough nodes (buckets)": {
|
|
|
|
"policy": {
|
2023-09-15 11:14:07 +00:00
|
|
|
"replicas": [
|
|
|
|
{
|
|
|
|
"count": 1,
|
|
|
|
"selector": "MyStore"
|
|
|
|
}
|
|
|
|
],
|
2022-01-10 08:34:14 +00:00
|
|
|
"containerBackupFactor": 1,
|
|
|
|
"selectors": [
|
|
|
|
{
|
|
|
|
"name": "MyStore",
|
|
|
|
"count": 2,
|
|
|
|
"clause": "DISTINCT",
|
|
|
|
"attribute": "Country",
|
|
|
|
"filter": "FromRU"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"name": "FromRU",
|
|
|
|
"key": "Country",
|
|
|
|
"op": "EQ",
|
|
|
|
"value": "Russia",
|
|
|
|
"filters": []
|
|
|
|
}
|
2023-04-14 13:31:08 +00:00
|
|
|
]
|
2022-01-10 08:34:14 +00:00
|
|
|
},
|
|
|
|
"error": "not enough nodes"
|
|
|
|
}
|
|
|
|
}
|
2023-03-03 09:29:33 +00:00
|
|
|
}
|