Added assertions
This commit is contained in:
@@ -21,12 +21,18 @@ if grep -q "ERROR" renovate-output.log; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Example assertion: Check if a specific dependency update is planned
|
# Specific assertions based on the test repo state
|
||||||
# echo "Checking for expected update..."
|
echo "Checking for expected nginx update..."
|
||||||
# if ! grep -q "update-dependency" renovate-output.log; then
|
if ! grep -q "renovate/nginx-1.x" renovate-output.log; then
|
||||||
# echo "Error: Expected dependency update not found."
|
echo "Error: Expected 'renovate/nginx-1.x' branch not found in output."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
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!"
|
echo "Test passed!"
|
||||||
rm renovate-output.log
|
rm renovate-output.log
|
||||||
|
|||||||
Reference in New Issue
Block a user