summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-07-11 08:56:17 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-07-11 08:57:44 +0200
commit802c144cfd199684506b3404f03c3657c75e307d (patch)
tree1ab2f010b98c368288867ecc9a7bd1d5a5fccf47 /tools
parente57b7794d1e1ae6795f5b914132a2891dc0d9509 (diff)
downloadgitlab-802c144cfd199684506b3404f03c3657c75e307d.tar.gz
Fix the update/delete CLI subcommands
Also update the testing tool to test these features. Closes #62
Diffstat (limited to 'tools')
-rwxr-xr-xtools/functional_tests.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/functional_tests.sh b/tools/functional_tests.sh
index 24124ce..dd31c90 100755
--- a/tools/functional_tests.sh
+++ b/tools/functional_tests.sh
@@ -23,7 +23,7 @@ cleanup() {
}
trap cleanup EXIT
-docker run --name gitlab-test --detach --publish 8080:80 --publish 2222:22 sytse/gitlab-ce:7.10.1 >/dev/null 2>&1
+docker run --name gitlab-test --detach --publish 8080:80 --publish 2222:22 genezys/gitlab:latest >/dev/null 2>&1
LOGIN='root'
PASSWORD='5iveL!fe'
@@ -80,6 +80,14 @@ PROJECT_ID=$($GITLAB project create --name test-project1 | grep ^id: | cut -d' '
$GITLAB project list | grep -q test-project1
$OK
+echo -n "Testing project update... "
+$GITLAB project update --id $PROJECT_ID --description "My New Description"
+$OK
+
+echo -n "Testing project deletion... "
+$GITLAB project delete --id $PROJECT_ID
+$OK
+
echo -n "Testing user creation... "
USER_ID=$($GITLAB user create --email fake@email.com --username user1 --name "User One" --password fakepassword | grep ^id: | cut -d' ' -f2)
$OK