Added "no spec" and "all spec"s to test.
@@ -8,6 +8,9 @@ func TestParseImageSpec(t *testing.T) {
parseSpec(t, ":tag", true)
parseSpec(t, "image:", true)
parseSpec(t, "image", true)
+ parseSpec(t, string(ImageSpecNone), false)
+ parseSpec(t, string(ImageSpecLatest), false)
+ parseSpec(t, "<invalid spec>", true)
}
func parseSpec(t *testing.T, image string, expectError bool) {
