Skip to content

Commit

Permalink
prepare for libovsdb replacement (#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
gugulee committed Mar 8, 2023
1 parent d71a314 commit 3259b91
Show file tree
Hide file tree
Showing 54 changed files with 17,941 additions and 204 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ scan:
.PHONY: ut
ut:
ginkgo -mod=mod -progress --always-emit-ginkgo-writer --slow-spec-threshold=60s test/unittest
go test ./pkg/...

.PHONY: ipam-bench
ipam-bench:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ require (
github.com/docker/docker v23.0.1+incompatible
github.com/emicklei/go-restful/v3 v3.10.1
github.com/evanphx/json-patch/v5 v5.6.0
github.com/go-logr/stdr v1.2.2
github.com/golang/mock v1.6.0
github.com/greenpau/ovsdb v1.0.3
github.com/k8snetworkplumbingwg/network-attachment-definition-client v1.4.0
github.com/mdlayher/arp v0.0.0-20220512170110-6706a2966875
Expand Down Expand Up @@ -105,7 +107,6 @@ require (
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
Expand All @@ -115,7 +116,6 @@ require (
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/cadvisor v0.46.0 // indirect
github.com/google/cel-go v0.13.0 // indirect
Expand Down
8 changes: 8 additions & 0 deletions hack/mockgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

# require mockgen v1.6.0+
go generate ./mocks
8 changes: 8 additions & 0 deletions mocks/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ovs

/*
Package mocks will have all the mocks
*/

// OvnClient mocks
//go:generate mockgen -source=../pkg/ovs/interface.go -destination=./pkg/ovs/interface.go -package=ovs

0 comments on commit 3259b91

Please sign in to comment.