From d3c02618767b065e27f3301e07098279ca8f6edf Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 11 Oct 2019 13:33:53 +0200 Subject: [PATCH] hack/validate/deprecate-integration-cli: add integration-cli/*_api_*.go The intent of this check is to not add integration tests that use the CLI to test API functionality, so check for changes in "API" tests as well, now that the `integration/` suite has matured enough to develop new tests, or migrate existing ones. Signed-off-by: Sebastiaan van Stijn --- hack/validate/deprecate-integration-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/validate/deprecate-integration-cli b/hack/validate/deprecate-integration-cli index 1260166b1f..0ec1709834 100755 --- a/hack/validate/deprecate-integration-cli +++ b/hack/validate/deprecate-integration-cli @@ -5,7 +5,7 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${SCRIPTDIR}/.validate" new_tests=$( - validate_diff --diff-filter=ACMR --unified=0 -- 'integration-cli/*_cli_*.go' | + validate_diff --diff-filter=ACMR --unified=0 -- 'integration-cli/*_api_*.go' 'integration-cli/*_cli_*.go' | grep -E '^\+func (.*) Test' || true )