Skip to content

Commit b9997d0

Browse files
committed
update accept test framework
1 parent f11dd56 commit b9997d0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ unit:
1717

1818
accept: install
1919
# start vbox machine for ssh communicator testing
20+
# export PKR_VAR_password=
2021
@PACKER_ACC=1 go test -v ./main_test.go -timeout=1m
2122

2223
install-packer-sdc:

fixtures/test.pkr.hcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
packer {
2-
required_version = "~> 1.10.0"
2+
required_version = "~> 1.13.0"
33

44
required_plugins {
55
docker = {
@@ -13,12 +13,14 @@ packer {
1313
}
1414
}
1515

16+
variable "password" {}
17+
1618
# use local device with null provider
1719
source "null" "vbox" {
1820
ssh_host = "127.0.0.1"
1921
ssh_port = "10022"
2022
ssh_username = "vagrant"
21-
ssh_agent_auth = true
23+
ssh_password = var.password
2224
}
2325

2426
# use ubuntu:latest docker image with docker provider

0 commit comments

Comments
 (0)