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 @@ -799,9 +799,73 @@ impl v1alpha1::DruidCluster {
799799#[ cfg( test) ]
800800impl stackable_operator:: versioned:: test_utils:: RoundtripTestData for v1alpha1:: DruidClusterSpec {
801801 fn roundtrip_test_data ( ) -> Vec < Self > {
802- todo ! (
803- "Return some test data according to https://stackabletech.github.io/operator-rs/stackable_versioned/test_utils/trait.RoundtripTestData.html"
804- )
802+ stackable_operator:: utils:: yaml_from_str_singleton_map ( indoc:: indoc! { "
803+ - image:
804+ productVersion: 30.0.0
805+ pullPolicy: IfNotPresent
806+ clusterOperation:
807+ stopped: false
808+ reconciliationPaused: false
809+ clusterConfig:
810+ metadataDatabase:
811+ postgresql:
812+ host: druid-postgresql
813+ database: druid
814+ credentialsSecretName: mySecret
815+ deepStorage:
816+ hdfs:
817+ configMapName: simple-hdfs
818+ directory: /druid
819+ ingestion:
820+ s3connection:
821+ inline:
822+ host: s3-de-central.profitbricks.com
823+ credentials:
824+ secretClass: s3-credentials-class
825+ zookeeperConfigMapName: simple-druid-znode
826+ authorization:
827+ opa:
828+ configMapName: test-opa
829+ package: druid
830+ vectorAggregatorConfigMapName: vector-aggregator-discovery
831+ brokers:
832+ config:
833+ gracefulShutdownTimeout: 1s
834+ logging:
835+ enableVectorAgent: true
836+ containers:
837+ druid:
838+ console:
839+ level: INFO
840+ file:
841+ level: INFO
842+ loggers:
843+ ROOT:
844+ level: INFO
845+ configOverrides:
846+ runtime.properties: &runtime-properties
847+ druid.foo: bar
848+ roleGroups:
849+ default:
850+ replicas: 1
851+ coordinators:
852+ roleGroups:
853+ default:
854+ replicas: 1
855+ historicals:
856+ roleGroups:
857+ default:
858+ replicas: 1
859+ middleManagers:
860+ roleGroups:
861+ default:
862+ replicas: 1
863+ routers:
864+ roleGroups:
865+ default:
866+ replicas: 1
867+ " } )
868+ . expect ( "Failed to parse DruidClusterSpec YAML" )
805869 }
806870}
807871
You can’t perform that action at this time.
0 commit comments