OxL Справочник OxL
РусскийEnglish

data TestCluster

The environment with cluster(nodes: n, roles: [...], db: ...) as c yields.

Example:

oxl✓ проверяется в CI
test integ "one node of role store" with cluster(nodes: 1, roles: ["store"]) as c {
  assert_eq(c.roles.len(), 1)
}
pub(api) data TestCluster

С версии. 1.0.0-beta

Поля

pub nodes: u32

Number of nodes the test asked for.

pub roles: List<str>

Roles of the nodes.

Определено в: std/core/testing.oxl:118

См. также