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

Fix value conversion error when using unknown variable values #365

Conversation

patrickcping
Copy link
Contributor

@patrickcping patrickcping commented Aug 21, 2024

Changes

BUG FIX resource/davinci_variable: Fix "Value Conversion Error" when defining variables with unknown values.

Testing Shell Command

TF_ACC=1 go test -v -timeout 1200s -run ^TestAccResourceVariable_ github.com/pingidentity/terraform-provider-davinci/internal/service/davinci 

Testing Results

Expand Results
=== RUN   TestAccResourceVariable_RemovalDrift
=== PAUSE TestAccResourceVariable_RemovalDrift
=== RUN   TestAccResourceVariable_Full_CompanyContext_Clean
=== PAUSE TestAccResourceVariable_Full_CompanyContext_Clean
=== RUN   TestAccResourceVariable_Full_CompanyContext_WithBootstrap
=== PAUSE TestAccResourceVariable_Full_CompanyContext_WithBootstrap
=== RUN   TestAccResourceVariable_Full_FlowInstanceContext_Clean
=== PAUSE TestAccResourceVariable_Full_FlowInstanceContext_Clean
=== RUN   TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
=== PAUSE TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
=== RUN   TestAccResourceVariable_Full_UserContext_Clean
=== PAUSE TestAccResourceVariable_Full_UserContext_Clean
=== RUN   TestAccResourceVariable_Full_UserContext_WithBootstrap
=== PAUSE TestAccResourceVariable_Full_UserContext_WithBootstrap
=== RUN   TestAccResourceVariable_ChangeDataType
=== PAUSE TestAccResourceVariable_ChangeDataType
=== RUN   TestAccResourceVariable_Values_CompanyContext
=== PAUSE TestAccResourceVariable_Values_CompanyContext
=== RUN   TestAccResourceVariable_Values_FlowInstanceContext
=== PAUSE TestAccResourceVariable_Values_FlowInstanceContext
=== RUN   TestAccResourceVariable_Values_FlowContext
=== PAUSE TestAccResourceVariable_Values_FlowContext
=== RUN   TestAccResourceVariable_UnknownValue
=== PAUSE TestAccResourceVariable_UnknownValue
=== RUN   TestAccResourceVariable_BadParameters
=== PAUSE TestAccResourceVariable_BadParameters
=== CONT  TestAccResourceVariable_RemovalDrift
=== CONT  TestAccResourceVariable_ChangeDataType
=== CONT  TestAccResourceVariable_Values_FlowContext
=== CONT  TestAccResourceVariable_BadParameters
=== CONT  TestAccResourceVariable_UnknownValue
=== CONT  TestAccResourceVariable_Values_FlowInstanceContext
=== CONT  TestAccResourceVariable_Values_CompanyContext
=== CONT  TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
=== CONT  TestAccResourceVariable_Full_CompanyContext_WithBootstrap
=== CONT  TestAccResourceVariable_Full_CompanyContext_Clean
=== CONT  TestAccResourceVariable_Full_UserContext_WithBootstrap
=== CONT  TestAccResourceVariable_Full_UserContext_Clean
=== CONT  TestAccResourceVariable_Full_FlowInstanceContext_Clean
=== NAME  TestAccResourceVariable_RemovalDrift
    resource_variable_test.go:33: Skipping step 3/4 due to SkipFunc
    resource_variable_test.go:33: Skipping step 4/4 due to SkipFunc
--- PASS: TestAccResourceVariable_RemovalDrift (129.84s)
--- PASS: TestAccResourceVariable_BadParameters (135.44s)
--- PASS: TestAccResourceVariable_ChangeDataType (219.55s)
=== NAME  TestAccResourceVariable_Full_UserContext_Clean
    resource_variable_test.go:392: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
    resource_variable_test.go:288: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_UserContext_WithBootstrap
    resource_variable_test.go:392: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_CompanyContext_WithBootstrap
    resource_variable_test.go:164: Skipping step 6/12 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_FlowInstanceContext_Clean
    resource_variable_test.go:288: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_CompanyContext_Clean
    resource_variable_test.go:164: Skipping step 6/12 due to SkipFunc
--- PASS: TestAccResourceVariable_UnknownValue (314.95s)
--- PASS: TestAccResourceVariable_Full_FlowInstanceContext_Clean (361.64s)
--- PASS: TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap (366.94s)
--- PASS: TestAccResourceVariable_Full_UserContext_Clean (367.39s)
--- PASS: TestAccResourceVariable_Full_UserContext_WithBootstrap (369.29s)
--- PASS: TestAccResourceVariable_Full_CompanyContext_Clean (435.50s)
--- PASS: TestAccResourceVariable_Full_CompanyContext_WithBootstrap (436.38s)
--- PASS: TestAccResourceVariable_Values_CompanyContext (480.72s)
--- PASS: TestAccResourceVariable_Values_FlowInstanceContext (482.03s)
--- PASS: TestAccResourceVariable_Values_FlowContext (488.49s)
PASS
ok      github.com/pingidentity/terraform-provider-davinci/internal/service/davinci     489.415s

@patrickcping patrickcping marked this pull request as ready for review August 21, 2024 15:59
@patrickcping patrickcping requested a review from a team as a code owner August 21, 2024 15:59
@patrickcping patrickcping merged commit 1740585 into main Aug 21, 2024
13 checks passed
@patrickcping patrickcping deleted the 364-value-conversion-error-received-unknown-value-however-the-target-type-cannot-handle-unknown-error-when-using-davinci_variable-value-field branch August 21, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
1 participant