diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-04-21 16:28:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-04-21 16:28:10 +0300 |
commit | da7a8042e1b3b620037216860573c9e0d13eb506 (patch) | |
tree | 1b5696656af24857aed9926b213710746aea579f | |
parent | feba08680014a7d2618af4f0973f5066b275279a (diff) | |
download | server-yarns-da7a8042e1b3b620037216860573c9e0d13eb506.tar.gz |
Add test suite for git.qvarnlabs.net
-rw-r--r-- | git.qvarnlabs.net.yarn | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/git.qvarnlabs.net.yarn b/git.qvarnlabs.net.yarn new file mode 100644 index 0000000..ee0f99f --- /dev/null +++ b/git.qvarnlabs.net.yarn @@ -0,0 +1,53 @@ +--- +title: System tests for git.qvarnlabs.net +author: Lars Wirzenius +version: 2017-04-21 +... + +# Introduction + +This is a system test suite written in [yarn][]. They test the various +aspects of the QvarnLabs git server. + +[yarn]: http://liw.fi/cmdtest/ + + +## Configuration and running the test suite + +To run the test suite, specify the server address that is to be +tested. In order to be able to run these tests against a new server, +before DNS gets updated, the domain names are not hardcoded. Instead, +you need to specify the address (IP address or DNS name) of the +server, and the tests pretend it has whatever service names in DNS +that need to be updated. + +Do this with: + + EXAMPLE + yarn --env ADDRESS=new.example.com ... + + +# git.qvarnlabs.net + +`git.qvarnlabs.net` is the publically advertised address for the +company git server Over HTTP it exposes cgit for browing public +repositories. + + SCENARIO git.qvarnlabs.net + GIVEN server is also known as git.qvarnlabs.net + + WHEN user fetches http://git.qvarnlabs.net/ + THEN HTTP status is 200 + AND HTTP body matches "cgit" + AND HTTP body matches "qvarn" + +It must also have Gitano accessible over ssh. + + WHEN user runs Gitano help + THEN exit code is 0 + AND standard error matches "Gitano" + +Also, the the anonymous git protocol works. + + WHEN user clones the qvarn repository over git:// + THEN exit code is 0 |