mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Merge pull request #154 from docker/fix_context_inspect_shellout
Fix shell out to docker-classic when invoking
This commit is contained in:
commit
e630ace677
8 changed files with 26 additions and 70 deletions
|
|
@ -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))
|
||||
}
|
||||
3
cli/cmd/context/testdata/ls-out.golden
vendored
3
cli/cmd/context/testdata/ls-out.golden
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue