Skip to content

test: refactor compose_pull_linux_test.go to use nerdtest/tigron#4796

Open
juannio wants to merge 1 commit intocontainerd:mainfrom
juannio:issues-4613-migrate-compose-pull-tests
Open

test: refactor compose_pull_linux_test.go to use nerdtest/tigron#4796
juannio wants to merge 1 commit intocontainerd:mainfrom
juannio:issues-4613-migrate-compose-pull-tests

Conversation

@juannio
Copy link

@juannio juannio commented Mar 16, 2026

Update tests to use nerdtest.Setup and the Tigron testing framework as per issue #4613

@juannio juannio force-pushed the issues-4613-migrate-compose-pull-tests branch from eed1666 to 61fcc6c Compare March 16, 2026 23:57
Copy link
Member

@haytok haytok left a comment

Choose a reason for hiding this comment

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

Thanks for creating this PR! Could you check when you have time?

comp := testutil.NewComposeDir(t, dockerComposeYAML)
defer comp.CleanUp()
projectName := comp.ProjectName()
t.Logf("projectName=%q", projectName)
Copy link
Member

Choose a reason for hiding this comment

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

Please display projectName in the log.

Copy link
Author

Choose a reason for hiding this comment

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

FIxed, thanks!

Comment on lines +77 to +81
testCase.Cleanup = func(data test.Data, helpers test.Helpers) {
if data.Labels().Get("composeYAML") != "" {
helpers.Anyhow("rmi", data.Labels().Get("mariaDBImage"))
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Which part of the original implementation does this process correspond to?

Copy link
Author

Choose a reason for hiding this comment

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

Good catch, this wasn't in the original implementation. I added it based on patterns I saw in other migrated tests, but since this is a straightforward migration I'll keep it faithful to the original. Removed, thanks!

Signed-off-by: juannio <juaniorosas.99@gmail.com>
@juannio juannio force-pushed the issues-4613-migrate-compose-pull-tests branch from 61fcc6c to 667c894 Compare March 17, 2026 19:05
@juannio juannio requested a review from haytok March 17, 2026 19:20
Copy link
Member

@haytok haytok left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@haytok haytok added this to the v2.3.0 milestone Mar 18, 2026
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