mirror of
https://github.com/valitydev/holmes.git
synced 2024-11-06 01:45:25 +00:00
Unquote WOORL expansion to allow extra cli args (#60)
* Hack my way out of no-ws-in-filename problem
This commit is contained in:
parent
0a7fee6551
commit
c05e83a1b2
@ -51,7 +51,7 @@ fi
|
||||
|
||||
[ -f woorlrc ] && source woorlrc
|
||||
|
||||
"${WOORL:-woorl}" \
|
||||
"${WOORL[@]:-woorl}" \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \
|
||||
Invoicing CreateManualRefund "${USERINFO}" "\"${INVOICE_ID}\"" "\"${PAYMENT_ID}\"" "${PARAMS}"
|
||||
|
@ -23,7 +23,7 @@ case "$1" in
|
||||
;;
|
||||
* )
|
||||
FIXTURE=$("${LIBDIR}/template.sh" "${CURDIR}/base-fixture.commit.json.tpl" $*)
|
||||
"${WOORL:-woorl}" $* \
|
||||
"${WOORL[@]:-woorl}" $* \
|
||||
-s "${DAMSEL}/proto/domain_config.thrift" \
|
||||
"http://${DOMINANT:-dominant}:8022/v1/domain/repository" \
|
||||
Repository Commit 0 "${FIXTURE}"
|
||||
|
@ -8,7 +8,7 @@ shift 1
|
||||
|
||||
[ -z "${CURRENCY}" ] && { echo "No currency code specified"; exit -1; }
|
||||
|
||||
"${WOORL:-woorl}" $* \
|
||||
"${WOORL[@]:-woorl}" $* \
|
||||
-s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"http://${SHUMWAY:-shumway}:8022/accounter" \
|
||||
Accounter CreateAccount "{\"currency_sym_code\":\"${CURRENCY}\"}"
|
||||
|
@ -43,7 +43,7 @@ CALLARGS=$(cat <<END
|
||||
END
|
||||
)
|
||||
|
||||
"${WOORL:-woorl}" -s "${MGPROTO}/proto/state_processing.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${MGPROTO}/proto/state_processing.thrift" \
|
||||
"http://${MACHINEGUN:-machinegun}:8022/v1/automaton" \
|
||||
Automaton Call "${MACHINEDESC}" "${CALLARGS}" \
|
||||
| grep -sqF 'MachineFailed'
|
||||
|
@ -29,6 +29,6 @@ BATCHID="${2}"
|
||||
|
||||
ACCOUNTER="http://${SHUMWAY:-shumway}:8022/accounter"
|
||||
|
||||
"${WOORL:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${ACCOUNTER}" Accounter GetPlan "\"${PLANID}\"" | \
|
||||
jq ".batch_list[] | select(.id == ${BATCHID})"
|
||||
|
@ -8,7 +8,7 @@ DAMSEL="${CWD}/../../damsel"
|
||||
SCRIPTNAME=$(basename $0)
|
||||
|
||||
get_events () {
|
||||
"${WOORL:-woorl}" \
|
||||
"${WOORL[@]:-woorl}" \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \
|
||||
Invoicing GetEvents "$1" "$2" "$3"
|
||||
|
@ -8,7 +8,7 @@ DAMSEL="${CWD}/../../damsel"
|
||||
SCRIPTNAME=$(basename $0)
|
||||
|
||||
get_state () {
|
||||
"${WOORL:-woorl}" \
|
||||
"${WOORL[@]:-woorl}" \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \
|
||||
Invoicing Get "$1" "$2"
|
||||
|
@ -8,7 +8,7 @@ DAMSEL="${CWD}/../../damsel"
|
||||
SCRIPTNAME=$(basename $0)
|
||||
|
||||
get_events () {
|
||||
"${WOORL:-woorl}" $4 \
|
||||
"${WOORL[@]:-woorl}" $4 \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/partymgmt" \
|
||||
PartyManagement GetEvents "$1" "$2" "$3"
|
||||
|
@ -8,7 +8,7 @@ DAMSEL="${CWD}/../../damsel"
|
||||
SCRIPTNAME=$(basename $0)
|
||||
|
||||
get_party () {
|
||||
"${WOORL:-woorl}" $3 \
|
||||
"${WOORL[@]:-woorl}" $3 \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/partymgmt" \
|
||||
PartyManagement Get "$1" "$2"
|
||||
|
@ -9,7 +9,7 @@ MACHINE_NS="\"${1}\""
|
||||
MACHINE_ID="{\"id\":\"${2}\"}"
|
||||
shift 2
|
||||
|
||||
"${WOORL:-woorl}" $* \
|
||||
"${WOORL[@]:-woorl}" $* \
|
||||
-s "${MGPROTO}/proto/state_processing.thrift" \
|
||||
"http://${MACHINEGUN:-machinegun}:8022/v1/automaton" \
|
||||
Automaton Repair "${MACHINE_NS}" "${MACHINE_ID}" \
|
||||
|
@ -34,7 +34,7 @@ USERINFO=$(jq -nc "{id:\"${SCRIPTNAME}\", type:{service_user:{}}}")
|
||||
|
||||
[ -f woorlrc ] && source woorlrc
|
||||
|
||||
"${WOORL:-woorl}" \
|
||||
"${WOORL[@]:-woorl}" \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \
|
||||
Invoicing RefundPayment "${USERINFO}" "\"${INVOICE}\"" "\"${PAYMENT}\"" "${PARAMS}"
|
||||
|
@ -55,7 +55,7 @@ INVOICE_CHANGES="${2}"
|
||||
|
||||
USERINFO='{"id":"woorl","type":{"service_user":{}}}'
|
||||
|
||||
"${WOORL:-woorl}" \
|
||||
"${WOORL[@]:-woorl}" \
|
||||
-s "${DAMSEL}/proto/payment_processing.thrift" \
|
||||
"http://${HELLGATE:-hellgate}:8022/v1/processing/invoicing" \
|
||||
Invoicing Repair "${USERINFO}" "\"${INVOICE}\"" "${INVOICE_CHANGES}" "${ACTION}" "${PARAMS}"
|
||||
|
@ -30,9 +30,9 @@ BATCH="${2}"
|
||||
|
||||
ACCOUNTER="http://${SHUMWAY:-shumway}:8022/accounter"
|
||||
|
||||
"${WOORL:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${ACCOUNTER}" Accounter Hold \
|
||||
"{\"id\": \"${PLANID}\", \"batch\": ${BATCH}}" && \
|
||||
"${WOORL:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${ACCOUNTER}" Accounter RollbackPlan \
|
||||
"{\"id\": \"${PLANID}\", \"batch_list\": [${BATCH}]}"
|
||||
|
@ -30,9 +30,9 @@ BATCH="${2}"
|
||||
|
||||
ACCOUNTER="http://${SHUMWAY:-shumway}:8022/accounter"
|
||||
|
||||
"${WOORL:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${ACCOUNTER}" Accounter Hold \
|
||||
"{\"id\": \"${PLANID}\", \"batch\": ${BATCH}}" && \
|
||||
"${WOORL:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${WOORL[@]:-woorl}" -s "${DAMSEL}/proto/accounter.thrift" \
|
||||
"${ACCOUNTER}" Accounter CommitPlan \
|
||||
"{\"id\": \"${PLANID}\", \"batch_list\": [${BATCH}]}"
|
||||
|
@ -1 +1 @@
|
||||
WOORL="woorl -v --deadline 30s"
|
||||
WOORL=(woorl -v --deadline 30s)
|
||||
|
Loading…
Reference in New Issue
Block a user