diff --git a/provider/resource_keycloak_openid_client.go b/provider/resource_keycloak_openid_client.go index 389e35d4..73e5fdd1 100644 --- a/provider/resource_keycloak_openid_client.go +++ b/provider/resource_keycloak_openid_client.go @@ -6,7 +6,6 @@ import ( "fmt" "github.com/imdario/mergo" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "reflect" "strings" diff --git a/provider/resource_keycloak_openid_client_authorization_resource.go b/provider/resource_keycloak_openid_client_authorization_resource.go index 461f8707..ad012687 100644 --- a/provider/resource_keycloak_openid_client_authorization_resource.go +++ b/provider/resource_keycloak_openid_client_authorization_resource.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_openid_client_authorization_resource_test.go b/provider/resource_keycloak_openid_client_authorization_resource_test.go index 98c373ea..4b42d0c7 100644 --- a/provider/resource_keycloak_openid_client_authorization_resource_test.go +++ b/provider/resource_keycloak_openid_client_authorization_resource_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_openid_client_authorization_scope.go b/provider/resource_keycloak_openid_client_authorization_scope.go index dd672b1c..1360351a 100644 --- a/provider/resource_keycloak_openid_client_authorization_scope.go +++ b/provider/resource_keycloak_openid_client_authorization_scope.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_openid_client_authorization_scope_test.go b/provider/resource_keycloak_openid_client_authorization_scope_test.go index 0c1530f8..67789f50 100644 --- a/provider/resource_keycloak_openid_client_authorization_scope_test.go +++ b/provider/resource_keycloak_openid_client_authorization_scope_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_openid_client_default_scopes_test.go b/provider/resource_keycloak_openid_client_default_scopes_test.go index 899882f5..3d3d2b10 100644 --- a/provider/resource_keycloak_openid_client_default_scopes_test.go +++ b/provider/resource_keycloak_openid_client_default_scopes_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strings" "testing" diff --git a/provider/resource_keycloak_openid_client_optional_scopes_test.go b/provider/resource_keycloak_openid_client_optional_scopes_test.go index 6232f7c6..3efa1da6 100644 --- a/provider/resource_keycloak_openid_client_optional_scopes_test.go +++ b/provider/resource_keycloak_openid_client_optional_scopes_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strings" "testing" diff --git a/provider/resource_keycloak_openid_client_scope.go b/provider/resource_keycloak_openid_client_scope.go index d5b20266..77e626a9 100644 --- a/provider/resource_keycloak_openid_client_scope.go +++ b/provider/resource_keycloak_openid_client_scope.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "strconv" "strings" diff --git a/provider/resource_keycloak_openid_client_service_account_realm_role.go b/provider/resource_keycloak_openid_client_service_account_realm_role.go index 41502bcd..adfd51f1 100644 --- a/provider/resource_keycloak_openid_client_service_account_realm_role.go +++ b/provider/resource_keycloak_openid_client_service_account_realm_role.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_openid_client_service_account_realm_role_test.go b/provider/resource_keycloak_openid_client_service_account_realm_role_test.go index 4491d563..0d869576 100644 --- a/provider/resource_keycloak_openid_client_service_account_realm_role_test.go +++ b/provider/resource_keycloak_openid_client_service_account_realm_role_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" "testing" ) diff --git a/provider/resource_keycloak_openid_client_service_account_role.go b/provider/resource_keycloak_openid_client_service_account_role.go index 0e3fc82b..849684fb 100644 --- a/provider/resource_keycloak_openid_client_service_account_role.go +++ b/provider/resource_keycloak_openid_client_service_account_role.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_openid_client_service_account_role_test.go b/provider/resource_keycloak_openid_client_service_account_role_test.go index cf346a29..9e409724 100644 --- a/provider/resource_keycloak_openid_client_service_account_role_test.go +++ b/provider/resource_keycloak_openid_client_service_account_role_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" "testing" ) diff --git a/provider/resource_keycloak_openid_client_test.go b/provider/resource_keycloak_openid_client_test.go index b9ce6ac2..65d924f6 100644 --- a/provider/resource_keycloak_openid_client_test.go +++ b/provider/resource_keycloak_openid_client_test.go @@ -3,7 +3,6 @@ package provider import ( "fmt" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "regexp" "strings" "testing" diff --git a/provider/resource_keycloak_openid_full_name_protocol_mapper_test.go b/provider/resource_keycloak_openid_full_name_protocol_mapper_test.go index e4451290..6d6798c6 100644 --- a/provider/resource_keycloak_openid_full_name_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_full_name_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_openid_group_membership_protocol_mapper_test.go b/provider/resource_keycloak_openid_group_membership_protocol_mapper_test.go index 9bf1ac54..fda89434 100644 --- a/provider/resource_keycloak_openid_group_membership_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_group_membership_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_openid_hardcoded_claim_protocol_mapper_test.go b/provider/resource_keycloak_openid_hardcoded_claim_protocol_mapper_test.go index 1e529519..2eecd205 100644 --- a/provider/resource_keycloak_openid_hardcoded_claim_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_hardcoded_claim_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_openid_hardcoded_role_protocol_mapper_test.go b/provider/resource_keycloak_openid_hardcoded_role_protocol_mapper_test.go index 5888da6d..6d1bbd45 100644 --- a/provider/resource_keycloak_openid_hardcoded_role_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_hardcoded_role_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_openid_script_protocol_mapper_test.go b/provider/resource_keycloak_openid_script_protocol_mapper_test.go index 09575e5f..7de8c65c 100644 --- a/provider/resource_keycloak_openid_script_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_script_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_openid_user_attribute_protocol_mapper_test.go b/provider/resource_keycloak_openid_user_attribute_protocol_mapper_test.go index 65b85a28..3bada251 100644 --- a/provider/resource_keycloak_openid_user_attribute_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_user_attribute_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_openid_user_property_protocol_mapper_test.go b/provider/resource_keycloak_openid_user_property_protocol_mapper_test.go index 62a86d3c..7df3b3d6 100644 --- a/provider/resource_keycloak_openid_user_property_protocol_mapper_test.go +++ b/provider/resource_keycloak_openid_user_property_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_realm_events_test.go b/provider/resource_keycloak_realm_events_test.go index a3c7b8e4..439cc1e4 100644 --- a/provider/resource_keycloak_realm_events_test.go +++ b/provider/resource_keycloak_realm_events_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_realm_keystore_aes_generated_test.go b/provider/resource_keycloak_realm_keystore_aes_generated_test.go index eed6e0f3..6f5e7c26 100644 --- a/provider/resource_keycloak_realm_keystore_aes_generated_test.go +++ b/provider/resource_keycloak_realm_keystore_aes_generated_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strconv" "testing" diff --git a/provider/resource_keycloak_realm_keystore_ecdsa_generated_test.go b/provider/resource_keycloak_realm_keystore_ecdsa_generated_test.go index aff27856..8e09b5ce 100644 --- a/provider/resource_keycloak_realm_keystore_ecdsa_generated_test.go +++ b/provider/resource_keycloak_realm_keystore_ecdsa_generated_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strconv" "testing" diff --git a/provider/resource_keycloak_realm_keystore_hmac_generated_test.go b/provider/resource_keycloak_realm_keystore_hmac_generated_test.go index d7d00d4a..442b1211 100644 --- a/provider/resource_keycloak_realm_keystore_hmac_generated_test.go +++ b/provider/resource_keycloak_realm_keystore_hmac_generated_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strconv" "testing" diff --git a/provider/resource_keycloak_realm_keystore_java_kyestore_test.go b/provider/resource_keycloak_realm_keystore_java_kyestore_test.go index d59bb1c6..da3b8c20 100644 --- a/provider/resource_keycloak_realm_keystore_java_kyestore_test.go +++ b/provider/resource_keycloak_realm_keystore_java_kyestore_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "strconv" "testing" diff --git a/provider/resource_keycloak_realm_keystore_rsa_test.go b/provider/resource_keycloak_realm_keystore_rsa_test.go index c5f4c858..3aed3304 100644 --- a/provider/resource_keycloak_realm_keystore_rsa_test.go +++ b/provider/resource_keycloak_realm_keystore_rsa_test.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "log" "math/big" "regexp" diff --git a/provider/resource_keycloak_required_action.go b/provider/resource_keycloak_required_action.go index bde26e3a..f9ccce2c 100644 --- a/provider/resource_keycloak_required_action.go +++ b/provider/resource_keycloak_required_action.go @@ -7,7 +7,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_saml_client.go b/provider/resource_keycloak_saml_client.go index 4dcdcb56..de2cab85 100644 --- a/provider/resource_keycloak_saml_client.go +++ b/provider/resource_keycloak_saml_client.go @@ -10,7 +10,6 @@ import ( "github.com/hashicorp/terraform-plugin-log/tflog" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "reflect" "strings" diff --git a/provider/resource_keycloak_saml_client_test.go b/provider/resource_keycloak_saml_client_test.go index 6d7eeab8..46947df9 100644 --- a/provider/resource_keycloak_saml_client_test.go +++ b/provider/resource_keycloak_saml_client_test.go @@ -3,7 +3,6 @@ package provider import ( "fmt" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "regexp" "strings" "testing" diff --git a/provider/resource_keycloak_saml_identity_provider_test.go b/provider/resource_keycloak_saml_identity_provider_test.go index 784b843b..99d23b9f 100644 --- a/provider/resource_keycloak_saml_identity_provider_test.go +++ b/provider/resource_keycloak_saml_identity_provider_test.go @@ -3,7 +3,6 @@ package provider import ( "fmt" "github.com/keycloak/terraform-provider-keycloak/keycloak/types" - "regexp" "strconv" "testing" diff --git a/provider/resource_keycloak_saml_script_protocol_mapper_test.go b/provider/resource_keycloak_saml_script_protocol_mapper_test.go index c6a11553..6406f2c8 100644 --- a/provider/resource_keycloak_saml_script_protocol_mapper_test.go +++ b/provider/resource_keycloak_saml_script_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "testing" ) diff --git a/provider/resource_keycloak_saml_user_attribute_protocol_mapper_test.go b/provider/resource_keycloak_saml_user_attribute_protocol_mapper_test.go index 490adee0..82f523f8 100644 --- a/provider/resource_keycloak_saml_user_attribute_protocol_mapper_test.go +++ b/provider/resource_keycloak_saml_user_attribute_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_saml_user_property_protocol_mapper_test.go b/provider/resource_keycloak_saml_user_property_protocol_mapper_test.go index 8130186c..2d871e09 100644 --- a/provider/resource_keycloak_saml_user_property_protocol_mapper_test.go +++ b/provider/resource_keycloak_saml_user_property_protocol_mapper_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_user_groups.go b/provider/resource_keycloak_user_groups.go index da4564ea..cf1e1017 100644 --- a/provider/resource_keycloak_user_groups.go +++ b/provider/resource_keycloak_user_groups.go @@ -7,7 +7,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_user_groups_test.go b/provider/resource_keycloak_user_groups_test.go index 2c062adf..ff5a11f4 100644 --- a/provider/resource_keycloak_user_groups_test.go +++ b/provider/resource_keycloak_user_groups_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_user_roles.go b/provider/resource_keycloak_user_roles.go index 6c860405..dccc0a5b 100644 --- a/provider/resource_keycloak_user_roles.go +++ b/provider/resource_keycloak_user_roles.go @@ -7,7 +7,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "strings" ) diff --git a/provider/resource_keycloak_user_roles_test.go b/provider/resource_keycloak_user_roles_test.go index 3e50a4df..889db3fc 100644 --- a/provider/resource_keycloak_user_roles_test.go +++ b/provider/resource_keycloak_user_roles_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "regexp" "testing" ) diff --git a/provider/resource_keycloak_user_test.go b/provider/resource_keycloak_user_test.go index c34df24a..04d51143 100644 --- a/provider/resource_keycloak_user_test.go +++ b/provider/resource_keycloak_user_test.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/keycloak/terraform-provider-keycloak/keycloak" - "io/ioutil" "net/http" "net/url"