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

     1  name: single-op filters
     2  nodes:
     3    - attributes:
     4        - key: Country
     5          value: Russia
     6        - key: Rating
     7          value: '1'
     8        - key: City
     9          value: SPB
    10    - attributes:
    11        - key: Country
    12          value: Germany
    13        - key: Rating
    14          value: '5'
    15        - key: City
    16          value: Berlin
    17    - attributes:
    18        - key: Country
    19          value: Russia
    20        - key: Rating
    21          value: '6'
    22        - key: City
    23          value: Moscow
    24    - attributes:
    25        - key: Country
    26          value: France
    27        - key: Rating
    28          value: '4'
    29        - key: City
    30          value: Paris
    31    - attributes:
    32        - key: Country
    33          value: France
    34        - key: Rating
    35          value: '1'
    36        - key: City
    37          value: Lyon
    38    - attributes:
    39        - key: Country
    40          value: Russia
    41        - key: Rating
    42          value: '5'
    43        - key: City
    44          value: SPB
    45    - attributes:
    46        - key: Country
    47          value: Russia
    48        - key: Rating
    49          value: '7'
    50        - key: City
    51          value: Moscow
    52    - attributes:
    53        - key: Country
    54          value: Germany
    55        - key: Rating
    56          value: '3'
    57        - key: City
    58          value: Darmstadt
    59    - attributes:
    60        - key: Country
    61          value: Germany
    62        - key: Rating
    63          value: '7'
    64        - key: City
    65          value: Frankfurt
    66    - attributes:
    67        - key: Country
    68          value: Russia
    69        - key: Rating
    70          value: '9'
    71        - key: City
    72          value: SPB
    73    - attributes:
    74        - key: Country
    75          value: Russia
    76        - key: Rating
    77          value: '9'
    78        - key: City
    79          value: SPB
    80  tests:
    81    Select:
    82      policy:
    83        replicas:
    84          - count: 1
    85            selector: SameRU
    86          - count: 1
    87            selector: DistinctRU
    88          - count: 1
    89            selector: Good
    90          - count: 1
    91            selector: Main
    92        containerBackupFactor: 2
    93        selectors:
    94          - name: SameRU
    95            count: 2
    96            clause: SAME
    97            attribute: City
    98            filter: FromRU
    99          - name: DistinctRU
   100            count: 2
   101            clause: DISTINCT
   102            attribute: City
   103            filter: FromRU
   104          - name: Good
   105            count: 2
   106            clause: DISTINCT
   107            attribute: Country
   108            filter: Good
   109          - name: Main
   110            count: 3
   111            clause: DISTINCT
   112            attribute: Country
   113            filter: '*'
   114        filters:
   115          - name: FromRU
   116            key: Country
   117            op: EQ
   118            value: Russia
   119          - name: Good
   120            key: Rating
   121            op: GE
   122            value: '4'
   123      result:
   124        - - 0
   125          - 5
   126          - 9
   127          - 10
   128        - - 2
   129          - 6
   130          - 0
   131          - 5
   132        - - 1
   133          - 8
   134          - 2
   135          - 5
   136        - - 3
   137          - 4
   138          - 1
   139          - 7
   140          - 0
   141          - 2