@@ -3,7 +3,10 @@ pub mod common;
|
||||
mod can_run_for_env;
|
||||
mod cuddle_vars;
|
||||
|
||||
use cuddle_clusters::catalog::cuddle_vars::CuddleVars;
|
||||
use cuddle_clusters::{
|
||||
catalog::{cluster_vars::ClusterVars, cuddle_vars::CuddleVars},
|
||||
IntoComponent,
|
||||
};
|
||||
|
||||
use crate::common::{run_test, run_test_with_components};
|
||||
|
||||
@@ -60,3 +63,19 @@ async fn with_cuddle_vars() -> anyhow::Result<()> {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn with_actual_deployment() -> anyhow::Result<()> {
|
||||
let current_dir = std::env::current_dir()?.join("tests/with_cuddle_vars");
|
||||
|
||||
run_test_with_components(
|
||||
"with_actual_deployment",
|
||||
vec![
|
||||
CuddleVars::new(¤t_dir).await?.into_component(),
|
||||
ClusterVars::default().into_component(),
|
||||
],
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user