Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm test call to how to get error message in NOTES.txt #347

Open
NamanGajjar26 opened this issue Jun 4, 2024 · 0 comments
Open

Helm test call to how to get error message in NOTES.txt #347

NamanGajjar26 opened this issue Jun 4, 2024 · 0 comments

Comments

@NamanGajjar26
Copy link

there are call helm test this command in terminal show this output like this below

`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:

  1. 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:

  1. 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
    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant