"fmt"
"io/ioutil"
"os"
+ "time"
"github.com/edwarnicke/exechelper"
"github.com/stretchr/testify/assert"
netConfigs []NetConfig
netInterfaces map[string]NetInterface
addresser *Addresser
+ testIds map[string]string
}
func (s *HstSuite) TearDownSuite() {
func (s *HstSuite) log(args ...any) {
if *IsVerbose {
+ s.T().Helper()
s.T().Log(args...)
}
}
}
}
+func (s *HstSuite) getTestId() string {
+ testName := s.T().Name()
+
+ if s.testIds == nil {
+ s.testIds = map[string]string{}
+ }
+
+ if _, ok := s.testIds[testName]; !ok {
+ s.testIds[testName] = time.Now().Format(time.RFC3339)
+ }
+
+ return s.testIds[testName]
+}
+
type NetworkAddresses struct {
network int
numberOfAddresses int