Skip to content

Commit

Permalink
use basic auth username and password from .env (#18273)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmossman authored Oct 20, 2022
1 parent 4e236b5 commit c5336ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/bin/load_test/cleanup_load_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This script cleans up an earlier load test. It reads from cleanup files that the
in order to determine which IDs to delete.
comment

echo "Sourcing environment variables from .env"
source .env

cd "$(dirname "$0")"
source load_test_utils.sh

Expand Down
3 changes: 3 additions & 0 deletions tools/bin/load_test/load_test_airbyte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ that requires port-forwarding. It stores connector and connection IDs that it cr
which means the script will delete every connector and connection ID that it created and stored in that file.
comment

echo "Sourcing environment variables from .env"
source .env

cd "$(dirname "$0")"
source load_test_utils.sh

Expand Down
1 change: 1 addition & 0 deletions tools/bin/load_test/load_test_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function callApi {
--show-error \
--header 'Content-Type: application/json' \
--header "X-Endpoint-API-UserInfo: ${x_endpoint_header}" \
--user "${BASIC_AUTH_USERNAME}:${BASIC_AUTH_PASSWORD}" \
--data "${payload}" \
"${hostname}:${api_port}/api/v1/${endpoint}"
}
Expand Down

0 comments on commit c5336ce

Please sign in to comment.