forked from TrueCloudLab/frostfs-sdk-go
[#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:
parent
c899163860
commit
0550438b53
1 changed files with 18 additions and 3 deletions
|
@ -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": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue