compose-go/loader/tests
Nicolas De Loof 340f407a0e
transform: reject lists of non-strings instead of panicking
Putting depends_on, networks, models or additional_contexts in canonical form
crashed on a list entry that is not a string. The error now names the
attribute and the offending type.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-10-23 14:36:28 +02:00
..
annotations_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
attach_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
blkio_config_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
build_extra_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
build_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
cap_add_drop_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
cgroup_parent_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
cgroup_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
command_test.go types: reject a non-string command entry instead of panicking 2026-10-23 14:36:27 +02:00
completeness_test.go test: lock healthcheck.disable, services and version in the conformance tests 2026-10-23 10:03:58 +02:00
configs_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
container_name_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
cpu_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
credential_spec_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
depends_on_test.go transform: reject lists of non-strings instead of panicking 2026-10-23 14:36:28 +02:00
deploy_pids_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
deploy_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
develop_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
device_cgroup_rules_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
devices_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
dns_opt_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
dns_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
domainname_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
entrypoint_test.go types: reject a non-string command entry instead of panicking 2026-10-23 14:36:27 +02:00
env_file_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
environment_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
expose_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
extensions_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
external_links_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
extra_hosts_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
gpus_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
group_add_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
gw_priority_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
healthcheck_test.go types: reject a non-string healthcheck test entry instead of panicking 2026-10-23 14:36:28 +02:00
helpers_test.go types: reject a non-string command entry instead of panicking 2026-10-23 14:36:27 +02:00
hostname_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
image_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
init_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
interface_name_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
ipc_uts_pid_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
isolation_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
labels_test.go override: merge KEY=VALUE lists by key so the last entry wins 2026-09-29 18:37:20 +02:00
link_local_ips_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
links_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
logging_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
mac_address_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
mem_limit_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
mem_reservation_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
mem_swappiness_test.go validation: restrict mem_swappiness to a percentage 2026-10-22 19:24:52 +02:00
memswap_limit_test.go schema: type mem_limit, memswap_limit and shm_size as integers 2026-10-22 19:24:52 +02:00
models_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
network_driver_opts_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
network_internal_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
network_ipam_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
network_mode_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
networks_test.go transform: reject lists of non-strings instead of panicking 2026-10-23 14:36:28 +02:00
oom_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
pids_limit_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
platform_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
ports_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
privileged_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
profiles_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
provider_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
pull_policy_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
read_only_test.go tests: lock read_only and shm_size of the container specification 2026-10-22 17:38:25 +02:00
restart_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
runtime_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
scale_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
secrets_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
security_opt_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
service_hooks_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
services_test.go test: lock healthcheck.disable, services and version in the conformance tests 2026-10-23 10:03:58 +02:00
shm_size_test.go validation: reject negative memory limits, reservations and shared memory sizes 2026-10-23 10:29:22 +02:00
stdin_tty_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
stop_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
storage_opt_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
sysctls_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
template_driver_test.go loader/tests: link every attribute file to the spec section it locks 2026-09-02 18:41:28 +02:00
tmpfs_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
triggers_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
ulimits_test.go types: reject a non-numeric ulimit limit instead of panicking 2026-10-23 14:36:28 +02:00
umask_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
use_api_socket_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
use_service_name_alias_test.go types: add ServiceNameAliasEnabled helper on ServiceNetworkConfig 2026-10-15 06:49:41 +02:00
user_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
userns_mode_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
version_test.go test: lock healthcheck.disable, services and version in the conformance tests 2026-10-23 10:03:58 +02:00
volume_bind_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
volumes_from_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
volumes_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
working_dir_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00