more testing fixes
This commit is contained in:
0
OpenJibo/scripts/bootstrap/test-openjibo-routing.sh
Normal file → Executable file
0
OpenJibo/scripts/bootstrap/test-openjibo-routing.sh
Normal file → Executable file
3
OpenJibo/scripts/cloud/get-websocket-capture-summary.sh
Normal file → Executable file
3
OpenJibo/scripts/cloud/get-websocket-capture-summary.sh
Normal file → Executable file
@@ -2,7 +2,8 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
CAPTURE_DIRECTORY="${1:-${SCRIPT_DIR}/../../src/Jibo.Cloud/dotnet/src/Jibo.Cloud.Api/bin/Debug/net10.0/captures/websocket}"
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
||||||
|
CAPTURE_DIRECTORY="${1:-${REPO_ROOT}/captures/websocket}"
|
||||||
|
|
||||||
if [[ ! -d "${CAPTURE_DIRECTORY}" ]]; then
|
if [[ ! -d "${CAPTURE_DIRECTORY}" ]]; then
|
||||||
echo "No websocket capture directory found at ${CAPTURE_DIRECTORY}"
|
echo "No websocket capture directory found at ${CAPTURE_DIRECTORY}"
|
||||||
|
|||||||
0
OpenJibo/scripts/cloud/import-websocket-capture-fixture.py
Normal file → Executable file
0
OpenJibo/scripts/cloud/import-websocket-capture-fixture.py
Normal file → Executable file
3
OpenJibo/scripts/cloud/invoke-live-jibo-prep.sh
Normal file → Executable file
3
OpenJibo/scripts/cloud/invoke-live-jibo-prep.sh
Normal file → Executable file
@@ -2,8 +2,9 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
||||||
BASE_URL="${BASE_URL:-https://localhost:5001}"
|
BASE_URL="${BASE_URL:-https://localhost:5001}"
|
||||||
CAPTURE_DIRECTORY="${CAPTURE_DIRECTORY:-${SCRIPT_DIR}/../../src/Jibo.Cloud/dotnet/src/Jibo.Cloud.Api/bin/Debug/net10.0/captures/websocket}"
|
CAPTURE_DIRECTORY="${CAPTURE_DIRECTORY:-${REPO_ROOT}/captures/websocket}"
|
||||||
EXPECTED_HOSTS=(
|
EXPECTED_HOSTS=(
|
||||||
"api.jibo.com"
|
"api.jibo.com"
|
||||||
"api-socket.jibo.com"
|
"api-socket.jibo.com"
|
||||||
|
|||||||
4
OpenJibo/scripts/cloud/start-dotnet-with-node-cert.sh
Normal file → Executable file
4
OpenJibo/scripts/cloud/start-dotnet-with-node-cert.sh
Normal file → Executable file
@@ -12,8 +12,10 @@ PFX_OUT="${PFX_OUT:-${REPO_ROOT}/.tmp/openjibo-dev-cert.pfx}"
|
|||||||
PFX_PASSWORD="${PFX_PASSWORD:-openjibo-dev-password}"
|
PFX_PASSWORD="${PFX_PASSWORD:-openjibo-dev-password}"
|
||||||
ASPNETCORE_URLS="${ASPNETCORE_URLS:-https://0.0.0.0:443;http://0.0.0.0:24605}"
|
ASPNETCORE_URLS="${ASPNETCORE_URLS:-https://0.0.0.0:443;http://0.0.0.0:24605}"
|
||||||
DOTNET_ENVIRONMENT="${DOTNET_ENVIRONMENT:-Development}"
|
DOTNET_ENVIRONMENT="${DOTNET_ENVIRONMENT:-Development}"
|
||||||
|
CAPTURE_DIRECTORY="${CAPTURE_DIRECTORY:-${REPO_ROOT}/captures/websocket}"
|
||||||
|
|
||||||
mkdir -p "$(dirname "${PFX_OUT}")"
|
mkdir -p "$(dirname "${PFX_OUT}")"
|
||||||
|
mkdir -p "${CAPTURE_DIRECTORY}"
|
||||||
|
|
||||||
if [[ ! -f "${CERT_PEM}" ]]; then
|
if [[ ! -f "${CERT_PEM}" ]]; then
|
||||||
echo "Missing CERT_PEM: ${CERT_PEM}" >&2
|
echo "Missing CERT_PEM: ${CERT_PEM}" >&2
|
||||||
@@ -56,12 +58,14 @@ export ASPNETCORE_URLS
|
|||||||
export DOTNET_ENVIRONMENT
|
export DOTNET_ENVIRONMENT
|
||||||
export ASPNETCORE_Kestrel__Certificates__Default__Path="${PFX_OUT}"
|
export ASPNETCORE_Kestrel__Certificates__Default__Path="${PFX_OUT}"
|
||||||
export ASPNETCORE_Kestrel__Certificates__Default__Password="${PFX_PASSWORD}"
|
export ASPNETCORE_Kestrel__Certificates__Default__Password="${PFX_PASSWORD}"
|
||||||
|
export OpenJibo__Telemetry__DirectoryPath="${CAPTURE_DIRECTORY}"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Starting OpenJibo .NET cloud"
|
echo "Starting OpenJibo .NET cloud"
|
||||||
echo " - project: ${API_PROJECT}"
|
echo " - project: ${API_PROJECT}"
|
||||||
echo " - urls: ${ASPNETCORE_URLS}"
|
echo " - urls: ${ASPNETCORE_URLS}"
|
||||||
echo " - environment: ${DOTNET_ENVIRONMENT}"
|
echo " - environment: ${DOTNET_ENVIRONMENT}"
|
||||||
|
echo " - captures: ${CAPTURE_DIRECTORY}"
|
||||||
|
|
||||||
cd "${REPO_ROOT}"
|
cd "${REPO_ROOT}"
|
||||||
exec dotnet run --project "${API_PROJECT}" --no-launch-profile
|
exec dotnet run --project "${API_PROJECT}" --no-launch-profile
|
||||||
|
|||||||
Reference in New Issue
Block a user