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

Fixed issue caused by config names that have uppercase characters #37

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

balazsgaspar
Copy link
Contributor

Fixes CDPCP-10052

@balazsgaspar balazsgaspar requested a review from a team as a code owner July 27, 2023 16:00
cdp-sdk-go/cdp/credentials.go Outdated Show resolved Hide resolved
@balazsgaspar
Copy link
Contributor Author

Updated the logic so that key names remain case insensitive, but profile name are now case sensitive.

We decided to follow the Python CDP CLI semantics for case sensitivity to be compatible between
the two tools and least surprises to the end user. Python INI file parsing defaults to case
sensitive section names, but case insensitive option names. We do the same in the go SDK.

This commit adds some more unit tests.
@enis enis merged commit 11ac3b9 into main Jul 28, 2023
18 checks passed
@enis enis deleted the CDPCP-10052 branch July 28, 2023 22:23
balazsgaspar added a commit that referenced this pull request Aug 1, 2023
* Fixed issue caused by config names that have uppercase characters

* Fixed unit test and add more test cases

We decided to follow the Python CDP CLI semantics for case sensitivity to be compatible between
the two tools and least surprises to the end user. Python INI file parsing defaults to case
sensitive section names, but case insensitive option names. We do the same in the go SDK.

This commit adds some more unit tests.

---------

Co-authored-by: Enis Soztutar <[email protected]>
gregito pushed a commit that referenced this pull request Aug 2, 2023
… (#41)

* Fixed issue caused by config names that have uppercase characters

* Fixed unit test and add more test cases

We decided to follow the Python CDP CLI semantics for case sensitivity to be compatible between
the two tools and least surprises to the end user. Python INI file parsing defaults to case
sensitive section names, but case insensitive option names. We do the same in the go SDK.

This commit adds some more unit tests.

---------

Co-authored-by: Enis Soztutar <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants