Files
gerrit/lib/nongoogle_test.sh
David Ostrovsky ceb5ec1746 Git transport: Add option to switch to using MINA ssh client
Allow to optionally switch to using Apache MINA sshd client. This option
was recently added to JGit implementation. Per default JCraft JSch ssh
client is still used, but in future releases the default will be swapped
to Apache MINA ssh client.

Additional jgit module ssh-apache and transitive dependency artifact
sshd-sftp are added as new dependencies.

Per default, acceptance tests are still using JSch ssh client. To switch
using Apache MINA ssh client in acceptance tests, environment variable
can be passed: SSH_CLIENT_IMPLEMENTATION=JSCH|APACHE. To set up preferred
client type for the acceptance tests from the IDE, Java system property
can be set: -Dgerrit.sshClientImplementation=JSCH|APACHE.

Test Plan:

1. To run the tests using JSch ssh client:

  $ bazel test --test_env=SSH_CLIENT_IMPLEMENTATION=JSCH //...

2. To run the tests using Apache MINA ssh client:

  $ bazel test --test_env=SSH_CLIENT_IMPLEMENTATION=APACHE //...

Feature: Issue 12599
Change-Id: Ib4d288bbf390157becaebea870d48963a78d7811
2021-03-31 09:36:31 +00:00

55 lines
814 B
Bash
Executable File

#!/bin/sh
# This test ensures that new dependencies in nongoogle.bzl go through LC review.
set -eux
bzl=$(pwd)/tools/nongoogle.bzl
TMP=$(mktemp -d || mktemp -d -t /tmp/tmp.XXXXXX)
grep 'name = "[^"]*"' ${bzl} | sed 's|^[^"]*"||g;s|".*$||g' | sort > $TMP/names
cat << EOF > $TMP/want
cglib-3_2
commons-io
docker-java-api
docker-java-transport
dropwizard-core
duct-tape
eddsa
flogger
flogger-log4j-backend
flogger-system-backend
guava
guice-assistedinject
guice-library
guice-servlet
httpasyncclient
httpcore-nio
j2objc
jackson-annotations
jackson-core
jimfs
jna
jruby
mina-core
nekohtml
objenesis
openid-consumer
soy
sshd-mina
sshd-osgi
sshd-sftp
testcontainers
truth
truth-java8-extension
truth-liteproto-extension
truth-proto-extension
tukaani-xz
visible-assertions
xerces
EOF
diff -u $TMP/names $TMP/want