From 55a3d5d874397cb8485bf92985277f3119a55767 Mon Sep 17 00:00:00 2001 From: ecpullen Date: Tue, 23 Jan 2024 17:56:01 +0000 Subject: [PATCH] testsys: Add test type for cluster templating --- tools/testsys/src/crds.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testsys/src/crds.rs b/tools/testsys/src/crds.rs index 322c4d380..6372f5586 100644 --- a/tools/testsys/src/crds.rs +++ b/tools/testsys/src/crds.rs @@ -486,8 +486,14 @@ pub(crate) trait CrdCreator: Sync { &mut self .additional_fields(&test_type.to_string()) .into_iter() - // Add the image id in case it is needed for cluster creation + // Add the image id, original test type, and resolved test type in case + // it is needed for cluster creation .chain(Some(("image-id".to_string(), image_id.clone()))) + .chain(Some(( + "test-flavor".to_string(), + crd_input.test_flavor.clone(), + ))) + .chain(Some(("test-type".to_string(), test_type.to_string()))) .collect::>(), )?, hardware_csv: &crd_input