mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-23 16:19:42 -05:00
try this again?
This commit is contained in:
parent
7e84878d39
commit
b9dd25a94d
1 changed files with 4 additions and 4 deletions
|
|
@ -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"),
|
||||
),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue