Bläddra i källkod

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 <github@gone.nl>
Sebastiaan van Stijn 5 år sedan
förälder
incheckning
d3c0261876
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      hack/validate/deprecate-integration-cli

+ 1 - 1
hack/validate/deprecate-integration-cli

@@ -5,7 +5,7 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"
 source "${SCRIPTDIR}/.validate"
 
 
 new_tests=$(
 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
 	grep -E '^\+func (.*) Test' || true
 )
 )