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 @@ -100,9 +100,18 @@ pub enum TrinoCatalogConnector {
100100
101101#[ cfg( test) ]
102102mod 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}
Original file line number Diff line number Diff line change @@ -1114,6 +1114,8 @@ impl HasStatusCondition for v1alpha1::TrinoCluster {
11141114
11151115#[ cfg( test) ]
11161116mod 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}
You can’t perform that action at this time.
0 commit comments