Erik Johnson
93ee5ee2b0
Fix all Sphinx warnings
...
Well, all but one, which we expect to see
2018-05-31 15:28:25 -05:00
Daniel Wallace
c1f673eca4
use older name if _create_unverified_context is unvailable
2017-08-10 14:43:33 -06:00
Pedro Algarvio
d65742c066
Delete attributes
2017-04-28 13:36:44 +01:00
Pedro Algarvio
abe608d739
Drop @patch
usage
2017-04-28 13:36:42 +01:00
Pedro Algarvio
1d8f02f635
Drop @patch
usage. Py3 Compat.
2017-04-28 13:33:32 +01:00
Pedro Algarvio
40a64191a1
Absolute imports and A LOT of code cleanup.
2017-03-01 01:33:07 +00:00
Pedro Algarvio
3beb3fb801
Move whatever we need from salttesting to salt.
...
Let's drop the salttesting dependency cycle.
2017-02-28 22:52:49 +00:00
Pedro Algarvio
15af4c9728
Test filenames conformity. Adjust for pytest.
2017-02-23 23:19:42 +00:00
Alexandru Bleotu
7b0f6df8d8
Fixed test with new get_cluster call
2016-12-09 11:55:20 -05:00
Alexandru Bleotu
38b3ebf434
Fix pylint errors in tests for utils.vmware.get_hosts
2016-12-09 11:53:27 -05:00
Alexandru Bleotu
0ea033d21d
Added tests for utils.vmware.get_hosts
2016-12-09 10:04:24 -05:00
Alexandru Bleotu
2f428ef38f
Added tests for utils.vmware.get_datacenter
2016-12-05 10:38:11 -05:00
Alexandru Bleotu
e8a854f9ac
Added tests for utils.vmware.get_datacenters
2016-12-05 10:37:48 -05:00
Alexandru Bleotu
07979897b6
Added tests for InvalidArgument fault handling in utils.vmware.wait_for_task
2016-11-29 05:23:07 -05:00
Alexandru Bleotu
39fe0b41b6
Added/updated tests for exception handling/get_root_folder change in utils.vmware.get_content
2016-11-24 05:53:51 -05:00
Alexandru Bleotu
ed64348502
Added tests for exception handling in utils.vmware.is_connection_to_a_vcenter
2016-11-22 09:08:06 -05:00
Alexandru Bleotu
3497d2344e
Added tests for exception handling in utils.vmware.get_service_instance
2016-11-22 09:08:06 -05:00
Alexandru Bleotu
102b2b2e98
Vmware disconnect gh ( #37809 )
...
* Added utils.vmware.disconnect
- disconnects from a vCenter or ESXi host
* Added tests for salt.utils.vmware.disconnect
2016-11-21 13:25:16 -07:00
Eric Radman
b19440418d
Fixes to unit tests ( #37586 )
...
Add skipIf pyvmomi is not installed
NameError: global name 'vmodl' is not defined
NameError: global name 'vim' is not defined
Fix skipIf typo for OpenBSD
>>> import sys
>>> sys.platform
'openbsd6'
Avoid warning from glusterfs.py:
Use specific 'len(elem)' or 'elem is not None' test
Enable boto_secgroup_test tests that work now:
test skipped due to error in moto return - fixed in
cc01669643
2016-11-09 13:58:08 -07:00
Mike Place
33d0789f6e
Merge pull request #37348 from alexbleotu/create_cluster-gh
...
Create cluster gh
2016-11-06 15:02:41 +13:00
Alexandru Bleotu
b3404ae7a2
Renamed salt.utils.vmware.update_cluster tests
2016-11-04 09:57:23 -04:00
Alexandru Bleotu
e126619405
Added tests for utils.vmware.create_cluster
2016-11-04 09:52:25 -04:00
Alexandru Bleotu
c68281b9fa
Get cluster gh ( #37310 )
...
* Added utils.vmware.get_cluster
- retrieves a cluster in datacenter based on its name
* Added tests for utils.vmware.get_cluster
2016-11-02 08:28:41 -06:00
Alexandru Bleotu
b0aaebaab8
Update cluster gh ( #37347 )
...
* Added utils.vmware.update_cluster
- updates an existing cluster based on a configuration spec
* Added tests for utils.vmware.update_cluster
2016-11-01 09:01:20 -06:00
Alexandru Bleotu
a777d6eced
Get managed object name gh ( #37276 )
...
* Added get_managed_object_name to optimally retrieve a managed object's name
* Added tests for get_managed_obect_name
2016-10-27 16:27:27 -06:00
Alexandru Bleotu
c0b45afa54
Added tests for salt.utils.vmware.get_properties_of_managed_object
2016-10-26 06:37:32 -04:00
Alexandru Bleotu
ac451002dd
Added tests for get_service_instance_from_managed_object
2016-10-25 11:21:32 -04:00
Alexandru Bleotu
6c441cb288
Create datacenter gh ( #36826 )
...
* Added salt.utils.create_datacenter that creates a VMWare datacenter
* Added tests for salt.utils.vmware.create_datacenter
2016-10-11 08:49:53 -06:00
Alexandru Bleotu
03533e9b01
Added tests for salt.utils.vmware.get_datacenter
2016-09-27 13:39:47 +01:00
Mike Place
681ce7539c
Merge pull request #36511 from alexbleotu/wait_for_task_update-gh
...
Wait for task update gh
2016-09-26 19:04:35 +09:00
Mike Place
6af9192a51
Merge pull request #36509 from alexbleotu/get_root_folder-gh
...
Get root folder gh
2016-09-26 18:52:50 +09:00
Alexandru Bleotu
16510be521
Updated tests to reflect changes in salt.utils.vmware.wait_for_pid
2016-09-23 10:48:24 +01:00
Alexandru Bleotu
fa2ecb9f56
Added tests for get_root_folder
2016-09-23 10:09:10 +01:00
C. R. Oldham
755c069fb9
Align tests for new calls
2016-09-21 16:08:28 -06:00
C. R. Oldham
3c62ceb3b4
Fix salt-cloud breakage--local traversal was skipping what we needed. Fixes #36301
...
Align tests for new calls
More specific 'skip' selection for PropertyCollector depending on local_properties request.
2016-09-21 09:43:14 -06:00
Justin Anderson
3f7e4d9f59
traversal_spec has skip=True, not false ( #35877 )
2016-08-29 16:12:16 -06:00
Nicole Thomas
27697e952a
Pylint fixes for develop branch ( #35863 )
2016-08-29 12:20:50 -06:00
Mike Place
409f17aa58
Merge pull request #35673 from cro/proxy_getsi_fix
...
Proxies don't handle reusing the SmartConnect instances very well. D…
2016-08-29 13:11:35 +09:00
Mike Place
5bb62345f6
Merge pull request #35728 from alexbleotu/vmware_enhancements-gh
...
Vmware enhancements gh
2016-08-29 12:54:14 +09:00
Alexandru Bleotu
e993f99053
Improved salt.utils.vmware.get_content, get_mors_with_properties
...
- added optional traversal_spec parameter to both methods, allowing the
user to specify a different TraversalSpec object to search for content
(if not specified, the behaviour is that all a traverse all search is
done)
- the traversal_spec is destroyed only if is created in the method
- added local_properties flag to both methods allowing the retrieval of
properties of the container object
- added tests for the 2 functions
2016-08-25 10:42:48 +01:00
C. R. Oldham
ae9b2726b5
Fix some spelling, add better test for proxy
2016-08-23 16:42:14 -06:00
Alexandru Bleotu
e66841ef69
Improved salt.utils.vmware.wait_for_task
...
- improved logging/description
- on success the method returns the result and on error it raises the
exception it got from vmware
- added unit tests
2016-08-23 17:07:54 +01:00
Alexandru Bleotu
77e6e5afee
Improved connection to a VMware vCenter Server or ESXi host
...
- added support for passthrough connections via SSPI
- added function to specify if a connection is made to a vCenter or ESXi host
- added function to disconnect from a vCenter or ESXi host
- added tests for changed/new functions
2016-08-23 13:46:28 +01:00