community
community copied to clipboard
Helm test call to how to get error message in NOTES.txt
there are call helm test
`dev_1@naman:~/Project/Helmprojects/demohelm$ helm test demomvc NAME: demomvc LAST DEPLOYED: Tue Jun 4 18:32:35 2024 NAMESPACE: default STATUS: deployed REVISION: 1 Phase: Succeeded TEST SUITE: checkpod-test Last Started: Tue Jun 4 18:32:45 2024 Last Completed: Tue Jun 4 18:32:55 2024 Phase: Succeeded NOTES:
- Get the application URL by running these commands: export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services demomvc-demohelm) export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}") export createdate=2024-06-04 echo http://$NODE_IP:$NODE_PORT`
there are Phase: Succeeded show message in NOTES (NOTES.txt) there are any error in test Phase: Failed to show this error message example: there are pass wrong image to show this error "Failed to pull image "abc-pqr": Error response from daemon: pull access denied for abc-pqr, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
`dev_1@naman:~/Project/Helmprojects/demohelm$ helm test demomvc NAME: demomvc LAST DEPLOYED: Tue Jun 4 18:32:35 2024 NAMESPACE: default STATUS: deployed REVISION: 1 Phase: Succeeded TEST SUITE: checkpod-test Last Started: Tue Jun 4 18:32:45 2024 Last Completed: Tue Jun 4 18:32:55 2024 Phase: Succeeded NOTES:
-
Get the application URL by running these commands: export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services demomvc-demohelm) export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}") export createdate=2024-06-04 echo http://$NODE_IP:$NODE_PORT
< here show error message > // see this `