82 lines
1.4 KiB
YAML
82 lines
1.4 KiB
YAML
name: CBF requirements
|
|
nodes:
|
|
- attributes:
|
|
- key: ID
|
|
value: '1'
|
|
- key: Attr
|
|
value: Same
|
|
- attributes:
|
|
- key: ID
|
|
value: '2'
|
|
- key: Attr
|
|
value: Same
|
|
- attributes:
|
|
- key: ID
|
|
value: '3'
|
|
- key: Attr
|
|
value: Same
|
|
- attributes:
|
|
- key: ID
|
|
value: '4'
|
|
- key: Attr
|
|
value: Same
|
|
tests:
|
|
default CBF, no selector:
|
|
policy:
|
|
replicas:
|
|
- count: 2
|
|
containerBackupFactor: 0
|
|
selectors: []
|
|
filters: []
|
|
result:
|
|
- - 0
|
|
- 2
|
|
- 1
|
|
- 3
|
|
explicit CBF, no selector:
|
|
policy:
|
|
replicas:
|
|
- count: 2
|
|
containerBackupFactor: 3
|
|
selectors: []
|
|
filters: []
|
|
result:
|
|
- - 0
|
|
- 2
|
|
- 1
|
|
- 3
|
|
select distinct, weak CBF:
|
|
policy:
|
|
replicas:
|
|
- count: 2
|
|
selector: X
|
|
containerBackupFactor: 3
|
|
selectors:
|
|
- name: X
|
|
count: 2
|
|
clause: DISTINCT
|
|
filter: '*'
|
|
filters: []
|
|
result:
|
|
- - 0
|
|
- 2
|
|
- 1
|
|
- 3
|
|
select same, weak CBF:
|
|
policy:
|
|
replicas:
|
|
- count: 2
|
|
selector: X
|
|
containerBackupFactor: 3
|
|
selectors:
|
|
- name: X
|
|
count: 2
|
|
clause: SAME
|
|
attribute: Attr
|
|
filter: '*'
|
|
filters: []
|
|
result:
|
|
- - 0
|
|
- 1
|
|
- 2
|
|
- 3
|