mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Needs != for this. Do not try to test client for functions go if there
This commit is contained in:
@@ -118,7 +118,7 @@ func bindAndValidate(c *gin.Context, log logrus.FieldLogger, method string, wrou
|
|||||||
|
|
||||||
wroute.Route.SetDefaults()
|
wroute.Route.SetDefaults()
|
||||||
|
|
||||||
if err = wroute.Validate(method == http.MethodPost); err != nil {
|
if err = wroute.Validate(method != http.MethodPost); err != nil {
|
||||||
log.WithError(err).Debug(models.ErrRoutesCreate)
|
log.WithError(err).Debug(models.ErrRoutesCreate)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
2
test.sh
2
test.sh
@@ -46,7 +46,7 @@ container_ip)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fn)
|
go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fn| grep -v tmp/go/src)
|
||||||
# go test -v gitlab-odx.oracle.com/odx/functions/api/runner/drivers/docker
|
# go test -v gitlab-odx.oracle.com/odx/functions/api/runner/drivers/docker
|
||||||
|
|
||||||
cd fn && make build && make test
|
cd fn && make build && make test
|
||||||
|
|||||||
Reference in New Issue
Block a user