summaryrefslogtreecommitdiff
path: root/tools/functional_tests.sh
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2016-01-23 02:40:04 -0500
committerRichard Hansen <rhansen@rhansen.org>2016-01-31 16:02:03 -0500
commit6df844a49c2631fd38940db4679ab1cba760e4ab (patch)
treeca0184bb27d79f124747b44e54c09d0f940252a9 /tools/functional_tests.sh
parent770dd4b3fee1fe9f4e40a144777afb6030992149 (diff)
downloadgitlab-6df844a49c2631fd38940db4679ab1cba760e4ab.tar.gz
wrap long lines
Use line continuations to keep lines shorter than 80 columns.
Diffstat (limited to 'tools/functional_tests.sh')
-rwxr-xr-xtools/functional_tests.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/tools/functional_tests.sh b/tools/functional_tests.sh
index 6cb868d..b4e45b0 100755
--- a/tools/functional_tests.sh
+++ b/tools/functional_tests.sh
@@ -46,7 +46,8 @@ sleep 20
set -e
echo -n "Testing project creation... "
-PROJECT_ID=$($GITLAB project create --name test-project1 | grep ^id: | cut -d' ' -f2)
+PROJECT_ID=$($GITLAB project create --name test-project1 \
+ | grep ^id: | cut -d' ' -f2)
$GITLAB project list | grep -q test-project1
$OK
@@ -55,7 +56,8 @@ $GITLAB project update --id $PROJECT_ID --description "My New Description"
$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)
+USER_ID=$($GITLAB user create --email fake@email.com --username user1 \
+ --name "User One" --password fakepassword | grep ^id: | cut -d' ' -f2)
$OK
echo -n "Testing verbose output... "
@@ -67,27 +69,35 @@ $GITLAB -v user list | grep -qv config-file
$OK
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
+$GITLAB project-member create --project-id $PROJECT_ID \
+ --user-id $USER_ID --access-level 40 >/dev/null 2>&1
$OK
echo -n "Testing file creation... "
-$GITLAB project-file create --project-id $PROJECT_ID --file-path README --branch-name master --content "CONTENT" --commit-message "Initial commit" >/dev/null 2>&1
+$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 "Testing issue creation... "
-ISSUE_ID=$($GITLAB project-issue create --project-id $PROJECT_ID --title "my issue" --description "my issue description" | grep ^id: | cut -d' ' -f2)
+ISSUE_ID=$($GITLAB project-issue create --project-id $PROJECT_ID \
+ --title "my issue" --description "my issue description" \
+ | grep ^id: | cut -d' ' -f2)
$OK
echo -n "Testing note creation... "
-$GITLAB project-issue-note create --project-id $PROJECT_ID --issue-id $ISSUE_ID --body "the body" >/dev/null 2>&1
+$GITLAB project-issue-note create --project-id $PROJECT_ID \
+ --issue-id $ISSUE_ID --body "the body" >/dev/null 2>&1
$OK
echo -n "Testing branch creation... "
-$GITLAB project-branch create --project-id $PROJECT_ID --branch-name branch1 --ref master >/dev/null 2>&1
+$GITLAB project-branch create --project-id $PROJECT_ID \
+ --branch-name branch1 --ref master >/dev/null 2>&1
$OK
echo -n "Testing branch deletion... "
-$GITLAB project-branch delete --project-id $PROJECT_ID --name branch1 >/dev/null 2>&1
+$GITLAB project-branch delete --project-id $PROJECT_ID \
+ --name branch1 >/dev/null 2>&1
$OK
echo -n "Testing project deletion... "