-
Notifications
You must be signed in to change notification settings - Fork 13
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
Nil Pointer exception while trying to reach out via Harness SDK during Terratest #119
Comments
arimaverick
changed the title
Nil Point exception while trying to reach out via Harness SDK during Terratest
Nil Pointer exception while trying to reach out via Harness SDK during Terratest
May 17, 2022
@arimaverick That should be working. I'm not able to reproduce this on my end. |
@micahlmartin I think it's due to client not initialized correctly. According to a documentation here: https://github.com/harness/harness-go-sdk more parameters have to be passed. Can you explain where can I get getUserAgentString() from? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am testing harness terraform module in Jenkins. I am able to perform the terraform execution part, but while reaching out to client sdk to validate few properties I am facing the following error:
Line# 72 in the code is the following one:
require.Equal(t, client.Configuration.AccountId, "AbcxYz1234", "FAILED: AccountID does NOT match")
The code for client config is the following. I have set env vars HARNESSS_ACCOUNT_ID and HARNESS_API_KEY:
I would like to know if there is additional instruction to set network config to reach out to the harness sdk. Kindly help us to get the way forward here.
Thank you.
@abrahamkoshy
The text was updated successfully, but these errors were encountered: