From d9041bda0cabce849818d8fc214e467e32077a79 Mon Sep 17 00:00:00 2001 From: Craig Barr Date: Wed, 5 Apr 2017 11:06:59 +1000 Subject: [PATCH] Improved the test for special character so that it doesn't get halted by less than 3 character check --- builder/amazon/common/ami_config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/ami_config_test.go b/builder/amazon/common/ami_config_test.go index efc3584cc..beccb98a2 100644 --- a/builder/amazon/common/ami_config_test.go +++ b/builder/amazon/common/ami_config_test.go @@ -92,7 +92,7 @@ func TestAMINameValidation(t *testing.T) { t.Fatal("shouldn't be able to have an ami name with great than 128 characters") } - c.AMIName = "+" + c.AMIName = "+aaa" if err := c.Prepare(nil); err == nil { t.Fatal("shouldn't be able to have an ami name with invalid characters") }