summaryrefslogtreecommitdiff
path: root/yarns/regression.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-08-27 16:39:53 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2014-08-28 13:48:26 +0100
commit1edbc9f5c08daafb3e13131dfc8df656b2a02edc (patch)
tree5ea1ba505bb50ee616567f74551aadb2b51fa0d3 /yarns/regression.yarn
parent8c31c741a0d4341a536c7bf612a95b136795c8a2 (diff)
downloadmorph-1edbc9f5c08daafb3e13131dfc8df656b2a02edc.tar.gz
yarns: Use a more realistic simulation of a git serverbaserock/richardmaw/yarn-git-daemon
Previously we would use file: URIs to point to the git repositories. This was fast and simple, but had the drawback that it bypassed all the git cache logic, so changes to the git cache weren't adequately covered by the test suite. Now we spool up a simulated git server per scenario, and shut it down at the end.
Diffstat (limited to 'yarns/regression.yarn')
-rw-r--r--yarns/regression.yarn4
1 files changed, 4 insertions, 0 deletions
diff --git a/yarns/regression.yarn b/yarns/regression.yarn
index 6f499d90..7991ab12 100644
--- a/yarns/regression.yarn
+++ b/yarns/regression.yarn
@@ -11,6 +11,7 @@ Testing if we can build after checking out from a tag.
AND a git server
WHEN the user checks out the system tag called test-tag
THEN morph build the system systems/test-system.morph of the tag test-tag
+ FINALLY the git server is shut down
Running `morph branch` when the branch directory exists doesn't
@@ -32,6 +33,7 @@ The branch is checked out correctly, now it should fail if the user executes
The branch still checked out.
AND the system branch foo is checked out
+ FINALLY the git server is shut down
It doesn't make much sense to be able to build a system with only
@@ -45,6 +47,7 @@ area, hence their results cannot be trusted.
WHEN the user checks out the system branch called master
AND the user attempts to build the system bootstrap-system.morph in branch master
THEN the build error message includes the string "No non-bootstrap chunks found"
+ FINALLY the git server is shut down
When we started allowing multiple artifacts, a long-standing bug in
cache-key computation was discovered, it didn't include artifact names,
@@ -67,6 +70,7 @@ source it depended on.
WHEN the user builds the system systems/test-system.morph in branch master
AND the user deploys the cluster test-cluster.morph in branch master with options test-system.location="$DATADIR/test.tar"
THEN tarball test.tar contains baserock/test-chunk-misc.meta
+ FINALLY the git server is shut down
Implementations