From 62cf3726d4d0530984b347ffa2c4cab30c66660a Mon Sep 17 00:00:00 2001 From: Bruno Pimentel Date: Mon, 22 Apr 2024 09:22:29 -0300 Subject: [PATCH] rpm tests: Add unexpected file size integration test scenario Signed-off-by: Bruno Pimentel --- tests/integration/test_rpm.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/integration/test_rpm.py b/tests/integration/test_rpm.py index a197a50e2..e19c564fa 100644 --- a/tests/integration/test_rpm.py +++ b/tests/integration/test_rpm.py @@ -36,6 +36,20 @@ ), id="rpm_invalid_checksum", ), + pytest.param( + utils.TestParameters( + repo="https://github.com/cachito-testing/cachi2-rpm", + ref="e7f9d77145a2e44e766aaae99547a665d9969d26", + packages=({"path": ".", "type": "rpm"},), + flags=["--dev-package-managers"], + check_output=False, + check_deps_checksums=False, + check_vendor_checksums=False, + expected_exit_code=2, + expected_output="Unexpected file size", + ), + id="rpm_incorrect_size", + ), ], ) def test_rpm_packages(