grafana
The atago project wrote these specs on its own initiative and runs them in its own CI, to exercise atago against a real program. They are not grafana’s official test suite, and the grafana project is not affiliated with atago.
Summary #
1 suite · 3 scenarios
Contents #
- grafana (self-hosted observability platform) — 3 scenarios
grafana (self-hosted observability platform) #
Source: test/e2e/thirdparty/grafana/grafana.atago.yaml
Scenario: the server boots and reports health and build info #
Given #
- Background service
grafanais started:grafana server --homepath "$GF_PATHS_HOME".
When #
# HTTP GET /api/health
Then #
- HTTP status is
200 - body at
$.databaseequalsok - body at
$.versionmatches/^[0-9]+\.[0-9]+\.[0-9]+/
Scenario: anonymous visitors are redirected to the login page #
Given #
- Background service
grafanais started:grafana server --homepath "$GF_PATHS_HOME".
When #
# HTTP GET /api/health
# HTTP GET /
# HTTP GET /api/search
Then #
- after
HTTP GET /:- HTTP status is
302 - header
Locationcontains/login
- HTTP status is
- after
HTTP GET /api/search:- HTTP status is
401
- HTTP status is
Scenario: a dashboard and datasource lifecycle over the REST API #
Given #
- Background service
grafanais started:grafana server --homepath "$GF_PATHS_HOME".
When #
# HTTP GET /api/health
# HTTP GET /api/org
# HTTP POST /api/dashboards/db
# capture ${dash_uid} from the response body
# HTTP GET /api/dashboards/uid/${dash_uid}
# HTTP GET /api/search?query=atago
# HTTP POST /api/datasources
Then #
- after
HTTP GET /api/org:- HTTP status is
200 - body at
$.nameequalsMain Org.
- HTTP status is
- after
HTTP POST /api/dashboards/db:- HTTP status is
200 - body at
$.statusequalssuccess
- HTTP status is
- after
HTTP GET /api/dashboards/uid/${dash_uid}:- HTTP status is
200 - body at
$.dashboard.titleequalsatago e2e dashboard
- HTTP status is
- after
HTTP GET /api/search?query=atago:- HTTP status is
200 - body at
$has length 1
- HTTP status is
- after
HTTP POST /api/datasources:- HTTP status is
200 - body at
$.messageequalsDatasource added
- HTTP status is