Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Root folder of this project Root = filepath.Join(filepath.Dir(b), "..", "..") // PromDir is the filepath to the prometheus directory PromDir = filepath.Join(Root, ".cache", "prometheus") // PromBin is the filepath to the Prometheus binary PromBin = filepath.Join(PromDir, "prometheus") // PromtoolBin is the filepath to the promtool binary PromtoolBin = filepath.Join(PromDir, "promtool") )
Functions ¶
Types ¶
type Suite ¶
Suite holds a dbtest.Suite and a lazily started prometheus server. Each Suite holds its own Prometheus server. Suites can be run in parallel.
func (*Suite) PrometheusAPIClient ¶
PrometheusAPIClient starts a prometheus server and returns a client to it. The started prometheus is shared in a testsuite.
func (*Suite) PrometheusURL ¶
PrometheusURL starts a prometheus server and returns the api url to it. The started prometheus is shared in a testsuite.
func (*Suite) TearDownSuite ¶
func (ts *Suite) TearDownSuite()
TearDownSuite stops prometheus and drops the temporary database.
Click to show internal directories.
Click to hide internal directories.