|
|
@ -63,6 +63,7 @@ class VcenterProvider(CloudProvider):
|
|
|
|
self.endpoint = ''
|
|
|
|
self.endpoint = ''
|
|
|
|
self.hostname = ''
|
|
|
|
self.hostname = ''
|
|
|
|
self.port = 443
|
|
|
|
self.port = 443
|
|
|
|
|
|
|
|
self.proxy = None
|
|
|
|
|
|
|
|
|
|
|
|
def filter(self, targets, exclude):
|
|
|
|
def filter(self, targets, exclude):
|
|
|
|
"""Filter out the cloud tests when the necessary config and resources are not available.
|
|
|
|
"""Filter out the cloud tests when the necessary config and resources are not available.
|
|
|
@ -222,6 +223,10 @@ class VcenterProvider(CloudProvider):
|
|
|
|
|
|
|
|
|
|
|
|
if parser.get('DEFAULT', 'vmware_validate_certs').lower() in ('no', 'false'):
|
|
|
|
if parser.get('DEFAULT', 'vmware_validate_certs').lower() in ('no', 'false'):
|
|
|
|
self.insecure = True
|
|
|
|
self.insecure = True
|
|
|
|
|
|
|
|
proxy_host = parser.get('DEFAULT', 'vmware_proxy_host')
|
|
|
|
|
|
|
|
proxy_port = int(parser.get('DEFAULT', 'vmware_proxy_port'))
|
|
|
|
|
|
|
|
if proxy_host and proxy_port:
|
|
|
|
|
|
|
|
self.proxy = 'http://%s:%d' % (proxy_host, proxy_port)
|
|
|
|
|
|
|
|
|
|
|
|
self._wait_for_service()
|
|
|
|
self._wait_for_service()
|
|
|
|
|
|
|
|
|
|
|
@ -230,7 +235,7 @@ class VcenterProvider(CloudProvider):
|
|
|
|
if self.args.explain:
|
|
|
|
if self.args.explain:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
client = HttpClient(self.args, always=True, insecure=self.insecure)
|
|
|
|
client = HttpClient(self.args, always=True, insecure=self.insecure, proxy=self.proxy)
|
|
|
|
endpoint = 'https://%s:%s' % (self.endpoint, self.port)
|
|
|
|
endpoint = 'https://%s:%s' % (self.endpoint, self.port)
|
|
|
|
|
|
|
|
|
|
|
|
for i in range(1, 30):
|
|
|
|
for i in range(1, 30):
|
|
|
|