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

Add company variable type = secret tests #358

Merged
merged 5 commits into from
Aug 19, 2024

Conversation

patrickcping
Copy link
Contributor

@patrickcping patrickcping commented Aug 19, 2024

  • resource/davinci_variable: Fix "Provider produced inconsistent result after apply" when defining a variable of type = secret.

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_BadParameters
=== PAUSE TestAccResourceVariable_BadParameters
=== CONT  TestAccResourceVariable_RemovalDrift
=== CONT  TestAccResourceVariable_Full_UserContext_WithBootstrap
=== CONT  TestAccResourceVariable_Values_FlowContext
=== CONT  TestAccResourceVariable_Values_CompanyContext
=== CONT  TestAccResourceVariable_ChangeDataType
=== CONT  TestAccResourceVariable_Full_FlowInstanceContext_Clean
=== CONT  TestAccResourceVariable_Full_CompanyContext_WithBootstrap
=== CONT  TestAccResourceVariable_Full_CompanyContext_Clean
=== CONT  TestAccResourceVariable_Full_UserContext_Clean
=== CONT  TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
=== CONT  TestAccResourceVariable_Values_FlowInstanceContext
=== CONT  TestAccResourceVariable_BadParameters
=== 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 (152.80s)
--- PASS: TestAccResourceVariable_BadParameters (248.57s)
--- PASS: TestAccResourceVariable_ChangeDataType (260.08s)
=== NAME  TestAccResourceVariable_Full_UserContext_WithBootstrap
    resource_variable_test.go:392: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_FlowInstanceContext_Clean
    resource_variable_test.go:288: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_UserContext_Clean
    resource_variable_test.go:392: Skipping step 6/8 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_CompanyContext_Clean
    resource_variable_test.go:164: Skipping step 6/12 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_CompanyContext_WithBootstrap
    resource_variable_test.go:164: Skipping step 6/12 due to SkipFunc
=== NAME  TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap
    resource_variable_test.go:288: Skipping step 6/8 due to SkipFunc
--- PASS: TestAccResourceVariable_Full_UserContext_Clean (435.89s)
--- PASS: TestAccResourceVariable_Full_UserContext_WithBootstrap (438.40s)
--- PASS: TestAccResourceVariable_Full_FlowInstanceContext_Clean (438.61s)
--- PASS: TestAccResourceVariable_Full_FlowInstanceContext_WithBootstrap (443.20s)
--- PASS: TestAccResourceVariable_Full_CompanyContext_Clean (510.35s)
--- PASS: TestAccResourceVariable_Full_CompanyContext_WithBootstrap (517.97s)
--- PASS: TestAccResourceVariable_Values_FlowContext (562.91s)
--- PASS: TestAccResourceVariable_Values_FlowInstanceContext (565.23s)
--- PASS: TestAccResourceVariable_Values_CompanyContext (576.04s)
PASS
ok      github.com/pingidentity/terraform-provider-davinci/internal/service/davinci     578.296s

@patrickcping patrickcping added the type/bug Something isn't working label Aug 19, 2024
@patrickcping patrickcping added this to the v0.4.1 milestone Aug 19, 2024
@patrickcping patrickcping self-assigned this Aug 19, 2024
@patrickcping patrickcping marked this pull request as ready for review August 19, 2024 10:24
@patrickcping patrickcping requested review from a team and samir-gandhi as code owners August 19, 2024 10:24
@patrickcping patrickcping merged commit 9752057 into main Aug 19, 2024
13 checks passed
@patrickcping patrickcping deleted the add-company-variable-secret-tests-202408 branch August 19, 2024 10:33
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
Development

Successfully merging this pull request may close these issues.

"Provider produced inconsistent result after apply" when using davinci_variable of type = secret
1 participant