add simple test for the "table" list output

This commit is contained in:
Cory Bennett
2016-08-21 23:51:30 -07:00
parent 61fc22c30c
commit 15db036caf
+14 -1
View File
@@ -4,7 +4,7 @@ cd $(dirname $0)
jira="../jira --project BASIC"
export JIRA_LOG_FORMAT="%{level:-5s} %{message}"
PLAN 84
PLAN 86
# reset login
RUNS $jira logout
@@ -52,6 +52,19 @@ DIFF <<EOF
$(printf %-12s $issue:) summary
EOF
###############################################################################
## List all issues, using the table template
###############################################################################
RUNS $jira ls --template table
DIFF <<EOF
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
| Issue | Summary | Priority | Status | Age | Reporter | Assignee |
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
| $(printf %-14s $issue) | summary | Medium | To Do | a minute | gojira | gojira |
+----------------+---------------------------------------------------------+--------------+--------------+------------+--------------+--------------+
EOF
###############################################################################
## Try to close the issue, bug Basic projects do not allow that state
###############################################################################