@@ -21,60 +21,60 @@ BUILD_TEST_ENV_AUTO_CLEANUP=true
21
21
set -e
22
22
23
23
echo -n" Testing project creation..."
24
- PROJECT_ID=$( $ GITLAB project create --name test-project1 \
24
+ PROJECT_ID=$( GITLAB project create --name test-project1 \
25
25
| grep ^id:| cut -d' ' -f2)
26
- $ GITLAB project list| grep -q test-project1
26
+ 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..."
34
- USER_ID=$( $ GITLAB user create --email fake@email.com --username user1 \
34
+ USER_ID=$( GITLAB user create --email fake@email.com --username user1 \
35
35
--name" User One" --password fakepassword| grep ^id:| cut -d' ' -f2)
36
36
OK
37
37
38
38
echo -n" Testing verbose output..."
39
- $ GITLAB -v user list| grep -q avatar-url
39
+ GITLAB -v user list| grep -q avatar-url
40
40
OK
41
41
42
42
echo -n" Testing CLI args not in output..."
43
- $ GITLAB -v user list| grep -qv config-file
43
+ 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 \
47
+ GITLAB project-member create --project-id$PROJECT_ID \
48
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 \
64
+ GITLAB project-issue-note create --project-id$PROJECT_ID \
65
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