From a60f7e395ee0fb6a15de7fc3b17501b3270dde1e Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 28 Jun 2019 16:34:38 -0700 Subject: [PATCH] add a test to make sure we don't error becaue of spot price auto product, yet --- builder/amazon/common/run_config_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/amazon/common/run_config_test.go b/builder/amazon/common/run_config_test.go index 019cc369c..6793841ff 100644 --- a/builder/amazon/common/run_config_test.go +++ b/builder/amazon/common/run_config_test.go @@ -129,6 +129,12 @@ func TestRunConfigPrepare_SpotAuto(t *testing.T) { if err := c.Prepare(nil); len(err) != 0 { t.Fatalf("err: %s", err) } + + // Shouldn't error (YET) even though SpotPriceAutoProduct is deprecated + c.SpotPriceAutoProduct = "Linux/Unix" + if err := c.Prepare(nil); len(err) != 0 { + t.Fatalf("err: %s", err) + } } func TestRunConfigPrepare_SSHPort(t *testing.T) {