Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit097171d

Browse files
author
Gauvain Pocentek
committed
add some CLI tests
1 parent6baea2f commit097171d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

‎tools/functional_tests.sh

Lines changed: 11 additions & 3 deletions
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/null2>&1
7171
$OK
7272

73-
echo -n"Creating afile..."
73+
echo -n"Testingfile creation..."
7474
$GITLAB project-file create --project-id$PROJECT_ID --file-path README --branch-name master --content"CONTENT" --commit-message"Initial commit">/dev/null2>&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/null2>&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/null2>&1
7987
$OK
8088

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp