Improved the test for special character so that it doesn't get halted by less than 3 character check

This commit is contained in:
Craig Barr 2017-04-05 11:06:59 +10:00
parent 7911cfa94b
commit d9041bda0c
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}