IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
336 stars 646 forks source link

fix: update CreateMockByteArray() to decode input string #5340

Closed padamstx closed 1 month ago

padamstx commented 1 month ago

This PR updates the CreateMockByteArray() function used in unit tests that are generated by the SDK generator. Specifically, it syncs the definition of the function with the version used in Go SDKs. The change is to add code to do a base64-decode of the input string which is assumed to be a base64-encoded string (the original un-encoded data would be simply a []byte value - binary data).

padamstx commented 1 month ago

cc: @hkantare Could you please review and merge when you have a chance. Thanks!