14
14
# You should have received a copy of the GNU Lesser General Public License
15
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- setenv_script=$( dirname$0 ) /build_test_env.sh
17
+ setenv_script=$( dirname" $0 " ) /build_test_env.sh
18
18
BUILD_TEST_ENV_AUTO_CLEANUP=true
19
- . $setenv_script " $@ "
19
+ . " $setenv_script " " $@ "
20
20
21
21
set -e
22
22
@@ -27,7 +27,7 @@ GITLAB project list | grep -q test-project1
27
27
OK
28
28
29
29
echo -n" Testing project update..."
30
- GITLAB project update --id$PROJECT_ID --description" My New Description"
30
+ GITLAB project update --id" $PROJECT_ID " --description" My New Description"
31
31
OK
32
32
33
33
echo -n" Testing user creation..."
@@ -44,37 +44,37 @@ GITLAB -v user list | grep -qv config-file
44
44
OK
45
45
46
46
echo -n" Testing adding member to a project..."
47
- GITLAB project-member create --project-id$PROJECT_ID \
48
- --user-id$USER_ID --access-level 40> /dev/null2>&1
47
+ GITLAB project-member create --project-id" $PROJECT_ID " \
48
+ --user-id" $USER_ID " --access-level 40> /dev/null2>&1
49
49
OK
50
50
51
51
echo -n" Testing file creation..."
52
- GITLAB project-file create --project-id$PROJECT_ID \
52
+ GITLAB project-file create --project-id" $PROJECT_ID " \
53
53
--file-path README --branch-name master --content" CONTENT" \
54
54
--commit-message" Initial commit" > /dev/null2>&1
55
55
OK
56
56
57
57
echo -n" Testing issue creation..."
58
- ISSUE_ID=$( GITLAB project-issue create --project-id$PROJECT_ID \
58
+ ISSUE_ID=$( GITLAB project-issue create --project-id" $PROJECT_ID " \
59
59
--title" my issue" --description" my issue description" \
60
60
| grep ^id:| cut -d' ' -f2)
61
61
OK
62
62
63
63
echo -n" Testing note creation..."
64
- GITLAB project-issue-note create --project-id$PROJECT_ID \
65
- --issue-id$ISSUE_ID --body" the body" > /dev/null2>&1
64
+ GITLAB project-issue-note create --project-id" $PROJECT_ID " \
65
+ --issue-id" $ISSUE_ID " --body" the body" > /dev/null2>&1
66
66
OK
67
67
68
68
echo -n" Testing branch creation..."
69
- GITLAB project-branch create --project-id$PROJECT_ID \
69
+ GITLAB project-branch create --project-id" $PROJECT_ID " \
70
70
--branch-name branch1 --ref master> /dev/null2>&1
71
71
OK
72
72
73
73
echo -n" Testing branch deletion..."
74
- GITLAB project-branch delete --project-id$PROJECT_ID \
74
+ GITLAB project-branch delete --project-id" $PROJECT_ID " \
75
75
--name branch1> /dev/null2>&1
76
76
OK
77
77
78
78
echo -n" Testing project deletion..."
79
- GITLAB project delete --id$PROJECT_ID
79
+ GITLAB project delete --id" $PROJECT_ID "
80
80
OK