summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-08-20 21:43:14 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-08-20 21:43:14 +0200
commitb0af946767426ed378bbec52c02da142c9554e71 (patch)
tree5fd260477542bbe54e6edb39de7b699fc163bf11
parentcda2d59e13bfa48447f2a1b999a2538f6baf83f5 (diff)
downloadgitlab-b0af946767426ed378bbec52c02da142c9554e71.tar.gz
Fix the v4 CLI tests (id/iid)
-rw-r--r--tools/cli_test_v4.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/cli_test_v4.sh b/tools/cli_test_v4.sh
index b96ea01..8399bd8 100644
--- a/tools/cli_test_v4.sh
+++ b/tools/cli_test_v4.sh
@@ -60,11 +60,11 @@ testcase "issue creation" '
OUTPUT=$(GITLAB project-issue create --project-id "$PROJECT_ID" \
--title "my issue" --description "my issue description")
'
-ISSUE_ID=$(pecho "${OUTPUT}" | grep ^id: | cut -d' ' -f2)
+ISSUE_ID=$(pecho "${OUTPUT}" | grep ^iid: | cut -d' ' -f2)
testcase "note creation" '
GITLAB project-issue-note create --project-id "$PROJECT_ID" \
- --issue-id "$ISSUE_ID" --body "the body" >/dev/null 2>&1
+ --issue-iid "$ISSUE_ID" --body "the body" >/dev/null 2>&1
'
testcase "branch creation" '
@@ -82,11 +82,11 @@ testcase "merge request creation" '
--source-branch branch1 --target-branch master \
--title "Update README")
'
-MR_ID=$(pecho "${OUTPUT}" | grep ^id: | cut -d' ' -f2)
+MR_ID=$(pecho "${OUTPUT}" | grep ^iid: | cut -d' ' -f2)
testcase "merge request validation" '
GITLAB project-merge-request merge --project-id "$PROJECT_ID" \
- --id "$MR_ID" >/dev/null 2>&1
+ --iid "$MR_ID" >/dev/null 2>&1
'
testcase "branch deletion" '