@@ -46,7 +46,8 @@ sleep 20
46
46
set -e
47
47
48
48
echo -n " Testing project creation... "
49
- PROJECT_ID=$( $GITLAB project create --name test-project1 | grep ^id: | cut -d' ' -f2)
49
+ PROJECT_ID=$( $GITLAB project create --name test-project1 \
50
+ | grep ^id: | cut -d' ' -f2)
50
51
$GITLAB project list | grep -q test-project1
51
52
$OK
52
53
@@ -55,7 +56,8 @@ $GITLAB project update --id $PROJECT_ID --description "My New Description"
55
56
$OK
56
57
57
58
echo -n " Testing user creation... "
58
- USER_ID=$( $GITLAB user create --email fake@email.com --username user1 --name " User One" --password fakepassword | grep ^id: | cut -d' ' -f2)
59
+ USER_ID=$( $GITLAB user create --email fake@email.com --username user1 \
60
+ --name " User One" --password fakepassword | grep ^id: | cut -d' ' -f2)
59
61
$OK
60
62
61
63
echo -n " Testing verbose output... "
@@ -67,27 +69,35 @@ $GITLAB -v user list | grep -qv config-file
67
69
$OK
68
70
69
71
echo -n " Testing adding member to a project... "
70
- $GITLAB project-member create --project-id $PROJECT_ID --user-id $USER_ID --access-level 40 > /dev/null 2>&1
72
+ $GITLAB project-member create --project-id $PROJECT_ID \
73
+ --user-id $USER_ID --access-level 40 > /dev/null 2>&1
71
74
$OK
72
75
73
76
echo -n " Testing file creation... "
74
- $GITLAB project-file create --project-id $PROJECT_ID --file-path README --branch-name master --content " CONTENT" --commit-message " Initial commit" > /dev/null 2>&1
77
+ $GITLAB project-file create --project-id $PROJECT_ID \
78
+ --file-path README --branch-name master --content " CONTENT" \
79
+ --commit-message " Initial commit" > /dev/null 2>&1
75
80
$OK
76
81
77
82
echo -n " Testing issue creation... "
78
- ISSUE_ID=$( $GITLAB project-issue create --project-id $PROJECT_ID --title " my issue" --description " my issue description" | grep ^id: | cut -d' ' -f2)
83
+ ISSUE_ID=$( $GITLAB project-issue create --project-id $PROJECT_ID \
84
+ --title " my issue" --description " my issue description" \
85
+ | grep ^id: | cut -d' ' -f2)
79
86
$OK
80
87
81
88
echo -n " Testing note creation... "
82
- $GITLAB project-issue-note create --project-id $PROJECT_ID --issue-id $ISSUE_ID --body " the body" > /dev/null 2>&1
89
+ $GITLAB project-issue-note create --project-id $PROJECT_ID \
90
+ --issue-id $ISSUE_ID --body " the body" > /dev/null 2>&1
83
91
$OK
84
92
85
93
echo -n " Testing branch creation... "
86
- $GITLAB project-branch create --project-id $PROJECT_ID --branch-name branch1 --ref master > /dev/null 2>&1
94
+ $GITLAB project-branch create --project-id $PROJECT_ID \
95
+ --branch-name branch1 --ref master > /dev/null 2>&1
87
96
$OK
88
97
89
98
echo -n " Testing branch deletion... "
90
- $GITLAB project-branch delete --project-id $PROJECT_ID --name branch1 > /dev/null 2>&1
99
+ $GITLAB project-branch delete --project-id $PROJECT_ID \
100
+ --name branch1 > /dev/null 2>&1
91
101
$OK
92
102
93
103
echo -n " Testing project deletion... "
0 commit comments