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 @@ -1735,7 +1735,79 @@ mod tests {
17351735
17361736 impl RoundtripTestData for v1alpha1:: DruidClusterSpec {
17371737 fn roundtrip_test_data ( ) -> Vec < Self > {
1738- vec ! [ ]
1738+ stackable_operator:: utils:: yaml_from_str_singleton_map ( indoc:: indoc! { "
1739+ - image:
1740+ productVersion: 30.0.0
1741+ pullPolicy: IfNotPresent
1742+ clusterOperation:
1743+ stopped: false
1744+ reconciliationPaused: false
1745+ clusterConfig:
1746+ metadataStorageDatabase:
1747+ dbType: postgresql
1748+ connString: jdbc:postgresql://druid-postgresql/druid
1749+ host: druid-postgresql
1750+ port: 5432
1751+ credentialsSecret: druid-credentials
1752+ # metadataDatabase:
1753+ # postgresql:
1754+ # host: druid-postgresql
1755+ # database: druid
1756+ # credentialsSecretName: mySecret
1757+ deepStorage:
1758+ hdfs:
1759+ configMapName: simple-hdfs
1760+ directory: /druid
1761+ ingestion:
1762+ s3connection:
1763+ inline:
1764+ host: s3-de-central.profitbricks.com
1765+ credentials:
1766+ secretClass: s3-credentials-class
1767+ zookeeperConfigMapName: simple-druid-znode
1768+ authorization:
1769+ opa:
1770+ configMapName: test-opa
1771+ package: druid
1772+ vectorAggregatorConfigMapName: vector-aggregator-discovery
1773+ brokers:
1774+ config:
1775+ gracefulShutdownTimeout: 1s
1776+ logging:
1777+ enableVectorAgent: true
1778+ containers:
1779+ druid:
1780+ console:
1781+ level: INFO
1782+ file:
1783+ level: INFO
1784+ loggers:
1785+ ROOT:
1786+ level: INFO
1787+ configOverrides:
1788+ runtime.properties: &runtime-properties
1789+ druid.foo: bar
1790+ roleGroups:
1791+ default:
1792+ replicas: 1
1793+ coordinators:
1794+ roleGroups:
1795+ default:
1796+ replicas: 1
1797+ historicals:
1798+ roleGroups:
1799+ default:
1800+ replicas: 1
1801+ middleManagers:
1802+ roleGroups:
1803+ default:
1804+ replicas: 1
1805+ routers:
1806+ roleGroups:
1807+ default:
1808+ replicas: 1
1809+ " } )
1810+ . expect ( "Failed to parse DruidClusterSpec YAML" )
17391811 }
17401812 }
17411813}
You can’t perform that action at this time.
0 commit comments