Skip to content

Commit a7b23ff

Browse files
committed
test: Add placeholder values to satify roundtrip tests
1 parent fca3d49 commit a7b23ff

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

  • rust/operator-binary/src/crd

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub const MAX_PREPARE_LOG_FILE_SIZE: MemoryQuantity = MemoryQuantity {
8585
unit: BinaryMultiple::Mebi,
8686
};
8787

88-
pub const DOCKER_IMAGE_BASE_NAME: &str = "zookeeper";
88+
pub const CONTAINER_IMAGE_BASE_NAME: &str = "zookeeper";
8989

9090
const DEFAULT_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT: Duration = Duration::from_minutes_unchecked(2);
9191
pub const DEFAULT_LISTENER_CLASS: &str = "cluster-internal";
@@ -750,6 +750,8 @@ impl v1alpha1::ZookeeperCluster {
750750

751751
#[cfg(test)]
752752
mod tests {
753+
use stackable_operator::versioned::test_utils::RoundtripTestData;
754+
753755
use super::*;
754756

755757
fn get_server_secret_class(zk: &v1alpha1::ZookeeperCluster) -> Option<&str> {
@@ -929,4 +931,16 @@ mod tests {
929931
tls::quorum_tls_default().as_str()
930932
);
931933
}
934+
935+
impl RoundtripTestData for v1alpha1::ZookeeperClusterSpec {
936+
fn roundtrip_test_data() -> Vec<Self> {
937+
vec![]
938+
}
939+
}
940+
941+
impl RoundtripTestData for v1alpha1::ZookeeperZnodeSpec {
942+
fn roundtrip_test_data() -> Vec<Self> {
943+
vec![]
944+
}
945+
}
932946
}

0 commit comments

Comments
 (0)