summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
blob: 5b9d0f9c1230106f63884f42fd92e9c942da5555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Appendix: Scenario step implementations

## Configuration

Save the name of the server to be tested, so it doesn't need to be
repeated for every step.

    IMPLEMENTS GIVEN server name is (.+)
    echo "SERVER=$MATCH_1" >> "$DATADIR/config.sh"

## Ping

Does the server respond to a ping?

    IMPLEMENTS THEN server responds to ping
    . "$DATADIR/config.sh"
    ping -c1 "$SERVER"