@@ -15,22 +15,22 @@ func TestValidate(t *testing.T) {
1515 {
1616 name : "empty service" ,
1717 service : & defangv1.Service {},
18- wantErr : "service name is required" ,
18+ wantErr : "service ` name:` is required" ,
1919 },
2020 {
2121 name : "no image, no build" ,
2222 service : & defangv1.Service {Name : "test" },
23- wantErr : "missing image or build" ,
23+ wantErr : "each service must have either ` image:` or ` build:` " ,
2424 },
2525 {
2626 name : "empty build" ,
2727 service : & defangv1.Service {Name : "test" , Build : & defangv1.Build {}},
28- wantErr : "build. context is required" ,
28+ wantErr : "build ` context:` is required" ,
2929 },
3030 {
3131 name : "shm size exceeds quota" ,
3232 service : & defangv1.Service {Name : "test" , Build : & defangv1.Build {Context : "." , ShmSize : 30721 }},
33- wantErr : "build. shm_size exceeds quota (max 30720 MiB)" ,
33+ wantErr : "build ` shm_size:` exceeds quota (max 30720 MiB)" ,
3434 },
3535 {
3636 name : "port 0 out of range" ,
@@ -145,7 +145,7 @@ func TestValidate(t *testing.T) {
145145 Test : []string {"BLAH" },
146146 },
147147 },
148- wantErr : "unsupported healthcheck: [BLAH]" ,
148+ wantErr : "unsupported ` healthcheck:` [BLAH]" ,
149149 },
150150 {
151151 name : "too many replicas" ,
0 commit comments