mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
624 stars 306 forks source link

Compute `extra_config` for data sources #885

Closed kherock closed 9 months ago

kherock commented 12 months ago

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.