Added assertions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user