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