Failed to verify certificate ( ./testacc ) #2859
-
|
Hello there, I'm sorry for asking a more topic adjacent question but wanted to try and learn from the opportunity. and While this shows it's added correctly if I think if I want to continue contributing I should set this up for the future. Also wanted to ask why this happens while testing and hasn't occurred to me while using the provider? Does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hey @Jerson-Cortes 👋🏼 Welcome aboard! It looks like your PVE server is using a self-signed cert. When you're using provider you probably configured it with You can do the same for the acceptance test runner as well via environment variable, just add |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the answer @bpg-dev ! Yup, that was it. Now I've finished the setup correctly and does run the test but generates a new error (which if I understand correctly is code related) : If the error is indeed relevant to the code should I open a PR so the discussion can take place there? |
Beta Was this translation helpful? Give feedback.
Hey @Jerson-Cortes 👋🏼
Welcome aboard!
It looks like your PVE server is using a self-signed cert. When you're using provider you probably configured it with
insecure = true, which disables TLS cert validation when the provider connects to the API.You can do the same for the acceptance test runner as well via environment variable, just add
PROXMOX_VE_INSECURE=truevariable and you should be good to go