-
Notifications
You must be signed in to change notification settings - Fork 574
Closed
Labels
Description
Describe the bug
In my custom plugin, I'm trying to use Resource.Mode field and field data is missing however through markdown table all data presented
How can we reproduce it?
Add simple test to internal/terraform/resource_test.go
func TestPluginSdkConversion(t *testing.T) {
assert := assert.New(t)
resource := Resource{
Type: "private_key",
Name: "baz",
ProviderName: "tls",
ProviderSource: "hashicorp/tls",
Mode: "managed",
Version: types.String("latest"),
}
sdkResource := resources{&resource}.convert()[0]
assert.Equal(resource.Mode, sdkResource.Mode)
}
Environment information
- terraform-docs version "terraform-docs version v0.13.0 linux/amd64 BuildDate: 2021-05-02T22:35:52+03:00"