compose-go/loader/testdata
Nicolas De Loof 97477a39fe loader: carry deploy.restart_policy into restart and let it win over restart
restart and deploy.restart_policy are two spellings of one policy:
condition is its name and max_attempts its retry count. Each may complete
the other, and normalization writes the outcome in restart, so a
restart_policy made of a delay alone (docker/compose#14383) leaves restart
as it is instead of clobbering it.

Where both say something different, deploy.restart_policy wins, as the spec
has it and as Docker Compose applies it today: its policy is written into
restart (any is always, none is no) and a warning names the service and
both values. Nothing is rejected. A retry count only has a meaning for
on-failure and a max_attempts of zero is no limit, as for on-failure:0.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-11-16 17:12:57 +01:00
..
combined let resourceloader compute relative working dir 2024-03-01 15:01:42 +01:00
extends resolveRelativePaths can run with non-canonical model 2024-07-22 17:02:11 +02:00
golden loader: carry deploy.restart_policy into restart and let it win over restart 2026-11-16 17:12:57 +01:00
include mange properly include.project_directory when including files 2024-04-02 16:26:33 +02:00
remote introduce ResourceResolver to accept remote resources 2023-08-07 08:29:23 +02:00
subdir introduce include to load sub-compose projects as dependencies 2023-07-04 12:10:58 +02:00
compose-depends-on-cycle.yaml add depends_on cycle detection during validation phase 2024-01-29 13:13:40 +01:00
compose-depends-on-profile-no-cycle.yaml add depends_on cycle detection during validation phase 2024-01-29 13:13:40 +01:00
compose-depends-on-self.yaml detect self-reference and better report depends_on cycles 2024-04-19 16:23:54 +02:00
compose-include-cycle.yaml read config file content if missing 2023-12-21 22:43:56 +01:00
compose-include.yaml Allow importing compose file to override resource definition 2025-11-25 17:15:06 +01:00
compose-test-extends-with-context-url-imported.yaml fix build context path to allow url to a git repository 2023-01-17 01:46:27 -03:00
compose-test-extends-with-context-url.yaml Add project name to fix loader, JSON marshal tests 2023-03-04 13:40:48 -05:00
compose-test-extends.yaml Add project name to fix loader, JSON marshal tests 2023-03-04 13:40:48 -05:00
compose-test-with-version.yaml Add project name to fix loader, JSON marshal tests 2023-03-04 13:40:48 -05:00
Dockerfile Add a test with a 2.x versionned compose file to check that we can parse file with version specified 2020-08-20 15:50:48 +02:00
empty.yaml test case checking we manage empty files 2023-11-08 10:50:05 +01:00
include-diamond-base.yaml loader: skip re-merge of identical resources imported through diamond includes 2026-08-12 11:47:32 +02:00
include-diamond-left.yaml loader: skip re-merge of identical resources imported through diamond includes 2026-08-12 11:47:32 +02:00
include-diamond-right.yaml loader: skip re-merge of identical resources imported through diamond includes 2026-08-12 11:47:32 +02:00