'Wait for the CloudStack simulator to return credentials.
:rtype: dict[str, str]'

def _get_credentials(self):

    client = HttpClient(self.args, always=True)
    endpoint = ('%s/admin.json' % self.endpoint)
    for _ in range(1, 30):
        display.info(('Waiting    for    CloudStack    credentials:    %s' % endpoint), verbosity=1)
        response = client.get(endpoint)
        if (response.status_code == 200):
            try:
                return response.json()
            except HttpError as ex:
                display.error(ex)
        time.sleep(30)
    raise ApplicationError('Timeout    waiting    for    CloudStack    credentials.')
