This repository was archived by the owner on Dec 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,26 +4,11 @@ import (
44 "testing"
55
66 "flag"
7- "github.com/docker/machine/commands/commandstest"
87 "github.com/docker/machine/libmachine/mcnflag"
8+ "github.com/lambda-linux/lambda-machine-local/commands/commandstest"
99 "github.com/stretchr/testify/assert"
1010)
1111
12- func TestValidateSwarmDiscoveryErrorsGivenInvalidURL (t * testing.T ) {
13- err := validateSwarmDiscovery ("foo" )
14- assert .Error (t , err )
15- }
16-
17- func TestValidateSwarmDiscoveryAcceptsEmptyString (t * testing.T ) {
18- err := validateSwarmDiscovery ("" )
19- assert .NoError (t , err )
20- }
21-
22- func TestValidateSwarmDiscoveryAcceptsValidFormat (t * testing.T ) {
23- err := validateSwarmDiscovery ("token://deadbeefcafe" )
24- assert .NoError (t , err )
25- }
26-
2712type fakeFlagGetter struct {
2813 flag.Value
2914 value interface {}
You can’t perform that action at this time.
0 commit comments