testsuite icon indicating copy to clipboard operation
testsuite copied to clipboard

[Feature] Redesign workload_resource_test function

Open kosstennbl opened this issue 7 months ago • 2 comments

For most of the tests we use "workload_resource_test" function to iterate through resources and test required functionality.

Problem is that this function iterates for each container in each resource and sometimes it is not necessary. In some tests, "cnf_workload_resources" function is used for better efficiency, but i don't see that as a good final solution:

  • Resource formats provided by these two functions is different, which brings complications and extra adaptation code.
  • We don't have a "central point" for resource-related tests, which could bring confusion and instabilities for some changes.

I propose:

  • To make "workload_resource_test" an only function for iterations through resources in tests.
  • To optimize "workload_resource_test" functionality and usage, let it iterate only required amount of times depending on the test.

kosstennbl avatar Jul 22 '24 17:07 kosstennbl