summaryrefslogtreecommitdiff
path: root/tools/functional_tests.sh
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-02-14 10:40:12 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-02-14 10:40:14 +0100
commit58433d2b1854eb4e112c499d52d8dd0fd6dba094 (patch)
treef5f88ff6d8a665ac89c39b61fc37ca8350688c7b /tools/functional_tests.sh
parent7260684d11e8ffe02461f761b6677d039b703a8d (diff)
downloadgitlab-58433d2b1854eb4e112c499d52d8dd0fd6dba094.tar.gz
CI: implement user get-by-username
fixes #95
Diffstat (limited to 'tools/functional_tests.sh')
-rwxr-xr-xtools/functional_tests.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/functional_tests.sh b/tools/functional_tests.sh
index fefb5af..84339e3 100755
--- a/tools/functional_tests.sh
+++ b/tools/functional_tests.sh
@@ -35,6 +35,14 @@ testcase "user creation" '
'
USER_ID=$(pecho "${OUTPUT}" | grep ^id: | cut -d' ' -f2)
+testcase "user get (by id)" '
+ GITLAB user get --id $USER_ID >/dev/null 2>&1
+'
+
+testcase "user get (by username)" '
+ GITLAB user get-by-username --query user1 >/dev/null 2>&1
+'
+
testcase "verbose output" '
OUTPUT=$(try GITLAB -v user list) || exit 1
pecho "${OUTPUT}" | grep -q avatar-url