mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-21 22:22:58 -05:00
use %v not %s
This commit is contained in:
parent
2ddb6c9308
commit
1aa89c5e21
1 changed files with 4 additions and 4 deletions
|
|
@ -96,10 +96,10 @@ func TestAccDockerSecret_labels(t *testing.T) {
|
|||
}
|
||||
`,
|
||||
Check: resource.ComposeTestCheckFunc(
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.label", hashStringLabel("test1")), "test1"),
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.value", hashStringLabel("test1")), "foo"),
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.label", hashStringLabel("test2")), "test1"),
|
||||
resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.value", hashStringLabel("test2")), "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