use super::rt;
use crate::boundary::config::{ConfigFile, Read};
use crate::boundary::{Gesture, Query};
#[test]
fn the_config_familys_reads_round_trip() {
for file in [
ConfigFile::Brazen {
workspace: "ws".to_owned(),
},
ConfigFile::LitanyModels,
ConfigFile::Cadence,
ConfigFile::LitanyWorkflow {
name: "review".to_owned(),
},
] {
rt(Gesture::Ask(Query::Config(Read::File { file })));
}
for origin in [
crate::config_edit::branch::edit::EditOrigin::Advance,
crate::config_edit::branch::edit::EditOrigin::Orphan,
crate::config_edit::branch::edit::EditOrigin::Fork {
source: "base".to_owned(),
},
] {
rt(Gesture::Ask(Query::Config(Read::File {
file: ConfigFile::Branch {
workspace: "ws".to_owned(),
lineage: "strict".to_owned(),
origin,
path: "workflow.yaml".to_owned(),
},
})));
}
rt(Gesture::Ask(Query::Config(Read::Marks {
workspace: "ws".to_owned(),
})));
rt(Gesture::Ask(Query::Config(Read::Roles {
workspace: "ws".to_owned(),
})));
rt(Gesture::Ask(Query::Config(Read::Providers {
workspace: "ws".to_owned(),
})));
rt(Gesture::Ask(Query::Config(Read::Lineages {
workspace: "ws".to_owned(),
})));
rt(Gesture::Ask(Query::Config(Read::Models {
workspace: "ws".to_owned(),
provider: "acme".to_owned(),
})));
}