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

     1  name: invalid selections
     2  nodes:
     3    - attributes:
     4        - key: Country
     5          value: Russia
     6    - attributes:
     7        - key: Country
     8          value: Germany
     9    - attributes: []
    10  tests:
    11    missing filter:
    12      policy:
    13        replicas:
    14          - count: 1
    15            selector: MyStore
    16        containerBackupFactor: 1
    17        selectors:
    18          - name: MyStore
    19            count: 1
    20            clause: DISTINCT
    21            attribute: Country
    22            filter: FromNL
    23        filters:
    24          - name: FromRU
    25            key: Country
    26            op: EQ
    27            value: Russia
    28            filters: []
    29      error: filter not found
    30    not enough nodes (filter results in empty set):
    31      policy:
    32        replicas:
    33          - count: 1
    34            selector: MyStore
    35        containerBackupFactor: 2
    36        selectors:
    37          - name: MyStore
    38            count: 2
    39            clause: DISTINCT
    40            attribute: Country
    41            filter: FromMoon
    42        filters:
    43          - name: FromMoon
    44            key: Country
    45            op: EQ
    46            value: Moon
    47            filters: []
    48      error: not enough nodes