Skip to content

Commit

Permalink
mod: add resource status debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
duffney committed Sep 3, 2024
1 parent c3190d2 commit cacd522
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/bats/azure-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,19 @@ SLEEP_TIME=1
run kubectl apply -f test.yaml
echo "DEBUG: manifest"
cat test.yaml
echo "DEBUG: resource status"
kubectl get keymanagementprovider kmp-akv-refresh -o json
assert_success
sleept 10
result=$(kubectl get keymanagementprovider kmp-akv-refresh -o jsonpath='{.status.properties.Certificates[0].Version}')
if $result = ""; then
sleep 5
result=$(kubectl get keymanagementprovider kmp-akv-refresh -o jsonpath='{.status.properties.Certificates[0].Version}')
fi
[ "$result" = "$version" ]
az keyvault certificate get-default-policy -o json >>policy.json
wait_for_process 20 10 "az keyvault certificate create --vault-name $KEYVAULT_NAME --name $NOTATION_PEM_NAME --policy @policy.json"
sleep 30
sleep 15
refreshResult=$(kubectl get keymanagementprovider kmp-akv-refresh -o jsonpath='{.status.properties.Certificates[0].Version}')
echo "DEBUG: result: $result"
echo "DEBUG: refreshResult: $refreshResult"
Expand Down

0 comments on commit cacd522

Please sign in to comment.