keycloak / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
Apache License 2.0
651 stars 317 forks source link

Compute `extra_config` for data sources #885

Closed kherock closed 10 months ago

kherock commented 1 year 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.