diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-02-14 10:40:12 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-02-14 10:40:14 +0100 |
| commit | 58433d2b1854eb4e112c499d52d8dd0fd6dba094 (patch) | |
| tree | f5f88ff6d8a665ac89c39b61fc37ca8350688c7b /tools/functional_tests.sh | |
| parent | 7260684d11e8ffe02461f761b6677d039b703a8d (diff) | |
| download | gitlab-58433d2b1854eb4e112c499d52d8dd0fd6dba094.tar.gz | |
CI: implement user get-by-username
fixes #95
Diffstat (limited to 'tools/functional_tests.sh')
| -rwxr-xr-x | tools/functional_tests.sh | 8 |
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 |
