Open Akasurde opened 4 years ago
@Tomorrow9 said -
Functional test for "vmware_export_ovf" module in PR #60265.
Migrated from https://github.com/ansible/ansible/issues/59635
cc @goneri
There's PR #186 that will add an (initial) integration test for vmware_dvs_host
.
It looks like vmware_vmotion
, vmware_category
, vmware_tag_info
and vmware_tag_manager
do have integration tests meanwhile.
@Akasurde Can you please check this? And, if I'm right, tick them off in your list?
@Akasurde
#!/bin/bash vmware_modules=$(find ./lib/ansible/modules/cloud/vmware/ -name 'vmware_*.py' -exec basename -s .py {} \;) for module in ${vmware_modules}; do if ! test -d ./test/integration/targets/${module}; then echo "- [ ] \`${module}\`" fi done
We don't have a directory lib/ansible/modules/cloud/vmware/
. Our modules are under plugins/modules/
. I've changed your script a bit to work with this repo:
VMWARE_MODULES=$(find plugins/modules/ -name 'vmware_*.py' -exec basename -s .py {} \;)
for MODULE in ${VMWARE_MODULES}; do
if ! test -d tests/integration/targets/$MODULE; then
echo "$MODULE"
fi
done | sort
And I get the following result:
- [ ] vmware_category_facts
- [ ] vmware_category_info
- [ ] vmware_cfg_backup
- [ ] vmware_content_deploy_ovf_template
- [ ] vmware_deploy_ovf
- [ ] vmware_dns_config
- [ ] vmware_dvswitch_lacp
- [ ] vmware_guest_boot_manager
- [ ] vmware_guest_file_operation
- [ ] vmware_guest_tools_upgrade
- [ ] vmware_guest_video
- [ ] vmware_guest_vnc
- [ ] vmware_host_lockdown
- [ ] vmware_object_role_permission
- [ ] vmware_tag_facts
- [ ] vmware_vm_shell
- [ ] vmware_vm_vss_dvs_migrate
- [ ] vmware_vsan_cluster
Can you please close this issue? Or a t least update the list of modules without integration tests?
I've just updated the list.
@Akasurde @goneri In vSphere 7.0, the ESXi built-in VNC server has been removed. Users will no longer be able to connect to a virtual machine using a VNC client by setting the RemoteDisplay.vnc.enable configure to be true. (VMware vSphere 7.0 Release Notes)
The last version with a built-in VNC server, 6.7, will reach End of General Support 2022-10-15. So my suggestion is to deprecate vmware_guest_vnc
, remove it at this date and ignore that it doesn't have any tests.
What do you think?
@Akasurde @goneri FYI I've updated the list:
VMWARE_MODULES=$(find plugins/modules/ -name 'vmware_*.py' -exec basename -s .py {} \;)
for MODULE in ${VMWARE_MODULES}
do
if ! test -d tests/integration/targets/$MODULE
then
echo "$MODULE"
fi
done | sort
SUMMARY
The following modules don't have any test coverage:
I use the following script to generate the list:
ISSUE TYPE
COMPONENT NAME
vmware
ANSIBLE VERSION