UTs (Unit Tests)
The Makefile at root of the repository starts a local prometheus instances using
docker that's being used for the unit test for this package. So if you just run
make test
, everything is taken care of.
If you want to just run the UTs for this package, make sure you start a prometheus
server as below
docker run -d --name autopilot-prometheus-test -p 9090:9090 prom/prometheus:v2.11.1
And then run
go test -v -tags unittest