From dbd79050e706aed262dddfdfa5f4c60a55730b61 Mon Sep 17 00:00:00 2001 From: Ben Alkov Date: Fri, 15 Dec 2023 09:48:09 -0500 Subject: [PATCH] feat(int tests): add "incorrect checksum" scenario STONEBLD-1895 Signed-off-by: Ben Alkov --- tests/integration/test_yarn.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/integration/test_yarn.py b/tests/integration/test_yarn.py index 5a7a7a4c6..c9d3bdda6 100644 --- a/tests/integration/test_yarn.py +++ b/tests/integration/test_yarn.py @@ -65,6 +65,20 @@ ), id="yarn_immutable_installs", ), + pytest.param( + utils.TestParameters( + repo="https://github.com/cachito-testing/cachi2-yarn-berry.git", + ref="c5268f91f0a0b68fa72d4f2c3a570d348d194241", + packages=({"path": ".", "type": "yarn"},), + check_output=False, + check_deps_checksums=False, + check_vendor_checksums=False, + flags=["--dev-package-managers"], + expected_exit_code=1, + expected_output="typescript@npm:5.3.3: The remote archive doesn't match the expected checksum", + ), + id="yarn_incorrect_checksum", + ), ], ) def test_yarn_packages(