Skip to content

migrate tests to attribute-specific test files - #857

Merged
ndeloof merged 1 commit into
compose-spec:mainfrom
ndeloof:attribute_tests
Mar 24, 2026
Merged

ndeloof merged 1 commit into
compose-spec:mainfrom
ndeloof:attribute_tests

Conversation

@ndeloof

@ndeloof ndeloof commented Mar 24, 2026

Copy link
Copy Markdown
Collaborator

This is a follow-up for #855
tests from loader_test.go are migrated into attribute-specific test files

@ndeloof
ndeloof requested a review from glours March 24, 2026 07:25

@glours glours left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, just one nit, I let you decide to address it or not

Comment thread loader/tests/volumes_test.go Outdated
source: \\.\pipe\docker_engine
target: \\.\pipe\docker_engine
image:
subpath: /foo

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Either we don't need it, or we should add an assertion to verify it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder we should detect volume sub-attribute doesn't match the type and report an error - this may be a breaking change for a few users

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
ndeloof enabled auto-merge (rebase) March 24, 2026 13:29
@ndeloof
ndeloof merged commit 9e540fd into compose-spec:main Mar 24, 2026
8 checks passed
@ndeloof
ndeloof deleted the attribute_tests branch March 24, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants