Skip to content

Commit

Permalink
add test using named query
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 18, 2017
1 parent bb66e58 commit a04c3a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions t/.jira.d/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ user: gojira

project: BASIC

queries:
todo: |
resolution = unresolved {{if .project}}AND project = '{{.project}}'{{end}} AND status = 'To Do'
custom-commands:
- name: env
help: print the JIRA environment variables available to custom commands
Expand Down
10 changes: 9 additions & 1 deletion t/100basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd $(dirname $0)
jira="../jira"
. env.sh

PLAN 86
PLAN 88

# reset login
RUNS $jira logout
Expand Down Expand Up @@ -52,6 +52,14 @@ DIFF <<EOF
$(printf %-12s $issue:) summary
EOF

###############################################################################
## List issues using a named query
###############################################################################
RUNS $jira ls --project BASIC -n todo
DIFF <<EOF
$(printf %-12s $issue:) summary
EOF

###############################################################################
## List all issues, using the table template
###############################################################################
Expand Down

0 comments on commit a04c3a4

Please sign in to comment.