Skip to content

Commit

Permalink
better test for ai-proxy in merged configs (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend authored Jul 10, 2024
1 parent 4387e69 commit 1458d81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tembo-stacks/src/apps/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,17 @@ mod tests {
}];
let merged_configs: MergedConfigs =
merge_app_reqs(Some(user_apps), Some(stack_apps), None, None, None).unwrap();
for config in merged_configs.pg_configs.unwrap() {
if config.name == "vectorize.tembo_svc_url" {
let mut found: bool = false;
for config in merged_configs.pg_configs.clone().unwrap() {
if config.name == "vectorize.tembo_service_url" {
assert_eq!(
config.value.to_string(),
"http://${NAMESPACE}-ai-proxy:8080/v1"
);
found = true;
}
}
assert!(found);
// filter for embedding app
let embedding_app = merged_configs
.app_services
Expand Down

0 comments on commit 1458d81

Please sign in to comment.