summaryrefslogtreecommitdiff
path: root/cmd/podman/parse/net_test.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-04-29 15:44:44 -0700
committerJhon Honce <jhonce@redhat.com>2020-04-29 15:51:37 -0700
commit22d5b2e3053ad66ce3b30eba3adfca70bc8e389d (patch)
treec01c90c7ab2e853930c12d9b04e5ce0e3cb2d914 /cmd/podman/parse/net_test.go
parent99f8cfc2dc39b11cd315062167f1ffaf85eda946 (diff)
downloadpodman-22d5b2e3053ad66ce3b30eba3adfca70bc8e389d.tar.gz
podman-22d5b2e3053ad66ce3b30eba3adfca70bc8e389d.tar.bz2
podman-22d5b2e3053ad66ce3b30eba3adfca70bc8e389d.zip
V2 enable ps tests
* Combine cobra.Command helper functions into validate package from registry and common packages * Introduce ChoiceValue for flags Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/parse/net_test.go')
-rw-r--r--cmd/podman/parse/net_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/parse/net_test.go b/cmd/podman/parse/net_test.go
index a6ddc2be9..51c8509df 100644
--- a/cmd/podman/parse/net_test.go
+++ b/cmd/podman/parse/net_test.go
@@ -1,4 +1,4 @@
-//nolint
+// nolint
// most of these validate and parse functions have been taken from projectatomic/docker
// and modified for cri-o
package parse
@@ -41,7 +41,7 @@ func TestValidateExtraHost(t *testing.T) {
want string
wantErr bool
}{
- //2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ // 2001:0db8:85a3:0000:0000:8a2e:0370:7334
{name: "good-ipv4", args: args{val: "foobar:192.168.1.1"}, want: "foobar:192.168.1.1", wantErr: false},
{name: "bad-ipv4", args: args{val: "foobar:999.999.999.99"}, want: "", wantErr: true},
{name: "bad-ipv4", args: args{val: "foobar:999.999.999"}, want: "", wantErr: true},