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

Compute extra_config for data sources #885

Merged

Conversation

kherock
Copy link
Contributor

@kherock kherock commented Oct 11, 2023

Fixes #884

The build of the first commit shows the expected bug that was originally hidden due to a bad test definition:

    data_source_keycloak_openid_client_test.go:52: Step 1/1 error: Check failed: 1 error occurred:
        	* Check 1/1 error: data.keycloak_openid_client.test_extra_config: Attribute "extra_config.key1" not set, but "extra_config.key1" is set in keycloak_openid_client.test_extra_config as "value1"

To fix, I modified the data source routines to set extra_config to the value directly obtained from the client attributes.

@kherock kherock changed the title Compute extra_config for keycloak_openid_client data source Compute extra_config for data sources Oct 12, 2023
@kherock kherock force-pushed the compute-openid-client-extra-config branch from 27033ab to aacf3d2 Compare October 12, 2023 00:32
@kherock kherock marked this pull request as ready for review October 12, 2023 00:53
@kherock kherock force-pushed the compute-openid-client-extra-config branch from aacf3d2 to 39ba25b Compare November 1, 2023 20:33
@kherock kherock force-pushed the compute-openid-client-extra-config branch from 39ba25b to 2f8cd93 Compare November 21, 2023 18:02
Copy link
Contributor

@mrparkers mrparkers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for submitting this PR!

@mrparkers mrparkers merged commit c818211 into keycloak:master Jan 3, 2024
6 checks passed
@kherock kherock deleted the compute-openid-client-extra-config branch January 3, 2024 15:25
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.

extra_config is empty on keycloak_openid_client data source
2 participants