ls_test.go 453 B

12345678910111213141516171819202122232425
  1. package context
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/require"
  5. "github.com/stretchr/testify/suite"
  6. "gotest.tools/v3/golden"
  7. "github.com/docker/api/tests/framework"
  8. )
  9. type ContextSuite struct {
  10. framework.CliSuite
  11. }
  12. func (sut *ContextSuite) TestLs() {
  13. err := runList(sut.Context())
  14. require.Nil(sut.T(), err)
  15. golden.Assert(sut.T(), sut.GetStdOut(), "ls-out.golden")
  16. }
  17. func TestPs(t *testing.T) {
  18. suite.Run(t, new(ContextSuite))
  19. }