Skip to content

Commit 097171d

Browse files
author
Gauvain Pocentek
committed
add some CLI tests
1 parent 6baea2f commit 097171d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tools/functional_tests.sh

+11-3
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,23 @@ echo -n "Testing adding member to a project... "
7070
$GITLAB project-member create --project-id $PROJECT_ID --user-id $USER_ID --access-level 40 >/dev/null 2>&1
7171
$OK
7272

73-
echo -n "Creating a file... "
73+
echo -n "Testing file creation... "
7474
$GITLAB project-file create --project-id $PROJECT_ID --file-path README --branch-name master --content "CONTENT" --commit-message "Initial commit" >/dev/null 2>&1
7575
$OK
7676

77-
echo -n "Creating a branch... "
77+
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)
79+
$OK
80+
81+
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
83+
$OK
84+
85+
echo -n "Testing branch creation... "
7886
$GITLAB project-branch create --project-id $PROJECT_ID --branch-name branch1 --ref master >/dev/null 2>&1
7987
$OK
8088

81-
echo -n "Deleting a branch... "
89+
echo -n "Testing branch deletion... "
8290
$GITLAB project-branch delete --project-id $PROJECT_ID --name branch1 >/dev/null 2>&1
8391
$OK
8492

0 commit comments

Comments
 (0)