Skip to content

Commit

Permalink
add ipam test suit
Browse files Browse the repository at this point in the history
  • Loading branch information
firemiles committed Jan 31, 2020
1 parent d8255fd commit 53bbe3b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cni/ipam/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ func parse(contents string) (*types.DNS, error) {
}

return parseResolvConf(f.Name())
}
}
13 changes: 13 additions & 0 deletions cni/ipam/ipam_suite_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"testing"
)

func TestIPAM(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "cni/ipam")
}
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ replace (
k8s.io/code-generator => github.com/kubernetes/code-generator v0.0.0-20191121015212-c4c8f8345c7e
k8s.io/klog v0.4.0 => github.com/kubernetes/klog v0.4.0
k8s.io/kube-openapi => github.com/kubernetes/kube-openapi v0.0.0-20191107075043-30be4d16710a
k8s.io/utils => github.com/kubernetes/utils v0.0.0-20200124190032-861946025e34
sigs.k8s.io/controller-runtime v0.4.0 => github.com/kubernetes-sigs/controller-runtime v0.4.0
sigs.k8s.io/controller-tools/cmd/controller-gen v0.2.4 => github.com/kubernetes-sigs/controller-tools/cmd/controller-gen v0.2.4
sigs.k8s.io/testing_frameworks => github.com/kubernetes-sigs/testing_frameworks v0.1.2
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ github.com/kubernetes/code-generator v0.0.0-20191121015212-c4c8f8345c7e/go.mod h
github.com/kubernetes/klog v0.4.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
github.com/kubernetes/kube-openapi v0.0.0-20191107075043-30be4d16710a h1:LXHLBHZTORzjhQ7dgyjNNRQH4Fayu5nEf0b6GA5WDF0=
github.com/kubernetes/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
github.com/kubernetes/utils v0.0.0-20200124190032-861946025e34 h1:gE+wY51cIwoFVZgYl3UwRc7jSzoXgAeXnPRKiwIOkcY=
github.com/kubernetes/utils v0.0.0-20200124190032-861946025e34/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
Expand Down

0 comments on commit 53bbe3b

Please sign in to comment.