Skip to content

Provider Config Couldn't Go Through in Tests #395

@zliang-akamai

Description

@zliang-akamai

terraform-plugin-testing version

github.com/hashicorp/terraform-plugin-testing v1.11.0

Terraform Configuration Files

provider "linode" {
    obj_use_temp_keys = true
}

resource "linode_object_storage_object" "temp_keys" {
    bucket     = "mybucket"
    region     = "us-mia"
    key        = "test_temp_keys"
    content    = "foobar"
}

Expected Behavior

We expected to receive value of obj_use_temp_keys in the provider code

Actual Behavior

The boolean value hardly ever reach the provider code, during testing. Normal TF operations like terraform apply are fine.

I am not sure about whether it's our provider's issue or Terraform's or the plugin testing package's.

Here is one of the testing logs (testing the FW migration PR):
https://github.com/linode/terraform-provider-linode/actions/runs/12048502955/job/33593261152

And test case: https://github.com/linode/terraform-provider-linode/blob/dev/linode/obj/resource_test.go#L173

We had to put multiple retries there to make the tests passed, but after migrating to the framework, failing rate is 100% and multiple retries couldn't work around it.

linode/terraform-provider-linode#1678

Is there any further debug suggestion?

Note that both fw and sdkv2 providers were working with the muxing server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions