Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-30732

Refactor the fake workload generation to avoid globals

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • 4.9.0
    • None
    • Sensor
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Rox Sprint 4.9G - Global, Rox Sprint 4.9H - Global

      Adding new elements to the fake workload generation makes it challenging to add unit tests, because the workloadManager relies on global pools of entities that are not passed to the respective functions as dependencies. 

      While working on ROX-30390, I needed to add a probability of generating a specific characteristic and was unable to write unit tests for that. 

              prygiels@redhat.com Piotr Rygielski
              prygiels@redhat.com Piotr Rygielski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: