mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 21:12:09 +03:00
0abfc97df7
[GDC-718]: https://hasurahq.atlassian.net/browse/GDC-718?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7654 GitOrigin-RevId: 1d036cd39f717fce1ce0176103e40a1309ded3af
16 lines
661 B
Haskell
16 lines
661 B
Haskell
module Test.Specs.MetricsSpec (spec) where
|
|
|
|
import Hasura.Backends.DataConnector.API (MetricsCapabilities (..))
|
|
import Test.AgentAPI (getMetrics)
|
|
import Test.Sandwich (describe, shouldNotBe)
|
|
import Test.TestHelpers (AgentClientTestSpec, it)
|
|
import Prelude
|
|
|
|
-- NOTE: We currently only check that the response is non-empty, but should probably check that
|
|
-- it conforms to the prometheus/openmetrics format at some point in the future.
|
|
spec :: MetricsCapabilities -> AgentClientTestSpec
|
|
spec MetricsCapabilities = describe "Metrics API" $ do
|
|
it "Returns a response from the /metrics endpoint" $ do
|
|
response <- getMetrics
|
|
response `shouldNotBe` ""
|