Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
switch to critest
Browse files Browse the repository at this point in the history
Signed-off-by: heartlock <[email protected]>
  • Loading branch information
heartlock committed May 19, 2017
1 parent eeadbe2 commit 3c55eb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hack/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function start_frakti() {
--listen="${FRAKTI_LISTEN_ADDR}" \
--hyper-endpoint="127.0.0.1:${HYPERD_PORT}" \
--logtostderr \
--v=5 1>&2 & \
--v=3 1>&2 & \
FRAKTI_PID=$!
}

Expand Down Expand Up @@ -124,6 +124,14 @@ EOF'
sudo cp bin/* /opt/cni/bin/
}

function start_critest() {
# install critest
go get github.com/kubernetes-incubator/cri-tools/cmd/critest

# run critest
sudo env PATH=$PATH:$GOPATH/bin GOPATH=$GOPATH critest -r /var/run/frakti.sock -f="image" v
}

FRAKTI_LISTEN_ADDR=${FRAKTI_LISTEN_ADDR:-/var/run/frakti.sock}
HYPERD_PORT=${HYPERD_PORT:-22318}
HYPERD_HOME=${HYPERD_HOME:-/var/lib/hyper}
Expand All @@ -146,7 +154,9 @@ runTests() {

start_frakti

frakti::test::e2e
#frakti::test::e2e

start_critest
}

runTests
Expand Down
2 changes: 2 additions & 0 deletions pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ func (s *FraktiManager) ListImages(ctx context.Context, req *kubeapi.ListImagesR
glog.Infof("Image black hole in %s:\n%v", imageServiceList[0].ServiceName(), getImageListDifference(imageMapList[1], imageMapList[0]))
}

glog.V(3).Infof("List images response %v", intersectList)

return &kubeapi.ListImagesResponse{
Images: intersectList,
}, nil
Expand Down

0 comments on commit 3c55eb3

Please sign in to comment.