tests: Install CNI configuration files by default
Since we no longer fall back to the noop plugin when CNI configuration files are missing, and since the default sandbox_config.json test file is running without host networking, we must install the bridge and loopback configuration files by default for tests to pass. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
63c7a7c99b
commit
07ccda3395
3 changed files with 19 additions and 35 deletions
|
@ -37,6 +37,18 @@ $ cd bats
|
|||
$ ./install.sh /usr/local
|
||||
```
|
||||
|
||||
You will also need to install the [CNI](https://github.com/containernetworking/cni) plugins as
|
||||
the the default pod test template runs without host networking:
|
||||
|
||||
```
|
||||
$ go get github.com/containernetworking/cni
|
||||
$ cd "$GOPATH/src/github.com/containernetworking/cni"
|
||||
$ git checkout -q d4bbce1865270cd2d2be558d6a23e63d314fe769
|
||||
$ ./build.sh \
|
||||
$ mkdir -p /opt/cni/bin \
|
||||
$ cp bin/* /opt/cni/bin/
|
||||
```
|
||||
|
||||
Then you can run the tests on your host:
|
||||
```
|
||||
$ sudo make localintegration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue