Update cri validation test version.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2018-03-26 22:20:51 +00:00
parent 8958b489ba
commit 74e45c0392
4 changed files with 7 additions and 2 deletions

View File

@ -74,7 +74,8 @@ script:
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi
- if [ "$GOOS" = "linux" ]; then
sudo PATH=$PATH containerd -log-level debug &> /tmp/containerd-cri.log &
sudo PATH=$PATH GOPATH=$GOPATH critest --runtime-endpoint=/var/run/containerd/containerd.sock --ginkgo-flags=--nodes=8 validation ;
sudo ctr version ;
sudo PATH=$PATH GOPATH=$GOPATH critest --runtime-endpoint=/var/run/containerd/containerd.sock --parallel=8 ;
exit_code=$? ;
test $exit_code -ne 0 && cat /tmp/containerd-cri.log ;
sudo pkill containerd ;

View File

@ -127,6 +127,8 @@ func testDaemonRuntimeRoot(t *testing.T, noShim bool) {
[plugins.linux]
no_shim = %v
runtime_root = "%s"
[plugins.cri]
stream_server_port = "0"
`, noShim, runtimeRoot)
client, _, cleanup := newDaemonWithConfig(t, configTOML)

View File

@ -42,6 +42,7 @@ bash -c 'cat >'$CNI_CONFIG_DIR'/10-containerd-net.conflist <<EOF
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"promiscMode": true,
"ipam": {
"type": "host-local",
"subnet": "10.88.0.0/16",

View File

@ -20,7 +20,8 @@
#
set -eu -o pipefail
CRITEST_COMMIT=b184f9aefe60a4441330e615ee20634ee26474fb
go get -u github.com/onsi/ginkgo/ginkgo
CRITEST_COMMIT=207e773f72fde8d8aed1447692d8f800a6686d6c
go get -d github.com/kubernetes-incubator/cri-tools/...
cd $GOPATH/src/github.com/kubernetes-incubator/cri-tools
git checkout $CRITEST_COMMIT