9 . "github.com/onsi/ginkgo/v2"
12 type TapSuite struct {
16 var tapTests = []func(s *TapSuite){}
17 var tapSoloTests = []func(s *TapSuite){}
19 func registerTapTests(tests ...func(s *TapSuite)) {
20 tapTests = append(tapTests, tests...)
22 func registerTapSoloTests(tests ...func(s *TapSuite)) {
23 tapSoloTests = append(tapSoloTests, tests...)
26 func (s *TapSuite) SetupSuite() {
27 time.Sleep(1 * time.Second)
28 s.HstSuite.SetupSuite()
29 s.configureNetworkTopology("tap")
32 var _ = Describe("TapSuite", Ordered, ContinueOnFailure, func() {
47 for _, test := range tapTests {
49 pc := reflect.ValueOf(test).Pointer()
50 funcValue := runtime.FuncForPC(pc)
51 It(strings.Split(funcValue.Name(), ".")[2], func(ctx SpecContext) {
53 }, SpecTimeout(time.Minute*5))
57 var _ = Describe("TapSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
72 for _, test := range tapSoloTests {
74 pc := reflect.ValueOf(test).Pointer()
75 funcValue := runtime.FuncForPC(pc)
76 It(strings.Split(funcValue.Name(), ".")[2], Label("SOLO"), func(ctx SpecContext) {
78 }, SpecTimeout(time.Minute*5))