Skip to content

Conversation

@Deepam02
Copy link

@Deepam02 Deepam02 commented Dec 8, 2025

Updates tests to use nerdtest.Setup and the Tigron testing framework, #4613.

Sorry for the delay, I was having trouble running the tests locally and have solved it partly now. If this looks good, I can pick up more test files.

@AkihiroSuda
Copy link
Member

CI seems failing

Comment on lines +139 to +145
testCase.Require = &test.Requirement{
Check: func(_ test.Data, _ test.Helpers) (bool, string) {
if !testutil.HyperVSupported() {
return false, "HyperV is not enabled, skipping test"
}
return true, ""
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +79 to +80
// Wait for container to start - using polling
helpers.Ensure("exec", testContainerName, "echo", "ready")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you're using helpers.Ensure instead of nerdtest.EnsureContainerStarted ?

Comment on lines +153 to +158
inspectOutput := helpers.Capture("inspect", containerName, "--format", "json")

var inspect []dockercompat.Container
err := json.Unmarshal([]byte(inspectOutput), &inspect)
assert.NilError(helpers.T(), err, "failed to unmarshal inspect output")
assert.Assert(helpers.T(), len(inspect) > 0, "expected at least one container in inspect output")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use nerdtest.InspectContainer function to get nerdctl inspect <container name> result?

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