Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testsys: Add test type for cluster templating #137

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tools/testsys/src/crds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<BTreeMap<String, String>>(),
)?,
hardware_csv: &crd_input
Expand Down
Loading