feat: add actual render

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-23 21:25:53 +02:00
parent fc2430adda
commit 50d85ed383
7 changed files with 302 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ mod can_run_for_env;
mod cuddle_vars;
use cuddle_clusters::{
catalog::{cluster_vars::ClusterVars, cuddle_vars::CuddleVars},
catalog::{cluster_vars::ClusterVars, cuddle_vars::CuddleVars, vault_secret::VaultSecret},
IntoComponent,
};
@@ -79,3 +79,20 @@ async fn with_actual_deployment() -> anyhow::Result<()> {
Ok(())
}
#[tokio::test]
async fn with_vault_secrets() -> anyhow::Result<()> {
let current_dir = std::env::current_dir()?.join("tests/with_vault_secrets");
run_test_with_components(
"with_vault_secrets",
vec![
CuddleVars::new(&current_dir).await?.into_component(),
ClusterVars::default().into_component(),
VaultSecret::default().into_component(),
],
)
.await?;
Ok(())
}