Skip to content

Commit 43be6d6

Browse files
committed
set nvme_vhba_device_ops_spec13 not applicable
Signed-off-by: dw035535 <[email protected]>
1 parent 16a6ad1 commit 43be6d6

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

windows/vhba_hot_add_remove/nvme_vhba_device_ops_spec13.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
---
44
# Description:
55
# This test case is used for check hotadd, hot remove disk
6-
# on a new and existing NVMe controller with NVMe Spec 1.3 enabled.
6+
# on a new and existing NVMe controller with NVMe Spec 1.3 enabled
7+
# manually.
8+
# Notes:
9+
# Please refer to the release notes of ESXi 8.0.2:
10+
# https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/
11+
# release-notes/esxi-update-and-patch-release-notes/vsphere-esxi-802-release-notes.html
12+
# Default NVMe version 1.3 for Windows virtual machines:
13+
# Starting with vSphere 8.0 Update 2, the NVMe version of Windows Server 2022
14+
# or Windows 11 and later virtual machines with hardware version 21 and later,
15+
# and a virtual NVMe controller, is set to 1.3 by default.
16+
# Set this test case result to "Not Applicable" in above situation.
717
#
818
- name: nvme_vhba_device_ops_spec13
919
hosts: localhost
@@ -37,6 +47,20 @@
3747
- guest_os_product_type == 'server'
3848
- guest_os_ansible_kernel is version('10.0.20348.0', '<')
3949

50+
- name: "Skip test case"
51+
include_tasks: ../../common/skip_test_case.yml
52+
vars:
53+
skip_msg: >-
54+
Skip testing on this guest OS '{{ guest_os_ansible_distribution }}' with VM hardware version
55+
'{{ vm_hardware_version_num }}', since NVMe version is 1.3 by default for Windows Server 2022,
56+
Windows 11 and later VMs with hardware version 21 on ESXi 8.0.2 and later.
57+
So skip this test case and only run test case 'nvme_vhba_device_ops' with default NVMe v1.3.
58+
skip_reason: "Not Applicable"
59+
when:
60+
- vm_hardware_version_num | int >= 21
61+
- (guest_os_product_type == 'server' and guest_os_build_num | int >= 20348) or
62+
(guest_os_product_type == 'client' and guest_os_build_num | int >= 22000)
63+
4064
- name: "Test run"
4165
include_tasks: vhba_test.yml
4266
vars:

0 commit comments

Comments
 (0)