feat: add variables

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-20 23:05:20 +02:00
parent f71b68cd89
commit bbe630e822
14 changed files with 429 additions and 22 deletions

View File

@@ -1,8 +1,11 @@
pub mod common;
mod can_run_for_env;
mod cuddle_vars;
use crate::common::run_test;
use cuddle_clusters::catalog::cuddle_vars::CuddleVars;
use crate::common::{run_test, run_test_with_components};
#[tokio::test]
async fn raw_files() -> anyhow::Result<()> {
@@ -37,3 +40,16 @@ async fn environment() -> anyhow::Result<()> {
Ok(())
}
#[tokio::test]
async fn with_cuddle_vars() -> anyhow::Result<()> {
let current_dir = std::env::current_dir()?.join("tests/with_cuddle_vars");
run_test_with_components(
"with_cuddle_vars",
vec![CuddleVars::new(&current_dir).await?],
)
.await?;
Ok(())
}