mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
test: cloudstack-test-container v1.2.0 (#44764)
This commit is contained in:
parent
1f2ae0d4cd
commit
56996c7348
1 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ class CsCloudProvider(CloudProvider):
|
||||||
super(CsCloudProvider, self).__init__(args, config_extension='.ini')
|
super(CsCloudProvider, self).__init__(args, config_extension='.ini')
|
||||||
|
|
||||||
# The simulator must be pinned to a specific version to guarantee CI passes with the version used.
|
# The simulator must be pinned to a specific version to guarantee CI passes with the version used.
|
||||||
self.image = 'quay.io/ansible/cloudstack-test-container:1.1.0'
|
self.image = 'quay.io/ansible/cloudstack-test-container:1.2.0'
|
||||||
self.container_name = ''
|
self.container_name = ''
|
||||||
self.endpoint = ''
|
self.endpoint = ''
|
||||||
self.host = ''
|
self.host = ''
|
||||||
|
@ -163,7 +163,7 @@ class CsCloudProvider(CloudProvider):
|
||||||
docker_pull(self.args, self.image)
|
docker_pull(self.args, self.image)
|
||||||
docker_run(self.args, self.image, ['-d', '-p', '8888:8888', '--name', self.container_name])
|
docker_run(self.args, self.image, ['-d', '-p', '8888:8888', '--name', self.container_name])
|
||||||
if not self.args.explain:
|
if not self.args.explain:
|
||||||
display.notice('The CloudStack simulator will probably be ready in 5 - 10 minutes.')
|
display.notice('The CloudStack simulator will probably be ready in 2 - 4 minutes.')
|
||||||
|
|
||||||
container_id = get_docker_container_id()
|
container_id = get_docker_container_id()
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ class CsCloudProvider(CloudProvider):
|
||||||
except SubprocessError:
|
except SubprocessError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
time.sleep(30)
|
time.sleep(10)
|
||||||
|
|
||||||
raise ApplicationError('Timeout waiting for CloudStack service.')
|
raise ApplicationError('Timeout waiting for CloudStack service.')
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ class CsCloudProvider(CloudProvider):
|
||||||
except HttpError as ex:
|
except HttpError as ex:
|
||||||
display.error(ex)
|
display.error(ex)
|
||||||
|
|
||||||
time.sleep(30)
|
time.sleep(10)
|
||||||
|
|
||||||
raise ApplicationError('Timeout waiting for CloudStack credentials.')
|
raise ApplicationError('Timeout waiting for CloudStack credentials.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue