forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
…into k8s-extension/public
- Loading branch information
Showing
392 changed files
with
46,737 additions
and
81,403 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
src/vmware/azext_vmware/tests/latest/recordings/*.yaml linguist-generated=true |
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# check var | ||
# specify the version of python3, e.g. 3.6 | ||
[[ -z "${PYTHON_VERSION}" ]] && (echo "PYTHON_VERSION is empty"; exit 1) | ||
[[ -z "${ACS_BASE_DIR}" ]] && (echo "ACS_BASE_DIR is empty"; exit 1) | ||
|
||
setupVenv(){ | ||
# delete existing venv | ||
|
@@ -106,6 +107,19 @@ setupAKSPreview(){ | |
source azEnv/bin/activate | ||
} | ||
|
||
createSSHKey(){ | ||
# create ssh-key in advance to avoid the race condition that is prone to occur when key creation is handled by | ||
# azure-cli when performing test cases concurrently, this command will not overwrite the existing ssh-key | ||
custom_ssh_dir=${1:-"${ACS_BASE_DIR}/tests/latest/data/.ssh"} | ||
# remove dir if exists (clean up), otherwise create it | ||
if [[ -d ${custom_ssh_dir} ]]; then | ||
rm -rf ${custom_ssh_dir} | ||
else | ||
mkdir -p ${custom_ssh_dir} | ||
fi | ||
ssh-keygen -t rsa -b 2048 -C "[email protected]" -f ${custom_ssh_dir}/id_rsa -N "" -q <<< n | ||
} | ||
|
||
setup_option=${1:-""} | ||
if [[ -n ${setup_option} ]]; then | ||
# bash options | ||
|
@@ -142,6 +156,7 @@ if [[ -n ${setup_option} ]]; then | |
ext_repo=${4:-""} | ||
setupAZ "${cli_repo}" "${ext_repo}" | ||
installTestPackages | ||
createSSHKey | ||
elif [[ ${setup_option} == "setup-akspreview" ]]; then | ||
echo "Start to setup aks-preview!" | ||
setupAKSPreview | ||
|
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
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
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
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
Oops, something went wrong.