try to reproduce #8730 in tests
This commit is contained in:
parent
483c8ec7d0
commit
4b10c5a87c
|
@ -8,7 +8,7 @@ build {
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
name = "provisioner that does something"
|
name = "provisioner that does something"
|
||||||
not_squashed = var.foo
|
not_squashed = var.foo
|
||||||
string = "string"
|
string = "string${var.proxmox_username}"
|
||||||
int = "${41 + 1}"
|
int = "${41 + 1}"
|
||||||
int64 = "${42 + 1}"
|
int64 = "${42 + 1}"
|
||||||
bool = "true"
|
bool = "true"
|
||||||
|
|
|
@ -10,6 +10,10 @@ variable "image_id" {
|
||||||
default = "image-id-default"
|
default = "image-id-default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "proxmox_username" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
variable "port" {
|
variable "port" {
|
||||||
type = number
|
type = number
|
||||||
default = 42
|
default = 42
|
||||||
|
|
|
@ -25,6 +25,7 @@ func TestParser_complete(t *testing.T) {
|
||||||
"image_id": &Variable{},
|
"image_id": &Variable{},
|
||||||
"port": &Variable{},
|
"port": &Variable{},
|
||||||
"availability_zone_names": &Variable{},
|
"availability_zone_names": &Variable{},
|
||||||
|
"proxmox_username": &Variable{},
|
||||||
},
|
},
|
||||||
LocalVariables: Variables{
|
LocalVariables: Variables{
|
||||||
"feefoo": &Variable{},
|
"feefoo": &Variable{},
|
||||||
|
|
Loading…
Reference in New Issue