-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a small test which runs a basic plugin (#903)
This change also modifies our Makefile and CI scripts so that the tests can be run on a separate kind cluster. Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
- Loading branch information
1 parent
06f638e
commit bf2fa52
Showing
5 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
SCRIPTS_DIR="$( cd "$( dirname "$0" )" >/dev/null 2>&1 && pwd )" | ||
DIR=$(cd $SCRIPTS_DIR; cd ..; pwd) | ||
|
||
cluster="integration" | ||
testImage="sonobuoy/testimage:v0.1" | ||
|
||
if ! kind get clusters | grep -q "^$cluster$"; then | ||
kind create cluster --name $cluster | ||
# Although the cluster has been created, not all the pods in kube-system are created/available | ||
sleep 20 | ||
fi | ||
|
||
# Build and load the test plugin image | ||
make -C $DIR/test/integration/testImage | ||
kind load docker-image --name $cluster $testImage | ||
|
||
# Build and load the sonobuoy image and run integration tests | ||
make -C $DIR KIND_CLUSTER=$cluster deploy_kind | ||
KUBECONFIG="$(kind get kubeconfig-path --name="$cluster")" VERBOSE=true make -C $DIR int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters