github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/supervisor/iptablesctrl/templates_test.go (about) 1 // +build !windows 2 3 package iptablesctrl 4 5 import ( 6 "testing" 7 8 . "github.com/smartystreets/goconvey/convey" 9 ) 10 11 func TestChainName(t *testing.T) { 12 Convey("When I test the creation of the name of the chain", t, func() { 13 14 Convey("With a contextID of Context and version of 1", func() { 15 app, net, err := chainName("Context", 1) 16 So(err, ShouldBeNil) 17 18 Convey("I should get the right names", func() { 19 //app, net := i.chainName("Context", 1) 20 21 So(app, ShouldContainSubstring, "TRI-App") 22 So(net, ShouldContainSubstring, "TRI-Net") 23 }) 24 }) 25 }) 26 }