git.frostfs.info/TrueCloudLab/frostfs-sdk-go@v0.0.0-20241022124111-5361f0ecebd3/netmap/yml_tests/non_strict.yml (about)

     1  name: non-strict selections
     2  comment: These test specify loose selection behaviour, to allow fetching already PUT
     3    objects even when there is not enough nodes to select from.
     4  nodes:
     5    - attributes:
     6        - key: Country
     7          value: Russia
     8    - attributes:
     9        - key: Country
    10          value: Germany
    11    - attributes: []
    12  tests:
    13    not enough nodes (backup factor):
    14      policy:
    15        replicas:
    16          - count: 1
    17            selector: MyStore
    18        containerBackupFactor: 2
    19        selectors:
    20          - name: MyStore
    21            count: 2
    22            clause: DISTINCT
    23            attribute: Country
    24            filter: FromRU
    25        filters:
    26          - name: FromRU
    27            key: Country
    28            op: EQ
    29            value: Russia
    30            filters: []
    31      result:
    32        - - 0
    33    not enough nodes (buckets):
    34      policy:
    35        replicas:
    36          - count: 1
    37            selector: MyStore
    38        containerBackupFactor: 1
    39        selectors:
    40          - name: MyStore
    41            count: 2
    42            clause: DISTINCT
    43            attribute: Country
    44            filter: FromRU
    45        filters:
    46          - name: FromRU
    47            key: Country
    48            op: EQ
    49            value: Russia
    50            filters: []
    51      result:
    52        - - 0