mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(cli): display devcontainers in show command (#16515)
Displays running devcontainers into the `coder show` CLI command.
This commit is contained in:
@ -1076,7 +1076,8 @@ func TestWorkspaceAgentContainers(t *testing.T) {
|
||||
pool, err := dockertest.NewPool("")
|
||||
require.NoError(t, err, "Could not connect to docker")
|
||||
testLabels := map[string]string{
|
||||
"com.coder.test": uuid.New().String(),
|
||||
"com.coder.test": uuid.New().String(),
|
||||
"com.coder.empty": "",
|
||||
}
|
||||
ct, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||
Repository: "busybox",
|
||||
@ -1097,7 +1098,10 @@ func TestWorkspaceAgentContainers(t *testing.T) {
|
||||
Repository: "busybox",
|
||||
Tag: "latest",
|
||||
Cmd: []string{"sleep", "infinity"},
|
||||
Labels: map[string]string{"com.coder.test": "ignoreme"},
|
||||
Labels: map[string]string{
|
||||
"com.coder.test": "ignoreme",
|
||||
"com.coder.empty": "",
|
||||
},
|
||||
}, func(config *docker.HostConfig) {
|
||||
config.AutoRemove = true
|
||||
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
|
||||
|
Reference in New Issue
Block a user