waft.framework_unit_tests.test_system.test_clients.test_client_advanced module¶
Advanced integration tests for SSH and Local client functionality.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestClientTypeSpecific¶
Bases:
objectTest client-type specific functionality.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_client_is_remote_property(system_client: ClientBase)¶
Test is_remote property.
- test_local_client_subprocess_execution(system_client: ClientBase)¶
Test LocalClient subprocess execution.
- test_ssh_client_is_unix_property(system_client: ClientBase)¶
Test is_unix property for SSH client.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestCommandExecutionWithInput¶
Bases:
objectTest command execution with input via stdin.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_command_with_list_input(system_client: ClientBase)¶
Test command execution with list of inputs via stdin.
- test_command_with_string_input(system_client: ClientBase)¶
Test command execution with string input via stdin.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestCommandOutput¶
Bases:
objectTest command output handling.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_multiline_output(system_client: ClientBase)¶
Test handling of multiline output.
- test_stderr_capture(system_client: ClientBase)¶
Test that stderr is properly captured.
- test_stdout_capture(system_client: ClientBase)¶
Test that stdout is properly captured.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestCommandTimeout¶
Bases:
objectTest command timeout handling.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_command_timeout_raises(system_client: ClientBase)¶
Test that long-running command times out.
- test_command_with_custom_timeout(system_client: ClientBase)¶
Test command execution with custom timeout.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestComplexCommands¶
Bases:
objectTest complex command scenarios.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_command_with_pipes(system_client: ClientBase)¶
Test command with pipes.
- test_command_with_quotes(system_client: ClientBase)¶
Test command with quoted arguments.
- test_command_with_redirection(system_client: ClientBase)¶
Test command with output redirection.
- test_command_with_special_characters(system_client: ClientBase)¶
Test command with special characters.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestConnectionManagement¶
Bases:
objectTest connection management and resilience.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_connection_resilience_after_network_issue(system_client: ClientBase)¶
Test that client can recover from network issues.
- test_reset_connection(system_client: ClientBase)¶
Test that connection reset works and connection can be reestablished.
- test_test_connection(system_client: ClientBase)¶
Test that test_connection returns True for valid connection.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestCustomExceptions¶
Bases:
objectTest custom exception handling.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_custom_exception_message(system_client: ClientBase)¶
Test custom exception message.
- test_custom_exception_on_failure(system_client: ClientBase)¶
Test raising custom exception on command failure.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestEnvironmentVariables¶
Bases:
objectTest environment variable handling.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_add_env_var(system_client: ClientBase)¶
Test adding environment variable.
- test_add_to_path(system_client: ClientBase)¶
Test adding directory to PATH.
- test_add_to_path_idempotent(system_client: ClientBase)¶
Test that adding same path twice doesn’t duplicate it.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestExpectedExitCodes¶
Bases:
objectTest handling of expected exit codes.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_expected_non_zero_exit_code(system_client: ClientBase)¶
Test command with expected non-zero exit code.
- test_none_expected_exit_code_no_check(system_client: ClientBase)¶
Test that None expected_exit_code skips validation.
- test_unexpected_exit_code_raises(system_client: ClientBase)¶
Test that unexpected exit code raises exception.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestFileTransferEdgeCases¶
Bases:
objectTest file transfer edge cases.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_file_transfer_overwrites_existing(system_client: ClientBase, remote_test_file_path: PurePath)¶
Test that file transfer overwrites existing files.
- test_get_file_creates_local_directory(system_client: ClientBase)¶
Test that getting file to a new directory works (via SFTP mkdir or manual).
- test_send_file_creates_remote_directory(system_client: ClientBase)¶
Test that sending file to non-existent directory works.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestRetryLogic¶
Bases:
objectTest retry logic for commands.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_custom_retry_handler(system_client: ClientBase)¶
Test command execution with custom retry handler.
- test_retry_on_failure(system_client: ClientBase)¶
Test that retry handler doesn’t retry on expected failures.
- class waft.framework_unit_tests.test_system.test_clients.test_client_advanced.TestSudoCommands¶
Bases:
objectTest sudo command execution.
- pytestmark = [Mark(name='integration', args=(), kwargs={})]¶
- test_command_without_sudo(system_client: ClientBase)¶
Test regular command execution without sudo.
- test_sudo_command_execution(system_client: ClientBase)¶
Test that sudo commands execute correctly.
- waft.framework_unit_tests.test_system.test_clients.test_client_advanced.local_test_file_path() Path¶
Return path to local test file.
- waft.framework_unit_tests.test_system.test_clients.test_client_advanced.remote_test_file_path(waft: Waft) PurePath¶
Return path to test file on remote machine.
- waft.framework_unit_tests.test_system.test_clients.test_client_advanced.system_client(system: SystemActions) ClientBase¶
Return client connected to the system.