diff options
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r-- | yarns/900-implements.yarn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn new file mode 100644 index 0000000..5b9d0f9 --- /dev/null +++ b/yarns/900-implements.yarn @@ -0,0 +1,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" |