feat: add crdb
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -4,7 +4,10 @@ mod can_run_for_env;
|
||||
mod cuddle_vars;
|
||||
|
||||
use cuddle_clusters::{
|
||||
catalog::{cluster_vars::ClusterVars, cuddle_vars::CuddleVars, vault_secret::VaultSecret},
|
||||
catalog::{
|
||||
cluster_vars::ClusterVars, crdb_database::CockroachDB, cuddle_vars::CuddleVars,
|
||||
vault_secret::VaultSecret,
|
||||
},
|
||||
IntoComponent,
|
||||
};
|
||||
|
||||
@@ -96,3 +99,21 @@ async fn with_vault_secrets() -> anyhow::Result<()> {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn with_crdb() -> anyhow::Result<()> {
|
||||
let current_dir = std::env::current_dir()?.join("tests/with_crdb");
|
||||
|
||||
run_test_with_components(
|
||||
"with_crdb",
|
||||
vec![
|
||||
CuddleVars::new(¤t_dir).await?.into_component(),
|
||||
ClusterVars::default().into_component(),
|
||||
VaultSecret::default().into_component(),
|
||||
CockroachDB::new(¤t_dir).await?.into_component(),
|
||||
],
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user