summaryrefslogtreecommitdiff
path: root/testing/02-commands-config.yarn
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-20 15:14:20 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-08-20 15:14:20 +0100
commit57064c80f28daf490e5c3349a00696aba585b840 (patch)
tree1fbd736a8e86db87c247db800b57a53a9550d3e7 /testing/02-commands-config.yarn
parentefb95e0f4d4e026b63209c48f59e9c9ca59cb29c (diff)
downloadgitano-57064c80f28daf490e5c3349a00696aba585b840.tar.gz
Remove set-owner and ensure setting project.owner gets validated
Diffstat (limited to 'testing/02-commands-config.yarn')
-rw-r--r--testing/02-commands-config.yarn17
1 files changed, 6 insertions, 11 deletions
diff --git a/testing/02-commands-config.yarn b/testing/02-commands-config.yarn
index 17436cd..71e7cdd 100644
--- a/testing/02-commands-config.yarn
+++ b/testing/02-commands-config.yarn
@@ -47,18 +47,13 @@ for it.
When we create a repository it is owned by the creator,
but we can change this after it has been created.
-<!-- TODO: config set project.owner shouldn't let you change the user if it
- doesn't exist yet, so when it does we need to add:
+ WHEN testinstance adminkey, expecting failure, runs config testrepo set project.owner alice
+ THEN stderr contains Unknown user: alice
-> GIVEN a unix user called alice
-> AND alice has keys called main
-> WHEN testinstance, using adminkey, adds user alice, using alice main
-
-> WHEN testinstance adminkey, expecting failure, runs config testrepo set project.owner alice
-> THEN stderr contains Unknown user: alice
--->
-
- WHEN testinstance adminkey runs config testrepo set project.owner alice
+ GIVEN a unix user called alice
+ AND alice has keys called main
+ WHEN testinstance, using adminkey, adds user alice, using alice main
+ AND testinstance adminkey runs config testrepo set project.owner alice
AND testinstance adminkey runs config testrepo show
THEN stdout contains project.owner: alice