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:
Maros Ondrejicka
2023-02-07 20:40:27 +01:00
committed by Florin Coras
parent 2908f8cf07
commit 7550dd268f
19 changed files with 207 additions and 649 deletions

View File

@@ -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)