|
2 | 2 | # SPDX-License-Identifier: BSD-2-Clause |
3 | 3 | --- |
4 | 4 | # Description: |
5 | | -# This test case is used for check VM guest fullname and guest ID |
6 | | -# are reported correctly in the VM guest info through VMware Tools. |
7 | | -# When VMware Tools is not installed or not running in VM, |
8 | | -# this test case result is 'Blocked'. |
| 5 | +# This test case is used for checking VM guest OS fullname |
| 6 | +# and guest OS ID are reported correctly in the VM guest info |
| 7 | +# by VMware Tools. When VMware Tools is not installed or not |
| 8 | +# running in the guest OS, this test case result is 'Blocked'. |
9 | 9 | # |
10 | 10 | - name: check_os_fullname |
11 | 11 | hosts: localhost |
|
21 | 21 | - name: "Get VM guest info" |
22 | 22 | include_tasks: ../../common/vm_get_guest_info.yml |
23 | 23 |
|
24 | | - - name: "Set fact of the pre-defined guest OS info" |
| 24 | + - name: "Set fact of the pre-defined guest OS info list" |
25 | 25 | include_tasks: win_guest_os_info.yml |
26 | 26 |
|
27 | 27 | - name: "Print the guest OS info before checking" |
|
32 | 32 | - "OS fullname got in VM guest info: {{ guestinfo_guest_full_name }}" |
33 | 33 | - "VM guest ID configured: {{ vm_guest_id }}" |
34 | 34 | - "VM guest ID got in VM guest info: {{ guestinfo_guest_id }}" |
| 35 | + - "VM hardware version: {{ vm_hardware_version }}" |
35 | 36 |
|
36 | 37 | - name: "Set fact of current OS name" |
37 | 38 | ansible.builtin.set_fact: |
|
45 | 46 | ansible.builtin.assert: |
46 | 47 | that: |
47 | 48 | - current_gos_info |
48 | | - fail_msg: |
49 | | - - "The pre-defined guest OS info list does not contain this OS version: {{ current_gos }}," |
50 | | - - "please check whether this guest OS is supported and add it's info to the list accordingly." |
| 49 | + fail_msg: > |
| 50 | + "The pre-defined guest OS info list does not contain this OS version: {{ current_gos }}, |
| 51 | + please check whether this guest OS is supported and add it to the list accordingly." |
51 | 52 |
|
52 | | - - name: "Check whether meet the conditions of known issue" |
| 53 | + - name: "Handle Windows 11 known issue" |
53 | 54 | include_tasks: win11_guest_info_exception.yml |
54 | 55 |
|
55 | 56 | - name: "Check guest fullname in VM guest info" |
56 | | - include_tasks: check_guest_info.yml |
| 57 | + include_tasks: check_vm_guest_info.yml |
57 | 58 | when: win11_70u3c_exception is undefined |
58 | 59 | rescue: |
59 | 60 | - name: "Test case failure" |
|
0 commit comments