Skip to content

Commit 006060e

Browse files
committed
Fix tests
1 parent 1e4cfc8 commit 006060e

1 file changed

Lines changed: 5 additions & 84 deletions

File tree

  • rust/operator-binary/src/crd

rust/operator-binary/src/crd/mod.rs

Lines changed: 5 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -796,79 +796,6 @@ impl v1alpha1::DruidCluster {
796796
}
797797
}
798798

799-
#[cfg(test)]
800-
impl stackable_operator::versioned::test_utils::RoundtripTestData for v1alpha1::DruidClusterSpec {
801-
fn roundtrip_test_data() -> Vec<Self> {
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")
869-
}
870-
}
871-
872799
#[derive(
873800
Clone,
874801
Debug,
@@ -1740,17 +1667,11 @@ mod tests {
17401667
stopped: false
17411668
reconciliationPaused: false
17421669
clusterConfig:
1743-
metadataStorageDatabase:
1744-
dbType: postgresql
1745-
connString: jdbc:postgresql://druid-postgresql/druid
1746-
host: druid-postgresql
1747-
port: 5432
1748-
credentialsSecret: druid-credentials
1749-
# metadataDatabase:
1750-
# postgresql:
1751-
# host: druid-postgresql
1752-
# database: druid
1753-
# credentialsSecretName: mySecret
1670+
metadataDatabase:
1671+
postgresql:
1672+
host: druid-postgresql
1673+
database: druid
1674+
credentialsSecretName: mySecret
17541675
deepStorage:
17551676
hdfs:
17561677
configMapName: simple-hdfs

0 commit comments

Comments
 (0)