mirror of
https://github.com/hanzoai/beego.git
synced 2026-11-17 13:19:25 +00:00
Patches against upstream beego/[email protected]: server/web/admin_controller.go — promhttp.Handler → luxfi/metric HTTP handler server/web/filter/prometheus/ — luxfi/metric backend, drops MustRegister client/httplib/filter/prometheus/ — luxfi/metric backend client/orm/filter/prometheus/ — luxfi/metric backend core/config/etcd/config.go — drop grpc-ecosystem/go-grpc-prometheus interceptors (etcd dialing has no observability through this path) Default closure: 0 grpc, 0 protobuf, 0 prometheus/client_golang. Consumers in hanzoai/iam see the fork through workspace mode.
18 lines
349 B
Bash
18 lines
349 B
Bash
#!/bin/bash
|
|
|
|
docker-compose -f "$(pwd)/scripts/test_docker_compose.yaml" up -d
|
|
|
|
export ORM_DRIVER=mysql
|
|
export TZ=UTC
|
|
export ORM_SOURCE="beego:test@tcp(localhost:13306)/orm_test?charset=utf8"
|
|
|
|
# wait for services in images ready
|
|
sleep 5
|
|
|
|
go test "$(pwd)/..."
|
|
|
|
# clear all container
|
|
docker-compose -f "$(pwd)/scripts/test_docker_compose.yaml" down
|
|
|
|
|