This contains scripts which support the following:
create_dog
– Create dog with provided namelist_dogs
– List all dog namesdelete_dog
– Delete dog with provided name
These scripts demonstrate the sampletester
tool.
See related section in the TESTING_GUIDE
here:
Testing code samples in multiple languages
This includes an example of sampletester
tests confirming that scripts in Ruby and BASH have the same, correct behavior.
# $ sampletester -s *.yaml
PASSED: Test environment: "ruby"
PASSED: Test suite: "Dog Samples"
PASSED: Test case: "Create Dog"
PASSED: Test case: "Delete Dog (exists)"
PASSED: Test case: "Delete Dog (does not exist)"
PASSED: Test environment: "bash"
PASSED: Test suite: "Dog Samples"
PASSED: Test case: "Create Dog"
PASSED: Test case: "Delete Dog (exists)"
PASSED: Test case: "Delete Dog (does not exist)"
Tests passe