Skip to content

Commit f07de94

Browse files
author
Gauvain Pocentek
committed
Test branch creation et deletion
1 parent 9c58013 commit f07de94

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/functional_tests.sh

+12
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ echo -n "Testing adding member to a project... "
100100
$GITLAB project-member create --project-id $PROJECT_ID --user-id $USER_ID --access-level 40 >/dev/null 2>&1
101101
$OK
102102

103+
echo -n "Creating a file... "
104+
$GITLAB project-file create --project-id $PROJECT_ID --file-path README --branch-name master --content "CONTENT" --commit-message "Initial commit" >/dev/null 2>&1
105+
$OK
106+
107+
echo -n "Creating a branch... "
108+
$GITLAB project-branch create --project-id $PROJECT_ID --branch-name branch1 --ref master >/dev/null 2>&1
109+
$OK
110+
111+
echo -n "Deleting a branch... "
112+
$GITLAB project-branch delete --project-id $PROJECT_ID --name branch1 >/dev/null 2>&1
113+
$OK
114+
103115
echo -n "Testing project deletion... "
104116
$GITLAB project delete --id $PROJECT_ID
105117
$OK

0 commit comments

Comments
 (0)