Skip to content

Commit 392940a

Browse files
authored
Merge branch 'main' into testCustomCliDownload
2 parents ea62671 + d2a4255 commit 392940a

14 files changed

Lines changed: 49 additions & 0 deletions

tests/observability/metrics/test_cdi_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
@pytest.mark.polarion("CNV-11744")
7+
@pytest.mark.s390x
78
def test_metric_kubevirt_cdi_storageprofile_info(prometheus, storage_class_labels_for_testing):
89
expected_metric_labels_and_values(
910
values_from_prometheus=get_metric_labels_non_empty_value(

tests/observability/metrics/test_general_metrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class TestVmiNodeCpuAffinityLinux:
6767
indirect=True,
6868
)
6969
@pytest.mark.polarion("CNV-7295")
70+
@pytest.mark.s390x
7071
def test_kubevirt_vmi_node_cpu_affinity(self, prometheus, vm_from_template_scope_class):
7172
validate_vmi_node_cpu_affinity_with_prometheus(
7273
vm=vm_from_template_scope_class,
@@ -86,6 +87,7 @@ def test_kubevirt_vmi_node_cpu_affinity_windows_vm(self, prometheus, windows_vm_
8687

8788
class TestVmNameInLabel:
8889
@pytest.mark.polarion("CNV-8582")
90+
@pytest.mark.s390x
8991
def test_vm_name_in_virt_launcher_label(self, fedora_vm_without_name_in_label):
9092
"""
9193
when VM created from vm.yaml,for the kind=VirtualMachine, doesn't have
@@ -104,6 +106,7 @@ def test_vm_name_in_virt_launcher_label(self, fedora_vm_without_name_in_label):
104106
class TestVirtHCOSingleStackIpv6:
105107
@pytest.mark.ipv6
106108
@pytest.mark.polarion("CNV-11740")
109+
@pytest.mark.s390x
107110
def test_metric_kubevirt_hco_single_stack_ipv6(self, prometheus, ipv6_single_stack_cluster):
108111
validate_metrics_value(
109112
prometheus=prometheus,

tests/observability/metrics/test_metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
class TestMetricsLinux:
2020
@pytest.mark.polarion("CNV-11906")
21+
@pytest.mark.s390x
2122
def test_cnv_vmi_monitoring_metrics_linux_vm(
2223
self, prometheus, single_metric_vm, cnv_vmi_monitoring_metrics_matrix__function__
2324
):
@@ -51,6 +52,7 @@ def test_cnv_vmi_monitoring_metrics_windows_vm(
5152

5253

5354
@pytest.mark.polarion("CNV-10438")
55+
@pytest.mark.s390x
5456
def test_cnv_installation_with_hco_cr_metrics(
5557
prometheus,
5658
):
@@ -62,6 +64,7 @@ def test_cnv_installation_with_hco_cr_metrics(
6264

6365
class TestVMIMetricsLinuxVms:
6466
@pytest.mark.polarion("CNV-11400")
67+
@pytest.mark.s390x
6568
def test_kubevirt_vmi_info(self, prometheus, single_metric_vm, vmi_guest_os_kernel_release_info_linux):
6669
compare_kubevirt_vmi_info_metric_with_vm_info(
6770
prometheus=prometheus,
@@ -71,6 +74,7 @@ def test_kubevirt_vmi_info(self, prometheus, single_metric_vm, vmi_guest_os_kern
7174
)
7275

7376
@pytest.mark.polarion("CNV-11862")
77+
@pytest.mark.s390x
7478
def test_metric_kubevirt_vm_info(self, prometheus, single_metric_vm, linux_vm_info_to_compare):
7579
compare_kubevirt_vmi_info_metric_with_vm_info(
7680
prometheus=prometheus,

tests/observability/metrics/test_metrics_cpu.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@
1212
@pytest.mark.usefixtures("initial_metric_cpu_value_zero")
1313
class TestMetricsCpu:
1414
@pytest.mark.polarion("CNV-9649")
15+
@pytest.mark.s390x
1516
def test_verify_metrics_vmi_request_cpu_sum(self, prometheus, running_metric_vm):
1617
wait_for_metric_vmi_request_cpu_cores_output(prometheus=prometheus, expected_cpu=ONE_CPU_CORES)
1718

1819
@pytest.mark.polarion("CNV-9653")
1920
@pytest.mark.order(after="test_verify_metrics_vmi_request_cpu_sum")
21+
@pytest.mark.s390x
2022
def test_verify_metrics_stopped_vm(self, prometheus, stopped_metrics_vm):
2123
wait_for_metric_vmi_request_cpu_cores_output(prometheus=prometheus, expected_cpu=ZERO_CPU_CORES)
2224

2325
@pytest.mark.polarion("CNV-9652")
2426
@pytest.mark.order(after="test_verify_metrics_stopped_vm")
27+
@pytest.mark.s390x
2528
def test_verify_metrics_paused_vm(
2629
self,
2730
prometheus,
@@ -34,5 +37,6 @@ def test_verify_metrics_paused_vm(
3437
@pytest.mark.usefixtures("initial_metric_cpu_value_zero")
3538
class TestMetricsCpuErrorState:
3639
@pytest.mark.polarion("CNV-9654")
40+
@pytest.mark.s390x
3741
def test_verify_metrics_error_state_vm(self, prometheus, error_state_vm):
3842
wait_for_metric_vmi_request_cpu_cores_output(prometheus=prometheus, expected_cpu=ZERO_CPU_CORES)

tests/observability/metrics/test_migration_metrics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
class TestMigrationMetrics:
2626
@pytest.mark.polarion("CNV-8480")
27+
@pytest.mark.s390x
2728
def test_migration_metrics_scheduling(
2829
self,
2930
admin_client,
@@ -41,6 +42,7 @@ def test_migration_metrics_scheduling(
4142
)
4243

4344
@pytest.mark.polarion("CNV-8481")
45+
@pytest.mark.s390x
4446
def test_migration_metrics_running(
4547
self,
4648
prometheus,
@@ -81,6 +83,7 @@ class TestKubevirtVmiMigrationMetrics:
8183
],
8284
)
8385
@pytest.mark.jira("CNV-57777", run=False)
86+
@pytest.mark.s390x
8487
def test_kubevirt_vmi_migration_metrics(
8588
self,
8689
prometheus,
@@ -106,6 +109,7 @@ def test_kubevirt_vmi_migration_metrics(
106109

107110
class TestKubevirtVmiMigrationStartAndEnd:
108111
@pytest.mark.polarion("CNV-11809")
112+
@pytest.mark.s390x
109113
def test_metric_kubevirt_vmi_migration_start_time_seconds(
110114
self,
111115
prometheus,
@@ -123,6 +127,7 @@ def test_metric_kubevirt_vmi_migration_start_time_seconds(
123127
)
124128

125129
@pytest.mark.polarion("CNV-11810")
130+
@pytest.mark.s390x
126131
def test_metric_kubevirt_vmi_migration_end_time_seconds(
127132
self,
128133
prometheus,

tests/observability/metrics/test_network_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@pytest.mark.usefixtures("vm_for_test", "linux_vm_for_test_interface_name")
1616
class TestVmiNetworkMetricsLinux:
1717
@pytest.mark.polarion("CNV-11177")
18+
@pytest.mark.s390x
1819
def test_kubevirt_vmi_network_traffic_bytes_total(
1920
self, prometheus, vm_for_test, linux_vm_for_test_interface_name, generated_network_traffic
2021
):

tests/observability/metrics/test_prometheus_service_monitor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ def kubevirt_service_monitor_namespace(kubevirt_hyperconverged_spec_scope_functi
2121

2222
class TestPrometheusServiceMonitor:
2323
@pytest.mark.polarion("CNV-9287")
24+
@pytest.mark.s390x
2425
def test_kubevirt_service_monitor_namespace(self, kubevirt_service_monitor_namespace, hco_namespace):
2526
assert kubevirt_service_monitor_namespace == hco_namespace.name
2627

2728
@pytest.mark.polarion("CNV-9264")
29+
@pytest.mark.s390x
2830
def test_prometheus_service_monitor_in_our_namespace(
2931
self,
3032
kubevirt_prometheus_service_monitor_list,

tests/observability/metrics/test_recording_rules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
],
5151
indirect=True,
5252
)
53+
@pytest.mark.s390x
5354
def test_virt_recording_rules(
5455
prometheus,
5556
admin_client,
@@ -97,6 +98,7 @@ def test_virt_recording_rules(
9798
],
9899
indirect=True,
99100
)
101+
@pytest.mark.s390x
100102
def test_virt_up_recording_rules(
101103
prometheus,
102104
admin_client,

tests/observability/metrics/test_ssp_metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def created_multiple_failed_vms(
6161

6262
class TestSSPTemplate:
6363
@pytest.mark.polarion("CNV-11356")
64+
@pytest.mark.s390x
6465
def test_metric_kubevirt_ssp_common_templates_restored_increase(self, prometheus, template_modified):
6566
validate_metric_value_within_range(
6667
prometheus=prometheus,
@@ -84,6 +85,7 @@ def test_metric_kubevirt_ssp_common_templates_restored_increase(self, prometheus
8485
],
8586
indirect=["scaled_deployment"],
8687
)
88+
@pytest.mark.s390x
8789
def test_metrics_kubevirt_ssp_operator_validator_up(
8890
self, prometheus, paused_ssp_operator, scaled_deployment, metric_name
8991
):
@@ -94,6 +96,7 @@ def test_metrics_kubevirt_ssp_operator_validator_up(
9496
)
9597

9698
@pytest.mark.polarion("CNV-11357")
99+
@pytest.mark.s390x
97100
def test_metric_kubevirt_ssp_operator_reconcile_succeeded_aggregated(
98101
self, prometheus, paused_ssp_operator, template_validator_finalizer, deleted_ssp_operator_pod
99102
):
@@ -121,6 +124,7 @@ def test_metric_kubevirt_ssp_operator_reconcile_succeeded_aggregated(
121124
@pytest.mark.usefixtures("initiate_metric_value", "instance_type_for_test_scope_class", "created_multiple_failed_vms")
122125
class TestSSPTemplateValidatorRejected:
123126
@pytest.mark.polarion("CNV-11310")
127+
@pytest.mark.s390x
124128
def test_metric_kubevirt_ssp_template_validator_rejected_increase(self, prometheus, initiate_metric_value):
125129
validate_metric_value_with_round_down(
126130
prometheus=prometheus,

tests/observability/metrics/test_version_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def virtctl_go_kube_server_version():
2323

2424

2525
@pytest.mark.polarion("CNV-11017")
26+
@pytest.mark.s390x
2627
def test_kubevirt_info_version(prometheus, virtctl_go_kube_server_version):
2728
metric_result_output = prometheus.query_sampler(query="kubevirt_info")
2829
assert_virtctl_version_equal_metric_output(

0 commit comments

Comments
 (0)