2020-06-25 10:51:20 +02:00
|
|
|
package mobycli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
. "github.com/onsi/gomega"
|
|
|
|
"github.com/stretchr/testify/suite"
|
2020-06-29 17:57:06 +02:00
|
|
|
|
|
|
|
"github.com/docker/api/tests/framework"
|
2020-06-25 10:51:20 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type MobyExecSuite struct {
|
|
|
|
framework.CliSuite
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sut *MobyExecSuite) TestDelegateContextTypeToMoby() {
|
|
|
|
Expect(mustDelegateToMoby("moby")).To(BeTrue())
|
2020-07-17 16:08:36 +02:00
|
|
|
Expect(mustDelegateToMoby("aws")).To(BeFalse())
|
2020-06-25 10:51:20 +02:00
|
|
|
Expect(mustDelegateToMoby("aci")).To(BeFalse())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestExec(t *testing.T) {
|
|
|
|
RegisterTestingT(t)
|
|
|
|
suite.Run(t, new(MobyExecSuite))
|
|
|
|
}
|