From 1edbc9f5c08daafb3e13131dfc8df656b2a02edc Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 27 Aug 2014 16:39:53 +0100 Subject: yarns: Use a more realistic simulation of a git server 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. --- yarns/regression.yarn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yarns/regression.yarn') 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 -- cgit v1.2.1