@@ -24,57 +24,57 @@ echo -n "Testing project creation... "
2424PROJECT_ID=$( $GITLAB project create --name test-project1 \
2525 | grep ^id: | cut -d' ' -f2)
2626$GITLAB project list | grep -q test-project1
27- $ OK
27+ OK
2828
2929echo -n " Testing project update... "
3030$GITLAB project update --id $PROJECT_ID --description " My New Description"
31- $ OK
31+ OK
3232
3333echo -n " Testing user creation... "
3434USER_ID=$( $GITLAB user create --email fake@email.com --username user1 \
3535 --name " User One" --password fakepassword | grep ^id: | cut -d' ' -f2)
36- $ OK
36+ OK
3737
3838echo -n " Testing verbose output... "
3939$GITLAB -v user list | grep -q avatar-url
40- $ OK
40+ OK
4141
4242echo -n " Testing CLI args not in output... "
4343$GITLAB -v user list | grep -qv config-file
44- $ OK
44+ OK
4545
4646echo -n " Testing adding member to a project... "
4747$GITLAB project-member create --project-id $PROJECT_ID \
4848 --user-id $USER_ID --access-level 40 > /dev/null 2>&1
49- $ OK
49+ OK
5050
5151echo -n " Testing file creation... "
5252$GITLAB project-file create --project-id $PROJECT_ID \
5353 --file-path README --branch-name master --content " CONTENT" \
5454 --commit-message " Initial commit" > /dev/null 2>&1
55- $ OK
55+ OK
5656
5757echo -n " Testing issue creation... "
5858ISSUE_ID=$( $GITLAB project-issue create --project-id $PROJECT_ID \
5959 --title " my issue" --description " my issue description" \
6060 | grep ^id: | cut -d' ' -f2)
61- $ OK
61+ OK
6262
6363echo -n " Testing note creation... "
6464$GITLAB project-issue-note create --project-id $PROJECT_ID \
6565 --issue-id $ISSUE_ID --body " the body" > /dev/null 2>&1
66- $ OK
66+ OK
6767
6868echo -n " Testing branch creation... "
6969$GITLAB project-branch create --project-id $PROJECT_ID \
7070 --branch-name branch1 --ref master > /dev/null 2>&1
71- $ OK
71+ OK
7272
7373echo -n " Testing branch deletion... "
7474$GITLAB project-branch delete --project-id $PROJECT_ID \
7575 --name branch1 > /dev/null 2>&1
76- $ OK
76+ OK
7777
7878echo -n " Testing project deletion... "
7979$GITLAB project delete --id $PROJECT_ID
80- $ OK
80+ OK
0 commit comments