@@ -92,9 +92,19 @@ TERRAFORM_SAMPLES=(
9292 " samples/web-app-sql-database/python/terraform|bash deploy.sh"
9393)
9494
95+ # 3b. Define Bicep Samples
96+ BICEP_SAMPLES=(
97+ " samples/function-app-managed-identity/python/bicep|bash deploy.sh"
98+ " samples/function-app-storage-http/dotnet/bicep|bash deploy.sh"
99+ " samples/web-app-cosmosdb-mongodb-api/python/bicep|bash deploy.sh"
100+ " samples/web-app-managed-identity/python/bicep|bash deploy.sh"
101+ " samples/web-app-sql-database/python/bicep|bash deploy.sh"
102+ )
103+
95104# 4. Calculate Shard
96- # Combine both script-based and Terraform samples into one array
97- ALL_SAMPLES=(" ${SAMPLES[@]} " " ${TERRAFORM_SAMPLES[@]} " )
105+ # Combine script-based, Terraform, and Bicep samples into one array
106+ # ALL_SAMPLES=("${SAMPLES[@]}" "${TERRAFORM_SAMPLES[@]}" "${BICEP_SAMPLES[@]}")
107+ ALL_SAMPLES=(" ${BICEP_SAMPLES[@]} " )
98108TOTAL=${# ALL_SAMPLES[@]}
99109SHARD=${1:- 1}
100110SPLITS=${2:- 1}
@@ -107,7 +117,7 @@ if [ "$SHARD" -eq "$SPLITS" ]; then
107117fi
108118
109119echo " Running samples shard $SHARD of $SPLITS (index $START , count $COUNT )"
110- echo " Total samples (scripts + terraform): $TOTAL "
120+ echo " Total samples (scripts + terraform + bicep ): $TOTAL "
111121
112122# 5. Run Samples
113123for (( i= START; i< START+ COUNT; i++ )) ; do
@@ -133,6 +143,13 @@ for (( i=START; i<START+COUNT; i++ )); do
133143 rm -rf .terraform terraform.tfstate terraform.tfstate.backup .terraform.lock.hcl tfplan || true
134144 fi
135145
146+ # Cleanup Bicep artifacts for bicep tests
147+ if [[ " $path " == * " /bicep" ]]; then
148+ echo " Cleaning up Bicep artifacts..."
149+ # Clean up zip files if any were created
150+ rm -f * .zip || true
151+ fi
152+
136153 popd > /dev/null
137154 echo " Completed: $path "
138155
0 commit comments