Skip to main content

DECLARED_ENV

Constant DECLARED_ENV 

Source
pub const DECLARED_ENV: &'static str;
Expand description

#2685: the environment variable bynk test --smoke sets for bynk, the path of a file holding a JSON object from each route’s key (<context> <service> <METHOD> <path>) to the statuses its handler can answer. bynk computes it, since the response set is walked by bynk-ide, which the bynk binary does not carry; the test runtime warns (bynk.test.smoke_undeclared_status) when a smoke case gets a non-5xx answer outside its route’s set. Without it, as in a direct bynk test --smoke, a smoke run compares nothing. The file a smoke run writes the declared statuses it saw to.