Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-25694

[osm - vmware] Improve test coverage for utils.go with more unit tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhos-ops-day1day2-migrations
    • Team OS Migrate Sprint 14
    • 1

      The utils.go module has ~90% coverage but lacks tests for the GenRandom() function, which generates random strings for identifiers, socket names, and temporary files.

      What needs to be tested:

      • String length validation
      • Charset validation (alphanumeric)
      • Edge cases (length=0, length=1, length=1000)
      • Basic randomness check (repeated calls produce different values)

              rh-ee-vvyvleck Veronika Vyvleckova
              rh-ee-vvyvleck Veronika Vyvleckova
              rhos-dfg-migrations
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: