File tree Expand file tree Collapse file tree
rust/operator-binary/src/crd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -934,13 +934,60 @@ mod tests {
934934
935935 impl RoundtripTestData for v1alpha1:: ZookeeperClusterSpec {
936936 fn roundtrip_test_data ( ) -> Vec < Self > {
937- vec ! [ ]
937+ stackable_operator:: utils:: yaml_from_str_singleton_map ( indoc:: indoc! { r#"
938+ - image:
939+ productVersion: 1.2.3
940+ pullPolicy: IfNotPresent
941+ clusterOperation:
942+ reconciliationPaused: false
943+ stopped: true
944+ clusterConfig:
945+ authentication:
946+ - authenticationClass: my-auth-class
947+ tls:
948+ quorumSecretClass: null
949+ serverSecretClass: tls
950+ vectorAggregatorConfigMapName: vector-aggregator-discovery
951+ servers:
952+ envOverrides:
953+ COMMON_VAR: role-value
954+ ROLE_VAR: role-value
955+ config:
956+ logging:
957+ enableVectorAgent: true
958+ requestedSecretLifetime: 7d
959+ gracefulShutdownTimeout: 30s
960+ initLimit: 5
961+ syncLimit: 2
962+ tickTime: 2000
963+ myidOffset: 1
964+ configOverrides:
965+ zoo.cfg:
966+ maxClientCnxns: "60"
967+ roleConfig:
968+ listenerClass: cluster-internal
969+ roleGroups:
970+ default:
971+ replicas: 1
972+ configOverrides:
973+ zoo.cfg:
974+ maxClientCnxns: "120"
975+ envOverrides:
976+ COMMON_VAR: group-value
977+ GROUP_VAR: group-value
978+ "# } )
979+ . expect ( "Failed to parse ZookeeperClusterSpec YAML" )
938980 }
939981 }
940982
941983 impl RoundtripTestData for v1alpha1:: ZookeeperZnodeSpec {
942984 fn roundtrip_test_data ( ) -> Vec < Self > {
943- vec ! [ ]
985+ stackable_operator:: utils:: yaml_from_str_singleton_map ( indoc:: indoc! { "
986+ - clusterRef:
987+ name: test-zk
988+ namespace: default
989+ " } )
990+ . expect ( "Failed to parse ZookeeperZnodeSpec YAML" )
944991 }
945992 }
946993}
You can’t perform that action at this time.
0 commit comments