summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-09-19 11:57:07 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-09-19 11:57:07 +0200
commitf07de9484d5f05fd09c47cba41665a858b485cf0 (patch)
tree4dee6d75732b49cdced32f6d2c61de68b873683f
parent9c58013a269d3da2beec947a152605fc3c926577 (diff)
downloadgitlab-f07de9484d5f05fd09c47cba41665a858b485cf0.tar.gz
Test branch creation et deletion
-rwxr-xr-xtools/functional_tests.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/functional_tests.sh b/tools/functional_tests.sh
index acce6a9..825d41f 100755
--- a/tools/functional_tests.sh
+++ b/tools/functional_tests.sh
@@ -100,6 +100,18 @@ echo -n "Testing adding member to a project... "
$GITLAB project-member create --project-id $PROJECT_ID --user-id $USER_ID --access-level 40 >/dev/null 2>&1
$OK
+echo -n "Creating a file... "
+$GITLAB project-file create --project-id $PROJECT_ID --file-path README --branch-name master --content "CONTENT" --commit-message "Initial commit" >/dev/null 2>&1
+$OK
+
+echo -n "Creating a branch... "
+$GITLAB project-branch create --project-id $PROJECT_ID --branch-name branch1 --ref master >/dev/null 2>&1
+$OK
+
+echo -n "Deleting a branch... "
+$GITLAB project-branch delete --project-id $PROJECT_ID --name branch1 >/dev/null 2>&1
+$OK
+
echo -n "Testing project deletion... "
$GITLAB project delete --id $PROJECT_ID
$OK