diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-09-19 11:57:07 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-09-19 11:57:07 +0200 |
commit | f07de9484d5f05fd09c47cba41665a858b485cf0 (patch) | |
tree | 4dee6d75732b49cdced32f6d2c61de68b873683f | |
parent | 9c58013a269d3da2beec947a152605fc3c926577 (diff) | |
download | gitlab-f07de9484d5f05fd09c47cba41665a858b485cf0.tar.gz |
Test branch creation et deletion
-rwxr-xr-x | tools/functional_tests.sh | 12 |
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 |