mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
VMware: Unit test for vmware_guest (#50140)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
[
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local",
|
||||
"password": "Secret@123$%",
|
||||
"validate_certs": "True"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Unknown error while connecting to vCenter or ESXi API"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Hostname parameter is missing."
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"uuid": "52f7b088-357e-bb81-59ec-9d9389c7d89e"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Hostname parameter is missing."
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Username parameter is missing."
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Password parameter is missing."
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local",
|
||||
"password": "Secret@123$%"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Unknown error while connecting to vCenter or ESXi API"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local",
|
||||
"password": "Secret@123$%",
|
||||
"validate_certs": "False"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "Unknown error while connecting to vCenter or ESXi API"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local",
|
||||
"password": "Secret@123$%",
|
||||
"port": "8443"
|
||||
},
|
||||
{
|
||||
"failed": "True",
|
||||
"msg": "8443"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "sample_vm_001",
|
||||
"hostname": "esxi01.example.com",
|
||||
"username": "administrator@vsphere.local",
|
||||
"password": "Secret@123$%",
|
||||
"validate_certs": "True"
|
||||
},
|
||||
{
|
||||
"test_ssl_context": "True",
|
||||
"failed": "True",
|
||||
"msg": "pyVim does not support changing verification mode with python < 2.7.9. Either update python or use validate_certs=false."
|
||||
}
|
||||
]
|
||||
]
|
||||
Reference in New Issue
Block a user