Merge pull request #154 from docker/fix_context_inspect_shellout

Fix shell out to docker-classic when invoking
This commit is contained in:
Guillaume Tardif 2020-05-27 17:02:01 +02:00 committed by GitHub
commit e630ace677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 70 deletions

View file

@ -1,25 +0,0 @@
package context
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"gotest.tools/v3/golden"
"github.com/docker/api/tests/framework"
)
type ContextSuite struct {
framework.CliSuite
}
func (sut *ContextSuite) TestLs() {
err := runList(sut.Context())
require.Nil(sut.T(), err)
golden.Assert(sut.T(), sut.GetStdOut(), "ls-out.golden")
}
func TestPs(t *testing.T) {
suite.Run(t, new(ContextSuite))
}

View file

@ -1,3 +0,0 @@
NAME TYPE DESCRIPTION DOCKER ENPOINT KUBERNETES ENDPOINT ORCHESTRATOR
default docker Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm
example * example