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

Getting errors when running tests #983

Open
popovicmarija20 opened this issue Jul 25, 2024 · 0 comments
Open

Getting errors when running tests #983

popovicmarija20 opened this issue Jul 25, 2024 · 0 comments

Comments

@popovicmarija20
Copy link

Description

When running the tests on master branch as @mrparkers specified in the README

KEYCLOAK_CLIENT_ID=terraform \
KEYCLOAK_CLIENT_SECRET=884e0f95-0f42-4a63-9b1f-94274655669e \
KEYCLOAK_CLIENT_TIMEOUT=5 \
KEYCLOAK_REALM=master \
KEYCLOAK_URL="http://localhost:8080" \
make testacc

I'm getting the following erros:

resource_keycloak_custom_user_federation_test.go:87: Step 1/2 error: Error running apply: exit status 1
        
        Error: custom user federation provider with id custom is not installed on the server
        
          with keycloak_custom_user_federation.custom,
          on terraform_plugin_test.tf line 6, in resource "keycloak_custom_user_federation" "custom":
           6: resource "keycloak_custom_user_federation" "custom" {

FAIL: TestAccKeycloakCustomUserFederation_createAfterManualDestroy

and this
`
resource_keycloak_realm_keystore_java_kyestore_test.go:123: Step 1/2 error: Error running pre-apply refresh: exit status 1

    Error: Missing required argument
    
      on terraform_plugin_test.tf line 6, in resource "keycloak_realm_keystore_java_keystore" "realm_java_keystore":
       6: resource "keycloak_realm_keystore_java_keystore" "realm_java_keystore" {
    
    The argument "key_alias" is required, but no definition was found.
    
    Error: Missing required argument
    
      on terraform_plugin_test.tf line 6, in resource "keycloak_realm_keystore_java_keystore" "realm_java_keystore":
       6: resource "keycloak_realm_keystore_java_keystore" "realm_java_keystore" {
    
    The argument "key_password" is required, but no definition was found.
    
    Error: Unsupported argument
    
      on terraform_plugin_test.tf line 12, in resource "keycloak_realm_keystore_java_keystore" "realm_java_keystore":
      12:     keystore_alias    = "test"

An argument named "keystore_alias" is not expected here.
--- FAIL: TestAccKeycloakRealmKeystoreJava_updateRsaKeystoreGenerated (0.09s)
`

Am i missing some configuration, or the tests are flaky?

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

No branches or pull requests

1 participant