git://git.halfball.org
/
plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fe036b
)
skel/test: add case for empty NETNS
author
Stefan Junker
<mail@stefanjunker.de>
Fri, 27 May 2016 10:26:42 +0000
(12:26 +0200)
committer
Stefan Junker
<mail@stefanjunker.de>
Fri, 27 May 2016 10:26:42 +0000
(12:26 +0200)
skel/skel_test.go
patch
|
blob
|
history
diff --git
a/skel/skel_test.go
b/skel/skel_test.go
index
4469564
..
a52e014
100644
(file)
--- a/
skel/skel_test.go
+++ b/
skel/skel_test.go
@@
-71,5
+71,14
@@
var _ = Describe("Skel", func() {
// Expect(err).NotTo(HaveOccurred())
// PluginMain(fErr, nil)
// })
+
+ It("should not fail with DEL and no NETNS and noop callback", func() {
+ err := os.Setenv("CNI_COMMAND", "DEL")
+ Expect(err).NotTo(HaveOccurred())
+ err = os.Unsetenv("CNI_NETNS")
+ Expect(err).NotTo(HaveOccurred())
+ PluginMain(nil, fNoop)
+ })
+
})
})