From 4853c7d5ca861d5b0f6175e3b59aceacf208f45c Mon Sep 17 00:00:00 2001 From: kovagoadi Date: Sat, 22 Nov 2025 14:11:51 +0100 Subject: [PATCH] Added assertions --- scripts/test-renovate.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/test-renovate.sh b/scripts/test-renovate.sh index 37388ef..45d1227 100755 --- a/scripts/test-renovate.sh +++ b/scripts/test-renovate.sh @@ -21,12 +21,18 @@ if grep -q "ERROR" renovate-output.log; then exit 1 fi -# Example assertion: Check if a specific dependency update is planned -# echo "Checking for expected update..." -# if ! grep -q "update-dependency" renovate-output.log; then -# echo "Error: Expected dependency update not found." -# exit 1 -# fi +# Specific assertions based on the test repo state +echo "Checking for expected nginx update..." +if ! grep -q "renovate/nginx-1.x" renovate-output.log; then + echo "Error: Expected 'renovate/nginx-1.x' branch not found in output." + exit 1 +fi + +echo "Checking for onboarding PR..." +if ! grep -q "Would create onboarding PR" renovate-output.log; then + echo "Error: Expected onboarding PR creation not found." + exit 1 +fi echo "Test passed!" rm renovate-output.log