The heat_integrationtests.common.remote_client Module

class heat_integrationtests.common.remote_client.Client(host, username, password=None, timeout=300, pkey=None, channel_timeout=10, look_for_keys=False, key_filename=None)[source]

Bases: object

exec_command(cmd)[source]

Execute the specified command on the server.

Note that this method is reading whole command outputs to memory, thus shouldn’t be used for large outputs.

Returns:data read from standard output of the command.
Raises:SSHExecCommandFailed if command returns nonzero status. The exception contains command status stderr content.
test_connection_auth()[source]

Raises an exception when we can not connect to server via ssh.

class heat_integrationtests.common.remote_client.RemoteClient(server, username, password=None, pkey=None, conf=None)[source]

Bases: object

exec_command(cmd)[source]
get_boot_time()[source]
get_ip_list()[source]
get_partitions()[source]
ping_host(host)[source]
validate_authentication()[source]

Validate ssh connection and authentication.

This method raises an Exception when the validation fails.

write_to_console(message)[source]