util.go 370 B

123456789101112131415161718
  1. package framework
  2. import (
  3. "github.com/google/uuid"
  4. )
  5. // RunID is a unique identifier of the e2e run.
  6. // Beware that this ID is not the same for all tests in the e2e run, because each Ginkgo node creates it separately.
  7. var RunID string
  8. func init() {
  9. uuid, _ := uuid.NewUUID()
  10. RunID = uuid.String()
  11. }
  12. func GenPortName(name string) string {
  13. return "Port" + name
  14. }