@@ -15,22 +15,22 @@ func TestValidate(t *testing.T) {
15
15
{
16
16
name : "empty service" ,
17
17
service : & defangv1.Service {},
18
- wantErr : "service name is required" ,
18
+ wantErr : "service ` name:` is required" ,
19
19
},
20
20
{
21
21
name : "no image, no build" ,
22
22
service : & defangv1.Service {Name : "test" },
23
- wantErr : "missing image or build" ,
23
+ wantErr : "each service must have either ` image:` or ` build:` " ,
24
24
},
25
25
{
26
26
name : "empty build" ,
27
27
service : & defangv1.Service {Name : "test" , Build : & defangv1.Build {}},
28
- wantErr : "build. context is required" ,
28
+ wantErr : "build ` context:` is required" ,
29
29
},
30
30
{
31
31
name : "shm size exceeds quota" ,
32
32
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)" ,
34
34
},
35
35
{
36
36
name : "port 0 out of range" ,
@@ -145,7 +145,7 @@ func TestValidate(t *testing.T) {
145
145
Test : []string {"BLAH" },
146
146
},
147
147
},
148
- wantErr : "unsupported healthcheck: [BLAH]" ,
148
+ wantErr : "unsupported ` healthcheck:` [BLAH]" ,
149
149
},
150
150
{
151
151
name : "too many replicas" ,
0 commit comments