This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Commit 62e46c2
committed
Add "host-gateway" to tests for extra_hosts / --add-host
67ebcd6dcf82c00f133b886a9a343b67124e58ec added an exception for
the "host-gateway" magic value to the validation rules, but didn't
add thise value to any of the tests.
This patch adds the magic value to tests, to verify the validation
is skipped for this magic value.
Note that validation on the client side is "optional" and mostly
done to provide a more user-friendly error message for regular
values (IP-addresses).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f88ae74135fc46227d3f62e4308a79a92a76bd76)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: fd9eedce3c1e06f3cbdd0f10dece3ffd73aefc4a
Component: cli1 parent 3199cd1 commit 62e46c2
5 files changed
Lines changed: 17 additions & 3 deletions
File tree
- components/cli
- cli
- command/service
- compose/loader
- opts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| 367 | + | |
| 368 | + | |
365 | 369 | | |
366 | 370 | | |
367 | 371 | | |
368 | | - | |
369 | | - | |
| 372 | + | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
626 | 627 | | |
627 | 628 | | |
628 | 629 | | |
| 630 | + | |
629 | 631 | | |
630 | 632 | | |
631 | 633 | | |
| |||
1135 | 1137 | | |
1136 | 1138 | | |
1137 | 1139 | | |
1138 | | - | |
| 1140 | + | |
| 1141 | + | |
1139 | 1142 | | |
1140 | 1143 | | |
1141 | 1144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
| 1279 | + | |
1279 | 1280 | | |
1280 | 1281 | | |
1281 | 1282 | | |
1282 | 1283 | | |
1283 | 1284 | | |
| 1285 | + | |
1284 | 1286 | | |
1285 | 1287 | | |
1286 | 1288 | | |
| |||
1298 | 1300 | | |
1299 | 1301 | | |
1300 | 1302 | | |
| 1303 | + | |
1301 | 1304 | | |
1302 | 1305 | | |
1303 | 1306 | | |
1304 | 1307 | | |
1305 | 1308 | | |
1306 | 1309 | | |
1307 | 1310 | | |
| 1311 | + | |
1308 | 1312 | | |
1309 | 1313 | | |
1310 | 1314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments