secrets-provider-for-k8s
secrets-provider-for-k8s copied to clipboard
cli_get_pods_test_env need to work with retry
The function cli_get_pods_test_env under utils.sh get response "No resources found" as result and continue instead of run it with retry.
cli_get_pods_test_env () { $cli_with_timeout "get pods --namespace=$TEST_APP_NAMESPACE_NAME --selector app=test-env --no-headers" }
Need to add some grep which is waiting to response different than "No resources found".
Tip:
In test_case_teardown we are waiting for No resources found (terminating) and it work well with retry because there is specific grep for this:
$cli_with_timeout "get pods --namespace=$TEST_APP_NAMESPACE_NAME --selector app=test-env --no-headers | wc -l | tr -d ' ' | grep '^0$'"
DOD:
- [ ] Add fix to automation