From b9dd25a94d95daf6ba700664ef0cfded34a9af37 Mon Sep 17 00:00:00 2001 From: Xander Flood Date: Fri, 8 Nov 2019 23:29:23 -0500 Subject: [PATCH] try this again? --- docker/resource_docker_secret_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/resource_docker_secret_test.go b/docker/resource_docker_secret_test.go index b4fbe7b1..5ee2a378 100644 --- a/docker/resource_docker_secret_test.go +++ b/docker/resource_docker_secret_test.go @@ -101,10 +101,10 @@ func TestAccDockerSecret_labels(t *testing.T) { 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"), - resource.TestCheckResourceAttr("docker_secret.foo", "labels.1.value", "bar"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.label", hashStringLabel("test1")), "test1"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.value", hashStringLabel("test1")), "foo"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.label", hashStringLabel("test2")), "test1"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.value", hashStringLabel("test2")), "bar"), ), }, },