diff options
Diffstat (limited to 'src/cli/test_anastasis_reducer_enter_secret.sh')
-rwxr-xr-x | src/cli/test_anastasis_reducer_enter_secret.sh | 12 |
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 \ | |||
213 | sign \ | 213 | sign \ |
214 | enable-account payto://x-taler-bank/localhost/Exchange \ | 214 | enable-account payto://x-taler-bank/localhost/Exchange \ |
215 | enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \ | 215 | enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \ |
216 | wire-fee now x-taler-bank TESTKUDOS:0.01 TESTKUDOS:0.01 TESTKUDOS:0.01 \ | 216 | wire-fee now x-taler-bank TESTKUDOS:0.01 TESTKUDOS:0.01 \ |
217 | upload &> taler-exchange-offline.log | 217 | upload &> taler-exchange-offline.log |
218 | 218 | ||
219 | echo -n "." | 219 | echo -n "." |
@@ -268,7 +268,7 @@ echo "OK" | |||
268 | echo -n "Configuring merchant instance ..." | 268 | echo -n "Configuring merchant instance ..." |
269 | # Setup merchant | 269 | # Setup merchant |
270 | 270 | ||
271 | 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 | 271 | 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 |
272 | 272 | ||
273 | 273 | ||
274 | echo " DONE" | 274 | echo " DONE" |
@@ -289,14 +289,14 @@ fi | |||
289 | echo " DONE" | 289 | echo " DONE" |
290 | echo -en $COLOR$BOLD"Test expiration change ..."$NORM$NOCOLOR | 290 | echo -en $COLOR$BOLD"Test expiration change ..."$NORM$NOCOLOR |
291 | 291 | ||
292 | MILLIS=`date '+%s'`000 | 292 | SECS=`date '+%s'` |
293 | # Use 156 days into the future to get 1 year | 293 | # Use 156 days into the future to get 1 year |
294 | MILLIS=`expr $MILLIS + 13478400000` | 294 | SECS=`expr $SECS + 13478400` |
295 | 295 | ||
296 | $PREFIX anastasis-reducer -a \ | 296 | $PREFIX anastasis-reducer -a \ |
297 | "$(jq -n ' | 297 | "$(jq -n ' |
298 | {"expiration": { "t_ms" : $MSEC } }' \ | 298 | {"expiration": { "t_s" : $SEC } }' \ |
299 | --argjson MSEC $MILLIS | 299 | --argjson SEC $SECS |
300 | )" \ | 300 | )" \ |
301 | update_expiration $TFILE $UFILE | 301 | update_expiration $TFILE $UFILE |
302 | 302 | ||