Skip to content

Commit 5e704c6

Browse files
edwardrfedw-defang
andauthored
Fix validation test, update expected warnings (#621)
Co-authored-by: Edward J <[email protected]>
1 parent d25597a commit 5e704c6

File tree

15 files changed

+34
-34
lines changed

15 files changed

+34
-34
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
! "yes" for boolean is not supported by YAML 1.2, please use `true`
22
! service "echo": ingress port without healthcheck defaults to GET / HTTP/1.1
33
! service "echo": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
4-
! service "echo": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
4+
! service "echo": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
! service "service1": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "service1": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "service1": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! service "failing": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "failing": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "failing": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "ok": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
4-
! service "ok": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
4+
! service "ok": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
55
* Compressing build context for failing at ./app
66
* Compressing build context for ok at .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
! service "emptyenv": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "emptyenv": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "emptyenv": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
* Compressing build context for emptyenv at .
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
! service "Mistral": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "Mistral": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "Mistral": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "bad-service": ingress port without healthcheck defaults to GET / HTTP/1.1
44
! service "bad-service": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
5-
! service "bad-service": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
5+
! service "bad-service": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
66
! service "env-in-config": environment variable "CONFIG1" needs service name fix-up, but is overridden by config, which will not be fixed up.
77
! service "env-in-config": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
8-
! service "env-in-config": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
8+
! service "env-in-config": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
99
! service "ui": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
10-
! service "ui": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
10+
! service "ui": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
1111
! service "ui": service names were fixed up in environment variable "API_URL": "http://mock-mistral:8000"
1212
! service "use-bad-service": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
13-
! service "use-bad-service": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
13+
! service "use-bad-service": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
1414
! service "use-bad-service": service names in the environment variable "DB_URL" were not fixed up, only services with port mode set to host will be fixed up.
1515
! service name "Mistral" was normalized to "mistral"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
! service "cmd-shell": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "cmd-shell": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "cmd-shell": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "curl": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
4-
! service "curl": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
4+
! service "curl": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
55
! service "flask1": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
6-
! service "flask1": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
6+
! service "flask1": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
77
! service "flask2": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
8-
! service "flask2": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
8+
! service "flask2": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
99
! service "none": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
10-
! service "none": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
10+
! service "none": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
1111
! service "wget": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
12-
! service "wget": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
12+
! service "wget": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
! service "service1": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "service1": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "service1": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "service1": network "invalid-network-name" is not defined in the top-level networks section
44
! service "service2": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
5-
! service "service2": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
5+
! service "service2": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
66
! service "service3": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
7-
! service "service3": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
7+
! service "service3": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
88
! service "service4": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
9-
! service "service4": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
9+
! service "service4": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
1010
! service "service4": network "private" is not defined in the top-level networks section
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
! service "intel2": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "intel2": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "intel2": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
! service "x": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "x": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "x": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "y": managed Postgres service should use a postgres image
44
! service "y": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
5-
! service "y": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
5+
! service "y": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
66
! service "z": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
7-
! service "z": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
7+
! service "z": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
88
! service "z": stateful service will lose data on restart; use a managed service instead
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
! service "always": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
2-
! service "always": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
2+
! service "always": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
33
! service "defangonly": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
4-
! service "defangonly": missing memory reservation; specify deploy.resources.reservations.memory to avoid out-of-memory errors
4+
! service "defangonly": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors

0 commit comments

Comments
 (0)