-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix: #6343 use d.GetOk to get qname_runtime_endpoint #6344
fix: #6343 use d.GetOk to get qname_runtime_endpoint #6344
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @johejo
Thanks for this PR :)
Taking a look through this is looking good - if we can add an acceptance test to confirm this works then this should otherwise be good 👍
Thanks!
qnaRuntimeEndpoint, exists := d.GetOk("qna_runtime_endpoint") | ||
if exists { | ||
props.Properties.APIProperties.QnaRuntimeEndpoint = utils.String(qnaRuntimeEndpoint.(string)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we add an acceptance test to confirm this works when the qna_runtime_endpoint
field is unset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will try. This is my first contribution. Is there any existing test code similar to this change I can refer to?
Hmm, temporarily I reverted the fix after adding the test, but the test seems to pass. I am confused. |
@johejo, could it be the service's API changed behaviour and fix the bug? The tests used to pass with the current code |
@katbyte If the bug report is wrong, close this PR. |
closing as requested. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
fix #6343