mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-09 22:03:18 -05:00
get a look at all the Attributes
This commit is contained in:
parent
95211f04f7
commit
7e84878d39
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
"context"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/terraform"
|
||||
)
|
||||
|
|
@ -96,6 +97,10 @@ func TestAccDockerSecret_labels(t *testing.T) {
|
|||
}
|
||||
`,
|
||||
Check: resource.ComposeTestCheckFunc(
|
||||
func(s *terraform.State) error {
|
||||
spew.Dump(s.RootModule().Resources["docker_secret.foo"].Primary.Attributes)
|
||||
return nil
|
||||
},
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", "labels.0.label", "test1"),
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", "labels.0.value", "foo"),
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", "labels.1.label", "test1"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue