Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
  • Loading branch information
anandrkskd committed Feb 19, 2025
1 parent adb33b3 commit 17aa5cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commands:
- script: |
api_server=$(oc get routes -n openshift-gitops --field-selector metadata.name=openshift-gitops-server -o jsonpath="{.items[*]['spec.host']}")
password=$(oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin\.password}' | base64 -d)
output=$(argocd login $api_server --username admin --password $password --insecure)
output=$(argocd login $api_server --username admin --password $password --insecure --skip-test-tls)
if ! [[ "${output}" =~ "'admin:login' logged in successfully" ]]; then
if [[ "${output}" == *"rpc error: code = Unknown desc = server.secretkey is missing" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ commands:
api_server=$(oc get routes -n openshift-gitops --field-selector metadata.name=openshift-gitops-server -o jsonpath="{.items[*]['spec.host']}")
password=$(oc get secret openshift-gitops-cluster -n openshift-gitops -o jsonpath='{.data.admin\.password}' | base64 -d)
output=$(argocd login $api_server --username admin --password $password --insecure)
output=$(argocd login $api_server --username admin --password $password --insecure --skip-test-tls)
if ! [[ "${output}" =~ "'admin:login' logged in successfully" ]]; then
exit 1
Expand Down

0 comments on commit 17aa5cb

Please sign in to comment.