plugins: adds new no-op plugin that may be used as a test-double

Plugin can be configured to record all inputs and to respond with
arbitrary stdout or error message.  Will support upcoming integration
testing.
This commit is contained in:
Gabe Rosenhouse
2016-07-14 13:59:10 -07:00
parent 7f098f7c4a
commit 5835c2bbb1
7 changed files with 319 additions and 3 deletions

2
build
View File

@ -20,7 +20,7 @@ echo "Building reference CLI"
go install "$@" ${REPO_PATH}/cnitool
echo "Building plugins"
PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/*"
PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/* plugins/test/*"
for d in $PLUGINS; do
if [ -d $d ]; then
plugin=$(basename $d)