8000 Fix the v4 CLI tests (id/iid) · python-gitlab/python-gitlab@b0af946 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b0af946

Browse files
author
Gauvain Pocentek
committed
Fix the v4 CLI tests (id/iid)
1 parent cda2d59 commit b0af946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/cli_test_v4.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ testcase "issue creation" '
6060
OUTPUT=$(GITLAB project-issue create --project-id "$PROJECT_ID" \
6161
--title "my issue" --description "my issue description")
6262
'
63-
ISSUE_ID=$(pecho "${OUTPUT}" | grep ^id: | cut -d' ' -f2)
63+
ISSUE_ID=$(pecho "${OUTPUT}" | grep ^iid: | cut -d' ' -f2)
6464

6565
testcase "note creation" '
6666
GITLAB project-issue-note create --project-id "$PROJECT_ID" \
67-
--issue-id "$ISSUE_ID" --body "the body" >/dev/null 2>&1
67+
--issue-iid "$ISSUE_ID" --body "the body" >/dev/null 2>&1
6868
'
6969

7070
testcase "branch creation" '
@@ -82,11 +82,11 @@ testcase "merge request creation" '
8282
--source-branch branch1 --target-branch master \
8383
--title "Update README")
8484
'
85-
MR_ID=$(pecho "${OUTPUT}" | grep ^id: | cut -d' ' -f2)
85+
MR_ID=$(pecho "${OUTPUT}" | grep ^iid: | cut -d' ' -f2)
8686

8787
testcase "merge request validation" '
8888
GITLAB project-merge-request merge --project-id "$PROJECT_ID" \
89-
--id "$MR_ID" >/dev/null 2>&1
89+
--iid "$MR_ID" >/dev/null 2>&1
9090
'
9191

9292
testcase "branch deletion" '

0 commit comments

Comments
 (0)
0