forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhaul the A01 test droid image and build process (Azure#5599)
The change intends to bring the CLI's test image to the standard which eventually will be shared across different product.The change intends to bring the CLI's test image to the standard which eventually will be shared across different product. 1. Use the new droid engine (written in Go) 2. Overhaul the docker image. 3. Add prepare pod and after test scripts
- Loading branch information
Showing
7 changed files
with
90 additions
and
204 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
mount_path=$1 | ||
task=$2 | ||
|
||
recording_path=$(echo $task | jq -r ".settings.execution.recording") | ||
if [ "$recording_path" == "null" ]; then | ||
echo "Skip copying recording file. Code 1." | ||
exit 0 | ||
fi | ||
|
||
if [ -z "$recording_path" ]; then | ||
echo "Skip copying recording file. Code 2." | ||
exit 0 | ||
fi | ||
|
||
run_id=$(echo $task | jq -r ".run_id") | ||
task_id=$(echo $task | jq -r ".id") | ||
|
||
mkdir -p $mount_path/$run_id | ||
cp $recording_path $mount_path/$run_id/recording_$task_id.yaml |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ "$AZURE_TEST_RUN_LIVE" != "True" ]; then | ||
echo "Environment variable AZURE_TEST_RUN_LIVE is NOT True." | ||
exit 0 | ||
fi | ||
|
||
echo "Environment variable AZURE_TEST_RUN_LIVE is True. Login azure with service principal." | ||
|
||
if [ -z "$A01_SP_USERNAME" ]; then | ||
echo "Missing service principal username." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$A01_SP_PASSWORD" ]; then | ||
echo "Missing service principal password." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$A01_SP_TENANT" ]; then | ||
echo "Missing service principal tenant." >&2 | ||
exit 1 | ||
fi | ||
|
||
az login --service-principal -u $A01_SP_USERNAME -p $A01_SP_PASSWORD -t $A01_SP_TENANT |
This file was deleted.
Oops, something went wrong.
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