Skip to content

Commit 025649f

Browse files
committed
Reach the submit in the pipelines test submit-error case, which now reads the pipeline first
1 parent e129f04 commit 025649f

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11

22
=== A submit error from the service is shown as is, and no update ID is printed
3-
>>> musterr [CLI] pipelines test --pipeline-id 1234
4-
Error: The specified pipeline 1234 was not found.
3+
>>> musterr [CLI] pipelines test --pipeline-id [UUID]
4+
Error: An active update '[UUID]' already exists for pipeline '1234'.
55

66
>>> print_requests.py //updates
7+
{
8+
"method": "POST",
9+
"path": "/api/2.0/pipelines/[UUID]/updates",
10+
"body": {
11+
"test_only": true
12+
}
13+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# The pipeline exists, so that the command reaches the submit, which the test server rejects.
2+
pipeline_id=$($CLI pipelines create --json '{"name": "orders"}' | jq -r .pipeline_id)
3+
rm "$OUT_REQUESTS"
4+
15
title "A submit error from the service is shown as is, and no update ID is printed"
2-
trace musterr $CLI pipelines test --pipeline-id 1234
6+
trace musterr $CLI pipelines test --pipeline-id $pipeline_id
37
trace print_requests.py //updates

0 commit comments

Comments
 (0)