feat: add actual example

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-21 22:58:08 +02:00
parent 461f8acb73
commit f27d538b38
9 changed files with 216 additions and 24 deletions

View File

@@ -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(&current_dir).await?.into_component(),
ClusterVars::default().into_component(),
],
)
.await?;
Ok(())
}