secrets-provider-for-k8s icon indicating copy to clipboard operation
secrets-provider-for-k8s copied to clipboard

cli_get_pods_test_env need to work with retry

Open eladkug opened this issue 4 years ago • 0 comments

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

eladkug avatar Jun 01 '20 16:06 eladkug