hvac/tests/utils.py
def start(self):
        """Launch the vault server process and wait until its online and initialized."""
        command = ['vault', 'server', '-config=' + self.config_path]

        self._process = subprocess.Popen(command,
                                         stdout=subprocess.PIPE,
                                         stderr=subprocess.PIPE)

        attempts_left = 20
        last_exception = None
        while attempts_left > 0:
            try:
                self.client.is_initialized()
                return
            except Exception as ex:
                logger.debug('Waiting for Vault to start')

                time.sleep(0.5)

                attempts_left -= 1
                last_exception = ex

        raise Exception('Unable to start Vault in background: {0}'.format(last_exception))
Launch the vault server process and wait until its online and initialized.
Launch the vault server process and wait until its online and initialized.
Launch the vault server process and wait until its online and initialized .
def start(self):
        command = ['vault', 'server', '-config=' + self.config_path]
        self._process = subprocess.Popen(command,
                                         stdout=subprocess.PIPE,
                                         stderr=subprocess.PIPE)
        attempts_left = 20
        last_exception = None
        while attempts_left > 0:
            try:
                self.client.is_initialized()
                return
            except Exception as ex:
                logger.debug('Waiting for Vault to start')
                time.sleep(0.5)
                attempts_left -= 1
                last_exception = ex
        raise Exception('Unable to start Vault in background: {0}'.format(last_exception))
def start ( self ) : command = [ 'vault' , 'server' , '-config=' + self . config_path ] self . _process = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) attempts_left = 20 last_exception = None while attempts_left > 0 : try : self . client . is_initialized ( ) return except Exception as ex : logger . debug ( 'Waiting for Vault to start' ) time . sleep ( 0.5 ) attempts_left -= 1 last_exception = ex raise Exception ( 'Unable to start Vault in background: {0}' . format ( last_exception ) )
Launch the vault server process and wait until its online and initialized.
Launch the vault server process and wait until its online and initialized .
"""Launch the vault server process and wait until its online and initialized."""
self