forked from TrueCloudLab/frostfs-sdk-go
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
|
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
|