Skip to content

Commit

Permalink
Merge pull request #545 from varshab1210/data-repopulate
Browse files Browse the repository at this point in the history
Re-write timeout strategy for test 1-035_validate_argocd_secret_repopulate
  • Loading branch information
jaideepr97 authored Jul 27, 2023
2 parents 9f471f3 + 76250ca commit e3dbee6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Check if the argocd-secret was repopulated
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
until [[ $i -eq 20 ]]
do
secret_data=$(oc get secret/argocd-secret -n openshift-gitops -o custom-columns=SECRET:.data --no-headers)
echo -e "Secret: $secret_data\n"
if [[ $secret_data == "<none>" ]]
then
i=$((i+1))
sleep 6
else
echo "argocd-secret was repopulated"
exit 0
fi
done
echo "argocd-secret was not repopulated"
exit 1

0 comments on commit e3dbee6

Please sign in to comment.