summaryrefslogtreecommitdiff
path: root/testing/01-basics.yarn
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 14:48:11 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 14:48:11 +0000
commit6a663a99320d7748069173c8be1f50a5568b688b (patch)
tree48b75bc69b67c649ebc5e13d6bd7f6c73ebfc6b8 /testing/01-basics.yarn
parente2d36d9ea5b0ff1b59b33300c2174b95b9d1b562 (diff)
downloadgitano-6a663a99320d7748069173c8be1f50a5568b688b.tar.gz
Simplify yarns which create alice/main to use a new implementation
Diffstat (limited to 'testing/01-basics.yarn')
-rw-r--r--testing/01-basics.yarn20
1 files changed, 8 insertions, 12 deletions
diff --git a/testing/01-basics.yarn b/testing/01-basics.yarn
index 4384bbe..c4cf8fc 100644
--- a/testing/01-basics.yarn
+++ b/testing/01-basics.yarn
@@ -24,6 +24,8 @@ Step 1 is to create a standard instance and clone `gitano-admin`
THEN testinstance has a clone of gitano-admin
Next we create the user (alice) and verify that `gitano-admin` shows her.
+In this scenario we're creating alice's user long-hand to show how it can be
+done, but in future we will use a shortcut GIVEN instead.
GIVEN a unix user called alice
AND alice has keys called main
@@ -57,10 +59,8 @@ information lists the `gitano-admin` group which they should be a member of.
Then, just to be sure, we create a new user and ensure that it does not have
membership of `gitano-admin`
- GIVEN a unix user called alice
- AND alice has keys called main
- WHEN testinstance, using adminkey, adds user alice, using alice main
- AND alice main runs whoami
+ GIVEN testinstance, using adminkey, adds a new user alice, with a key called main
+ WHEN alice main runs whoami
THEN stdout does not contain gitano-admin
FINALLY the instance is torn down
@@ -75,10 +75,8 @@ when the new user runs 'ls' it doesn't get to see `gitano-admin` but that the
SCENARIO ls will not show repositories you have no access to
GIVEN a standard instance
- AND a unix user called alice
- AND alice has keys called main
- WHEN testinstance, using adminkey, adds user alice, using alice main
- AND alice main runs ls
+ AND testinstance, using adminkey, adds a new user alice, with a key called main
+ WHEN alice main runs ls
THEN stdout does not contain gitano-admin
WHEN testinstance adminkey runs ls
THEN stdout contains RW \ gitano-admin
@@ -95,10 +93,8 @@ test that a new user who has a repository created for them can see it in ls.
SCENARIO delegated repository creation works
GIVEN a standard instance
- AND 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 create somerepo alice
+ AND testinstance, using adminkey, adds a new user alice, with a key called main
+ WHEN testinstance adminkey runs create somerepo alice
AND alice main runs ls
THEN stdout contains RW \ somerepo