Commit 7aa3be4
committed
test: migrate stable compose run tests to nerdtest framework
Migrates the non-flaky compose run tests to nerdtest.Setup():
- TestComposeRunWithEnv
- TestComposeRunWithUser
- TestComposeRunWithArgs
- TestComposeRunWithEntrypoint
- TestComposeRunWithLabel (uses nerdtest.InspectContainer)
- TestComposeRunWithVolume (uses nerdtest.InspectContainer)
Replaces the unbuffer(1) pty wrapper with cmd.WithPseudoTTY(), and
uses expect.ExitCodeSuccess instead of literal 0 for exit codes.
TestComposeRunWithServicePorts, TestComposeRunWithPublish, and
TestComposePushAndPullWithCosignVerify are intentionally left on the
legacy framework for now (flaky / complex).1 parent 3b09fa5 commit 7aa3be4
1 file changed
Lines changed: 204 additions & 109 deletions
0 commit comments