Skip to content

Commit 9c22e99

Browse files
committed
chore: run sanity test in user mode
1 parent 78a8b9a commit 9c22e99

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

test/sanity/run-tests-all-clouds.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
# set -euo pipefail
1818

19-
export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
19+
if [ -z ${AZURE_CREDENTIAL_FILE} ]; then
20+
export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
21+
fi
2022

2123
# run test on AzurePublicCloud
2224
if [ -v aadClientSecret ]; then
@@ -30,7 +32,13 @@ if [ -v aadClientSecret ]; then
3032
sed -i "s/location-input/$location/g" $AZURE_CREDENTIAL_FILE
3133

3234
go test -v ./test/sanity/...
35+
# make it always succeed for now until enabled sanity test on CI
36+
exit 0
37+
else
38+
if [ -v subscriptionId ]; then
39+
echo "skip sanity test in CI env"
40+
else
41+
# run test in user mode
42+
go test -v ./test/sanity/...
43+
fi
3344
fi
34-
35-
# make it always succeed for now
36-
exit 0

0 commit comments

Comments
 (0)