hs-test: refactor test cases from no-topo suite
This converts remaining tests to configation of VPP from test context. Type: test Change-Id: I386714f6b290e03d1757c2a033a25fae0340f5d6 Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
2908f8cf07
commit
7550dd268f
@@ -6,25 +6,6 @@ import (
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
|
||||
func setupSuite(s *suite.Suite, topologyName string) func() {
|
||||
t := s.T()
|
||||
topology, err := LoadTopology(NetworkTopologyDir, topologyName)
|
||||
if err != nil {
|
||||
t.Fatalf("error on loading topology '%s': %v", topologyName, err)
|
||||
}
|
||||
err = topology.Configure()
|
||||
if err != nil {
|
||||
t.Fatalf("failed to configure %s: %v", topologyName, err)
|
||||
}
|
||||
|
||||
return func() {
|
||||
if IsPersistent() {
|
||||
return
|
||||
}
|
||||
topology.Unconfigure()
|
||||
}
|
||||
}
|
||||
|
||||
func TestTapSuite(t *testing.T) {
|
||||
var m TapSuite
|
||||
suite.Run(t, &m)
|
||||
|
Reference in New Issue
Block a user