mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-05 12:41:32 +02:00
add jira edit tests
This commit is contained in:
@@ -7,7 +7,7 @@ user: gojira
|
|||||||
project: BASIC
|
project: BASIC
|
||||||
|
|
||||||
queries:
|
queries:
|
||||||
todo: |
|
todo: >-
|
||||||
resolution = unresolved {{if .project}}AND project = '{{.project}}'{{end}} AND status = 'To Do'
|
resolution = unresolved {{if .project}}AND project = '{{.project}}'{{end}} AND status = 'To Do'
|
||||||
|
|
||||||
custom-commands:
|
custom-commands:
|
||||||
|
|||||||
+40
-1
@@ -4,7 +4,7 @@ cd $(dirname $0)
|
|||||||
jira="../jira"
|
jira="../jira"
|
||||||
. env.sh
|
. env.sh
|
||||||
|
|
||||||
PLAN 88
|
PLAN 94
|
||||||
|
|
||||||
# reset login
|
# reset login
|
||||||
RUNS $jira logout
|
RUNS $jira logout
|
||||||
@@ -73,6 +73,45 @@ DIFF <<EOF
|
|||||||
+----------------+------------------------------------------+--------------+--------------+--------------+------------+--------------+--------------+
|
+----------------+------------------------------------------+--------------+--------------+--------------+------------+--------------+--------------+
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
## Edit an issue
|
||||||
|
###############################################################################
|
||||||
|
RUNS $jira edit $issue -m "edit comment" --override priority=High --noedit
|
||||||
|
DIFF <<EOF
|
||||||
|
OK $issue $ENDPOINT/browse/$issue
|
||||||
|
EOF
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
## Edit multiple issues with query
|
||||||
|
###############################################################################
|
||||||
|
RUNS $jira edit -m "bulk edit comment" --override priority=High --noedit --query "resolution = unresolved AND project = 'BASIC' AND status = 'To Do'"
|
||||||
|
DIFF <<EOF
|
||||||
|
OK $issue $ENDPOINT/browse/$issue
|
||||||
|
EOF
|
||||||
|
|
||||||
|
RUNS $jira $issue
|
||||||
|
DIFF <<EOF
|
||||||
|
issue: $issue
|
||||||
|
created: a minute ago
|
||||||
|
status: To Do
|
||||||
|
summary: summary
|
||||||
|
project: BASIC
|
||||||
|
issuetype: Bug
|
||||||
|
assignee: gojira
|
||||||
|
reporter: gojira
|
||||||
|
priority: High
|
||||||
|
votes: 0
|
||||||
|
description: |
|
||||||
|
description
|
||||||
|
|
||||||
|
comments:
|
||||||
|
- | # gojira, a minute ago
|
||||||
|
edit comment
|
||||||
|
- | # gojira, a minute ago
|
||||||
|
bulk edit comment
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## Try to close the issue, bug Basic projects do not allow that state
|
## Try to close the issue, bug Basic projects do not allow that state
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user