benchmark-runner 1.0.721__py3-none-any.whl → 1.0.722__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of benchmark-runner might be problematic. Click here for more details.

@@ -165,10 +165,15 @@ class OC(SSH):
165
165
 
166
166
  def get_odf_version(self):
167
167
  """
168
- This method returns odf version
169
- :return:
168
+ This method returns the ODF version by extracting it from the csv name.
169
+ :return: ODF version as a string (e.g., '4.17.2')
170
170
  """
171
- return self.run(f"{self.__cli} get csv -n openshift-storage -o jsonpath='{{.items[0].spec.labels.full_version}}'")
171
+ # OCP 4.16 and below
172
+ if self.get_ocp_major_version() <= 4 and self.get_ocp_minor_version() <= 16:
173
+ command = f"{self.__cli} get csv -n openshift-storage -o jsonpath='{{.items[0].spec.labels.full_version}}'"
174
+ else:
175
+ command = f"{self.__cli} get csv -n openshift-storage -o jsonpath='{{range .items[*]}}{{.metadata.name}}{{\"\\n\"}}{{end}}' | grep odf-operator | sed -E 's/odf-operator.v([0-9]+\\.[0-9]+\\.[0-9]+)-rhodf/\\1/'"
176
+ return self.run(command)
172
177
 
173
178
  def remove_lso_path(self):
174
179
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: benchmark-runner
3
- Version: 1.0.721
3
+ Version: 1.0.722
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -46,7 +46,7 @@ benchmark_runner/common/logger/init_logger.py,sha256=ERa-gNqrl2pZybj7v3csvmao7Mv
46
46
  benchmark_runner/common/logger/logger_exceptions.py,sha256=rivdlRm_jIsKQ53rP_-HX8emdtOmQNO4JuIkg8fnBoc,454
47
47
  benchmark_runner/common/logger/logger_time_stamp.py,sha256=2JgugN9LpXF4Ijx0wPRzz3DAGJB8eJpM5g1qPvbWbV8,1479
48
48
  benchmark_runner/common/oc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- benchmark_runner/common/oc/oc.py,sha256=ahsiue-L8sWORCdOgi9g3xjMHdW1x7VPke7YsGHw3O4,67117
49
+ benchmark_runner/common/oc/oc.py,sha256=eMmMOMCzcipDaOqClQDaC9fLQMK2UfCr0XXg9yjtBDE,67578
50
50
  benchmark_runner/common/oc/oc_exceptions.py,sha256=4JDebyFqe6yIN6Y70E-oscWnme0t7Ggg_CJBBoOuFPs,6336
51
51
  benchmark_runner/common/ocp_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  benchmark_runner/common/ocp_resources/create_cnv.py,sha256=AXsyR8_g_RIFHz2rkyHzzvvUDIiGdOi9rZWJPhiPzDQ,3511
@@ -170,8 +170,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-U
170
170
  benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
171
171
  benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
172
172
  benchmark_runner/workloads/workloads_operations.py,sha256=zhMAL-Zc2JtdI-LG4kxGwbGwHaLY2DfklpzM4bBG-eo,25261
173
- benchmark_runner-1.0.721.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
- benchmark_runner-1.0.721.dist-info/METADATA,sha256=1qNe2sTARlSnhf3_-TGwWoOcRPzQVIKFt_IrS8CqFe8,11498
175
- benchmark_runner-1.0.721.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
176
- benchmark_runner-1.0.721.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
- benchmark_runner-1.0.721.dist-info/RECORD,,
173
+ benchmark_runner-1.0.722.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
174
+ benchmark_runner-1.0.722.dist-info/METADATA,sha256=DESzhclWIJF9U85nXaM03NOrbphwwCCBblVdx3mAuJ0,11498
175
+ benchmark_runner-1.0.722.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
176
+ benchmark_runner-1.0.722.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
177
+ benchmark_runner-1.0.722.dist-info/RECORD,,