Skip to content

Commit

Permalink
Fix CI for CLI (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajerin authored Aug 29, 2024
1 parent 4be2e0d commit e92e9d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions tembo-cli/temboclient/src/models/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ impl FromStr for StackType {
"OLAP" => Ok(StackType::Olap),
"VectorDB" => Ok(StackType::VectorDb),
"OLTP" => Ok(StackType::Oltp),
"Analytics" => Ok(StackType::Analytics),
"DataWarehouse" => Ok(StackType::DataWarehouse),
"Geospatial" => Ok(StackType::Geospatial),
"MongoAlternative" => Ok(StackType::MongoAlternative),
Expand Down
3 changes: 3 additions & 0 deletions tembo-cli/temboclient/src/models/stack_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub enum StackType {
Olap,
#[serde(rename = "OLTP")]
Oltp,
#[serde(rename = "Analytics")]
Analytics,
#[serde(rename = "VectorDB")]
VectorDb,
#[serde(rename = "DataWarehouse")]
Expand All @@ -43,6 +45,7 @@ impl ToString for StackType {
Self::MachineLearning => String::from("MachineLearning"),
Self::Olap => String::from("OLAP"),
Self::Oltp => String::from("OLTP"),
Self::Analytics => String::from("Analytics"),
Self::VectorDb => String::from("VectorDB"),
Self::DataWarehouse => String::from("DataWarehouse"),
Self::Geospatial => String::from("Geospatial"),
Expand Down
8 changes: 7 additions & 1 deletion tembo-cli/tests/integration_tests_cloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn minimal_cloud() -> Result<(), Box<dyn Error>> {
cmd.assert().success();

let charset = "abcdefghijklmnopqrstuvwxyz";
let instance_name = format!("e2e-{}", generate(10, charset));
let instance_name = format!("e2e-cli-{}", generate(10, charset));

setup_env(&instance_name)?;

Expand Down Expand Up @@ -137,6 +137,12 @@ fn setup_env(instance_name: &String) -> Result<(), Box<dyn Error>> {
&format!("instance_name = \"{instance_name}\""),
)?;

replace_vars_in_file(
"tembo.toml".to_string(),
"[minimal]",
&format!("[{instance_name}]"),
)?;

Ok(())
}

Expand Down

0 comments on commit e92e9d4

Please sign in to comment.