Skip to content

test: refactor container_list_linux_test.go to use Tigron - #5058

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
papidb:test/refactor-container-list-linux-test-to-tigron
Jul 18, 2026
Merged

AkihiroSuda merged 1 commit into
containerd:mainfrom
papidb:test/refactor-container-list-linux-test-to-tigron

Conversation

@papidb

@papidb papidb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Rewrite tests in container_list_linux_test.go from testutil.NewBase to nerdtest.Setup (Tigron framework). Part of #4613.

// CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES SIZE
// be8d386c991e docker.io/library/busybox:latest "top" 1 second ago Up c1 16.0 KiB (virtual 1.3 MiB)
testCase.Setup = func(data test.Data, helpers test.Helpers) {
setupPsTestContainer(data, helpers, "list", true)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove the extra lines and do formatting correctly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi, @sathiraumesh I've removed the extra lines and formatted well, please re-review.

return fmt.Errorf("expect container size %s, but got %s", expectedSize, size)
image, _ := tab.ReadRow(lines[1], "IMAGE")
assert.Equal(t, image, testutil.CommonImage)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

extra lines and there are in many places

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed

Signed-off-by: Daniel Benjamin <benjamindaniel706@gmail.com>
@papidb
papidb force-pushed the test/refactor-container-list-linux-test-to-tigron branch from aeb2b2e to 33a1850 Compare July 10, 2026 14:45
@papidb
papidb requested a review from sathiraumesh July 10, 2026 15:16
@AkihiroSuda AkihiroSuda added this to the v2.4.0 milestone Jul 12, 2026
@AkihiroSuda
AkihiroSuda requested review from haytok and sathiraumesh and removed request for sathiraumesh July 14, 2026 08:59

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda
AkihiroSuda merged commit b6dc272 into containerd:main Jul 18, 2026
34 of 35 checks passed
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.

3 participants