Skip to content

Commit 1ccd0e7

Browse files
committed
test: Add placeholder values to satify roundtrip tests
1 parent 70385ab commit 1ccd0e7

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,18 @@ pub enum TrinoCatalogConnector {
100100

101101
#[cfg(test)]
102102
mod tests {
103-
use crate::crd::catalog::{TrinoCatalog, TrinoCatalogVersion};
103+
use stackable_operator::versioned::test_utils::RoundtripTestData;
104+
105+
use super::{TrinoCatalog, TrinoCatalogVersion, v1alpha1};
106+
104107
#[test]
105108
fn test_crd_generation() {
106109
TrinoCatalog::merged_crd(TrinoCatalogVersion::V1Alpha1).unwrap();
107110
}
111+
112+
impl RoundtripTestData for v1alpha1::TrinoCatalogSpec {
113+
fn roundtrip_test_data() -> Vec<Self> {
114+
vec![]
115+
}
116+
}
108117
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,8 @@ impl HasStatusCondition for v1alpha1::TrinoCluster {
11141114

11151115
#[cfg(test)]
11161116
mod tests {
1117+
use stackable_operator::versioned::test_utils::RoundtripTestData;
1118+
11171119
use super::*;
11181120

11191121
#[test]
@@ -1328,4 +1330,10 @@ mod tests {
13281330
Duration::from_minutes_unchecked(5)
13291331
);
13301332
}
1333+
1334+
impl RoundtripTestData for v1alpha1::TrinoClusterSpec {
1335+
fn roundtrip_test_data() -> Vec<Self> {
1336+
vec![]
1337+
}
1338+
}
13311339
}

0 commit comments

Comments
 (0)