deprecate-integration-cli 677 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. # Check that no new tests are being added to integration-cli
  3. export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. source "${SCRIPTDIR}/.validate"
  5. new_tests=$(
  6. validate_diff --diff-filter=ACMR --unified=0 -- 'integration-cli/*_cli_*.go' |
  7. grep -E '^\+func (.*) Test' || true
  8. )
  9. if [ -z "$new_tests" ]; then
  10. echo 'Congratulations! No new tests added to integration-cli.'
  11. exit
  12. fi
  13. echo "The following new tests were added to integration-cli:"
  14. echo
  15. echo "$new_tests"
  16. echo
  17. echo "integration-cli is deprecated. Please add an API integration test to"
  18. echo "./integration/COMPONENT/. See ./TESTING.md for more details."
  19. echo
  20. exit 1