diff --git a/t/500process.t b/t/500process.t new file mode 100755 index 0000000..dc6a618 --- /dev/null +++ b/t/500process.t @@ -0,0 +1,513 @@ +#!/bin/bash +eval "$(curl -q -s https://raw.githubusercontent.com/coryb/osht/master/osht.sh)" +cd $(dirname $0) +jira="../jira --project PROCESS" +export JIRA_LOG_FORMAT="%{level:-5s} %{message}" + +PLAN 84 + +# cleanup from previous failed test executions +($jira ls | awk -F: '{print $1}' | while read issue; do ../jira start $issue; done) | sed 's/^/# CLEANUP: /g' +($jira ls | awk -F: '{print $1}' | while read issue; do ../jira stop $issue; done) | sed 's/^/# CLEANUP: /g' + +# reset login +RUNS $jira logout +echo "gojira123" | RUNS $jira login + +############################################################################### +## Create an issue +############################################################################### +RUNS $jira create -o summary=summary -o description=description --noedit --saveFile issue.props +issue=$(awk '/issue/{print $2}' issue.props) + +DIFF <