• Marek Vavrusa's avatar
    scenario: STEP ASSERT <expr> · 6477b02a
    Marek Vavrusa authored
    this allows to make assertions about test environment,
    for example number of received queries,
    average RTT, number of performed steps etc.
    
    ranges are in variables: `RANGE = [...]`
    step is in variable: `STEP`
    
    example:
    STEP QUERY
    ...
    
    ; Check whether the query was received
    STEP ASSERT 0 < RANGE[0].received < 2
    ; This fails
    STEP ASSERT RANGE[0].received > 100
    
    it also evaluates subexpressions for useful
    failure information
    6477b02a
Name
Last commit
Last update
contrib Loading commit data...
pydnstest Loading commit data...
sets Loading commit data...
template Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
SCENARIO_EXAMPLE.rst Loading commit data...
SCENARIO_GUIDE.rst Loading commit data...
deckard.py Loading commit data...
knotd_master_run.sh Loading commit data...
knotd_slave_run.sh Loading commit data...
kresd_run.sh Loading commit data...
pdns_run.sh Loading commit data...
platform.mk Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...