2018-07-31 19:48:27 -04:00
|
|
|
package stack
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-02-22 12:12:14 -05:00
|
|
|
"gotest.tools/v3/golden"
|
|
|
|
"gotest.tools/v3/icmd"
|
2018-07-31 19:48:27 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestStackDeployHelp(t *testing.T) {
|
2022-02-22 07:46:35 -05:00
|
|
|
result := icmd.RunCommand("docker", "stack", "deploy", "--help")
|
2018-07-31 19:48:27 -04:00
|
|
|
result.Assert(t, icmd.Success)
|
2022-02-22 07:46:35 -05:00
|
|
|
golden.Assert(t, result.Stdout(), "stack-deploy-help.golden")
|
2018-07-31 19:48:27 -04:00
|
|
|
}
|