-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,383 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# OpenAI | ||
# Azure OpenAI | ||
# AZURE_OPENAI_API_KEY=xxx # Required if not using AAD Managed Identity | ||
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME=text-embedding-3-large-1 | ||
AZURE_OPENAI_EMBEDDING_DIMENSIONS=3072 | ||
AZURE_OPENAI_EMBEDDING_MODEL_NAME=text-embedding-3-large | ||
AZURE_OPENAI_ENDPOINT=https://xxx.openai.azure.com | ||
|
||
# AI Search | ||
# Azure AI Search | ||
# AZURE_SEARCH_API_KEY=xxx # Required if not using AAD Managed Identity | ||
AZURE_SEARCH_ENDPOINT=https://xxx.search.windows.net | ||
|
||
# Blob Storage | ||
# Azure Blob Storage | ||
AZURE_STORAGE_ACCESS_KEY=xxx # Required if not using AAD Managed Identity | ||
AZURE_STORAGE_ACCOUNT_NAME=xxx | ||
|
||
# Application Insights | ||
# Azure Application Insights | ||
APPLICATIONINSIGHTS_CONNECTION_STRING=xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Start the first command in the background | ||
make test-static-server 1>/dev/null 2>&1 & | ||
write_header() { | ||
lightcyan='\033[1;36m' | ||
nocolor='\033[0m' | ||
echo -e "${lightcyan}➡️ $1${nocolor}" | ||
} | ||
|
||
# Capture the PID of the background process | ||
UNIT_RUN_PID=$! | ||
cleanup() { | ||
write_header "Cleaning up" | ||
kill $aws_mock_pid | ||
kill $static_server_pid | ||
} | ||
|
||
# Run the second command | ||
make test-unit-run | ||
exit_code=$? | ||
# Unregister on success | ||
trap 'cleanup; exit 0' EXIT | ||
# Unregister on Ctrl+C | ||
trap 'cleanup; exit 130' INT | ||
# Unregister on SIGTERM | ||
trap 'cleanup; exit 143' TERM | ||
|
||
# Start AWS mock in background | ||
write_header "Starting AWS mock" | ||
make test-aws-mock 2>&1 & | ||
aws_mock_pid=$! | ||
|
||
# Once the second command exits, kill the first process | ||
kill $UNIT_RUN_PID | ||
# Start static server in background | ||
write_header "Starting static server" | ||
make test-static-server 2>&1 & | ||
static_server_pid=$! | ||
|
||
# Exit with the same exit code as the second command | ||
# Run the unit tests | ||
make test-unit-run | ||
exit_code=$? | ||
write_header "Unit tests finished" | ||
exit $exit_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.