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

     1  name: Real node count multiplier is in range [1, specified CBF]
     2  nodes:
     3    - attributes:
     4        - key: ID
     5          value: '1'
     6        - key: Country
     7          value: DE
     8    - attributes:
     9        - key: ID
    10          value: '2'
    11        - key: Country
    12          value: DE
    13    - attributes:
    14        - key: ID
    15          value: '3'
    16        - key: Country
    17          value: DE
    18  tests:
    19    select 2, CBF is 2:
    20      policy:
    21        replicas:
    22          - count: 1
    23            selector: X
    24        containerBackupFactor: 2
    25        selectors:
    26          - name: X
    27            count: 2
    28            clause: SAME
    29            attribute: Country
    30            filter: '*'
    31        filters: []
    32      result:
    33        - - 0
    34          - 1
    35          - 2
    36    select 3, CBF is 2:
    37      policy:
    38        replicas:
    39          - count: 1
    40            selector: X
    41        containerBackupFactor: 2
    42        selectors:
    43          - name: X
    44            count: 3
    45            clause: SAME
    46            attribute: Country
    47            filter: '*'
    48        filters: []
    49      result:
    50        - - 0
    51          - 1
    52          - 2