From 1a92271ec9531e6e359ccdd744e9bf5b1200ca31 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 15 Nov 2024 11:46:20 +0100 Subject: [PATCH] tests: Reproducer for pushing large files Signed-off-by: Jakub Jelen --- tests/unit/scp_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/scp_test.py b/tests/unit/scp_test.py index dd2d1b9f9..c44af8b79 100644 --- a/tests/unit/scp_test.py +++ b/tests/unit/scp_test.py @@ -120,3 +120,8 @@ def test_get_large(dst_path, src_path_large, ssh_scp, large_payload): """Check that SCP file download gets over 64kB of data.""" ssh_scp.get(str(src_path_large), str(dst_path)) assert dst_path.read_bytes() == large_payload + +def test_put_large(dst_path, src_path_large, ssh_scp, large_payload): + """Check that SCP file download gets over 64kB of data.""" + ssh_scp.put(str(src_path_large), str(dst_path)) + assert dst_path.read_bytes() == large_payload