try to reproduce #8730 in tests

This commit is contained in:
Adrien Delorme 2020-02-14 11:54:10 +01:00
parent 483c8ec7d0
commit 4b10c5a87c
3 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@ build {
provisioner "shell" {
name = "provisioner that does something"
not_squashed = var.foo
string = "string"
string = "string${var.proxmox_username}"
int = "${41 + 1}"
int64 = "${42 + 1}"
bool = "true"

View File

@ -10,6 +10,10 @@ variable "image_id" {
default = "image-id-default"
}
variable "proxmox_username" {
type = string
}
variable "port" {
type = number
default = 42

View File

@ -25,6 +25,7 @@ func TestParser_complete(t *testing.T) {
"image_id": &Variable{},
"port": &Variable{},
"availability_zone_names": &Variable{},
"proxmox_username": &Variable{},
},
LocalVariables: Variables{
"feefoo": &Variable{},