forked from TrueCloudLab/frostfs-sdk-go
96 lines
1.8 KiB
JSON
96 lines
1.8 KiB
JSON
|
{
|
||
|
"name": "non-strict selections",
|
||
|
"comment": "These test specify loose selection behaviour, to allow fetching already PUT objects even when there is not enough nodes to select from.",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"attributes": [
|
||
|
{
|
||
|
"key": "Country",
|
||
|
"value": "Russia"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attributes": [
|
||
|
{
|
||
|
"key": "Country",
|
||
|
"value": "Germany"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attributes": [ ]
|
||
|
}
|
||
|
],
|
||
|
"tests": {
|
||
|
"not enough nodes (backup factor)": {
|
||
|
"policy": {
|
||
|
"replicas": [
|
||
|
{
|
||
|
"count": 1,
|
||
|
"selector": "MyStore"
|
||
|
}
|
||
|
],
|
||
|
"containerBackupFactor": 2,
|
||
|
"selectors": [
|
||
|
{
|
||
|
"name": "MyStore",
|
||
|
"count": 2,
|
||
|
"clause": "DISTINCT",
|
||
|
"attribute": "Country",
|
||
|
"filter": "FromRU"
|
||
|
}
|
||
|
],
|
||
|
"filters": [
|
||
|
{
|
||
|
"name": "FromRU",
|
||
|
"key": "Country",
|
||
|
"op": "EQ",
|
||
|
"value": "Russia",
|
||
|
"filters": [ ]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"result": [
|
||
|
[
|
||
|
0
|
||
|
]
|
||
|
]
|
||
|
},
|
||
|
"not enough nodes (buckets)": {
|
||
|
"policy": {
|
||
|
"replicas": [
|
||
|
{
|
||
|
"count": 1,
|
||
|
"selector": "MyStore"
|
||
|
}
|
||
|
],
|
||
|
"containerBackupFactor": 1,
|
||
|
"selectors": [
|
||
|
{
|
||
|
"name": "MyStore",
|
||
|
"count": 2,
|
||
|
"clause": "DISTINCT",
|
||
|
"attribute": "Country",
|
||
|
"filter": "FromRU"
|
||
|
}
|
||
|
],
|
||
|
"filters": [
|
||
|
{
|
||
|
"name": "FromRU",
|
||
|
"key": "Country",
|
||
|
"op": "EQ",
|
||
|
"value": "Russia",
|
||
|
"filters": [ ]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"result": [
|
||
|
[
|
||
|
0
|
||
|
]
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|