summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-17 20:04:58 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-17 20:04:58 +0100
commitf7742d1a5ac891f0fc2cb162d8c94daa37eb9fd2 (patch)
tree5a8b614f6b271f4186e3ddee74481b174984961a /src/cli
parent8ce939cad97b049699b6779cc5902e8cf5c2bf41 (diff)
downloadanastasis-f7742d1a5ac891f0fc2cb162d8c94daa37eb9fd2.tar.gz
anastasis-f7742d1a5ac891f0fc2cb162d8c94daa37eb9fd2.tar.bz2
anastasis-f7742d1a5ac891f0fc2cb162d8c94daa37eb9fd2.zip
-fix Taler v0.9.x compatibility issues in test
Diffstat (limited to 'src/cli')
-rwxr-xr-xsrc/cli/test_anastasis_reducer_enter_secret.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cli/test_anastasis_reducer_enter_secret.sh b/src/cli/test_anastasis_reducer_enter_secret.sh
index 39529d7..2103679 100755
--- a/src/cli/test_anastasis_reducer_enter_secret.sh
+++ b/src/cli/test_anastasis_reducer_enter_secret.sh
@@ -213,7 +213,7 @@ taler-exchange-offline -c $CONF \
sign \
enable-account payto://x-taler-bank/localhost/Exchange \
enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
- wire-fee now x-taler-bank TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 \
+ wire-fee now x-taler-bank TESTKUDOS:0.01 TESTKUDOS:0.01 \
upload &> taler-exchange-offline.log
echo -n "."
@@ -268,7 +268,7 @@ echo "OK"
echo -n "Configuring merchant instance ..."
# Setup merchant
-curl -H "Content-Type: application/json" -X POST -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost/43"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_ms" : 3600000},"default_pay_delay":{"d_ms": 3600000}}' http://localhost:9966/management/instances
+curl -H "Content-Type: application/json" -X POST -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost/43"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 3600000000},"default_pay_delay":{"d_us": 3600000000}}' http://localhost:9966/management/instances
echo " DONE"
@@ -289,14 +289,14 @@ fi
echo " DONE"
echo -en $COLOR$BOLD"Test expiration change ..."$NORM$NOCOLOR
-MILLIS=`date '+%s'`000
+SECS=`date '+%s'`
# Use 156 days into the future to get 1 year
-MILLIS=`expr $MILLIS + 13478400000`
+SECS=`expr $SECS + 13478400`
$PREFIX anastasis-reducer -a \
"$(jq -n '
- {"expiration": { "t_ms" : $MSEC } }' \
- --argjson MSEC $MILLIS
+ {"expiration": { "t_s" : $SEC } }' \
+ --argjson SEC $SECS
)" \
update_expiration $TFILE $UFILE