Profiling endpoints for mcs (#1)

start and stop profiling endpoints, test includes and many fixes for
policies

deleting duplicated file
This commit is contained in:
Lenin Alevski
2020-04-02 09:57:59 -07:00
committed by GitHub
parent ed3cda28ee
commit 161941d544
25 changed files with 1801 additions and 34 deletions

View File

@@ -7,11 +7,17 @@ mcs:
swagger-gen:
@echo "Generating swagger server code from yaml"
@swagger generate server -A mcs -f ./swagger.yml -r minio_copyright.txt
@swagger generate server -A mcs -f ./swagger.yml -r NOTICE
build:
@(cd portal-ui; yarn install; make build; cd ..)
@(CGO_ENABLED=0 go build --tags kqueue --ldflags "-s -w" -o mcs ./cmd/mcs-server)
test:
@(go test ./restapi -v)
coverage:
@(go test ./restapi -v -coverprofile=coverage.out && go tool cover -html=coverage.out && open coverage.html)
clean:
@rm -vf mcs