Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d59330f40d)
Signed-off-by: Cory Snider <csnider@mirantis.com>
18 lines
347 B
Go
18 lines
347 B
Go
package stack
|
|
|
|
import (
|
|
"io"
|
|
"testing"
|
|
|
|
"github.com/docker/cli/internal/test"
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
func TestDeployWithEmptyName(t *testing.T) {
|
|
cmd := newDeployCommand(test.NewFakeCli(&fakeClient{}), nil)
|
|
cmd.SetArgs([]string{"' '"})
|
|
cmd.SetOut(io.Discard)
|
|
|
|
assert.ErrorContains(t, cmd.Execute(), `invalid stack name: "' '"`)
|
|
}
|