summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-05-14 13:31:11 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-05-20 14:04:07 +0000
commit31ddf5da04385dcf060334bbe0948ced23b96513 (patch)
treefb3dc4163ea87864b980d1a5003ee9f0fe7a58ac /yarns
parent8eef287c2a6a72197e31d8c9f815709f1d3618f0 (diff)
downloadmorph-31ddf5da04385dcf060334bbe0948ced23b96513.tar.gz
yarns: Add a test for `morph list-artifacts`
Change-Id: I7c993aee22f8438c28566acce01c524d9b315951
Diffstat (limited to 'yarns')
-rw-r--r--yarns/branches-workspaces.yarn12
-rw-r--r--yarns/implementations.yarn6
2 files changed, 18 insertions, 0 deletions
diff --git a/yarns/branches-workspaces.yarn b/yarns/branches-workspaces.yarn
index 8bbf7d50..e0ead11c 100644
--- a/yarns/branches-workspaces.yarn
+++ b/yarns/branches-workspaces.yarn
@@ -657,3 +657,15 @@ a system is likely to have a reproducible result.
WHEN the user certifies the system systems/test-system.morph at ref HEAD in repository test:morphs
THEN morph succeeded
AND morph output Reproducibility certification PASSED
+
+Listing artifacts in a system
+-----------------------------
+
+The `morph list-artifacts` command can be used to list the names of each
+artifact in a system. This name includes the cache key of the artifact.
+
+ SCENARIO using morph list-artifacts
+ GIVEN a git server
+
+ WHEN the user lists the artifacts which make up the system systems/test-system.morph at ref HEAD in repository test:morphs
+ THEN morph succeeded
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 688203cf..8244cfa0 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -745,6 +745,12 @@ Implementations for `morph certify`
IMPLEMENTS WHEN the user certifies the system (\S+) at ref (\S+) in repository (\S+)
attempt_morph certify "$MATCH_3" "$MATCH_2" "$MATCH_1"
+Implementations for `morph list-artifacts`
+------------------------------------------
+
+ IMPLEMENTS WHEN the user lists the artifacts which make up the system (\S+) at ref (\S+) in repository (\S+)
+ attempt_morph list-artifacts "$MATCH_3" "$MATCH_2" "$MATCH_1"
+
Implementations for temporary build branch handling
---------------------------------------------------