diff --git a/t/100basic.t b/t/100basic.t new file mode 100755 index 0000000..636c8ee --- /dev/null +++ b/t/100basic.t @@ -0,0 +1,508 @@ +#!/bin/bash +eval "$(curl -q -s https://raw.githubusercontent.com/coryb/osht/master/osht.sh)" +cd $(dirname $0) +jira="../jira --project BASIC" +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 done $issue; done + +# 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 <