exec_test.go 496 B

12345678910111213141516171819202122232425
  1. package mobycli
  2. import (
  3. "testing"
  4. . "github.com/onsi/gomega"
  5. "github.com/stretchr/testify/suite"
  6. "github.com/docker/api/tests/framework"
  7. )
  8. type MobyExecSuite struct {
  9. framework.CliSuite
  10. }
  11. func (sut *MobyExecSuite) TestDelegateContextTypeToMoby() {
  12. Expect(mustDelegateToMoby("moby")).To(BeTrue())
  13. Expect(mustDelegateToMoby("aws")).To(BeFalse())
  14. Expect(mustDelegateToMoby("aci")).To(BeFalse())
  15. }
  16. func TestExec(t *testing.T) {
  17. RegisterTestingT(t)
  18. suite.Run(t, new(MobyExecSuite))
  19. }