tests/testthat/test-health.R

.client = test.client

with_mock_api({
  test_that("health", {
    response <- .client$health()
    expected <- list("name"="influxdb",
                     "message"="ready for queries and writes",
                     "status"="pass",
                     "version"="dev",
                     "commit"="7bde3413b3")
    expect_equal(response, expected)
  })
})

Try the influxdbclient package in your browser

Any scripts or data that you put into this service are public.

influxdbclient documentation built on Sept. 1, 2022, 5:07 p.m.