[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: adapt to latest API changes
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: adapt to latest API changes |
Date: |
Fri, 01 Sep 2023 15:22:01 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 39ed003 adapt to latest API changes
39ed003 is described below
commit 39ed0035291f0fe238eb1f600313f987849018f2
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Fri Sep 1 15:21:58 2023 +0200
adapt to latest API changes
---
src/cli/test_anastasis_reducer_enter_secret.sh | 4 +++-
...st_anastasis_reducer_recovery_enter_user_attributes.sh | 3 ++-
src/cli/test_reducer.conf | 1 +
src/testing/test_anastasis.c | 7 ++++++-
src/testing/test_anastasis_api.c | 7 ++++++-
src/testing/test_anastasis_api.conf | 1 +
.../taler/exchange/offline-keys/secm_tofus.pub | Bin 96 -> 96 bytes
7 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/cli/test_anastasis_reducer_enter_secret.sh
b/src/cli/test_anastasis_reducer_enter_secret.sh
index 6a52668..cbd337a 100755
--- a/src/cli/test_anastasis_reducer_enter_secret.sh
+++ b/src/cli/test_anastasis_reducer_enter_secret.sh
@@ -145,9 +145,11 @@ echo "OK"
echo -n "Configuring merchant instance ..."
# Setup merchant
+curl -H "Content-Type: application/json" -X POST -d
'{"auth":{"method":"external"},"id":"default","name":"default","user_type":"business","address":{},"jurisdiction":{},"use_stefan":true,"default_wire_transfer_delay":{"d_us"
: 3600000000},"default_pay_delay":{"d_us": 3600000000}}'
http://localhost:9966/management/instances
-curl -H "Content-Type: application/json" -X POST -d
'{"auth":{"method":"external"},"accounts":[{"payto_uri":"'"$MERCHANT_PAYTO"'"}],"id":"default","name":"default","user_type":"business","address":{},"jurisdiction":{},"use_stefan":true,"default_wire_transfer_delay":{"d_us"
: 3600000000},"default_pay_delay":{"d_us": 3600000000}}'
http://localhost:9966/management/instances
+curl -H "Content-Type: application/json" -X POST -d
'{"payto_uri":"'"$MERCHANT_PAYTO"'"}' http://localhost:9966/private/accounts
+
echo " DONE"
diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
index 5a2b561..dc8e289 100755
--- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
+++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -179,8 +179,9 @@ echo "OK"
echo -n "Configuring merchant instance ..."
# Setup merchant
-curl -H "Content-Type: application/json" -X POST -d
'{"auth":{"method":"external"},"accounts":[{"payto_uri":"'"$MERCHANT_PAYTO"'"}],"id":"default","name":"default","user_type":"business","address":{},"jurisdiction":{},"use_stefan":true,"default_wire_transfer_delay":{"d_us"
: 3600000000},"default_pay_delay":{"d_us": 3600000000}}'
http://localhost:9966/management/instances
+curl -H "Content-Type: application/json" -X POST -d
'{"auth":{"method":"external"},"id":"default","name":"default","user_type":"business","address":{},"jurisdiction":{},"use_stefan":true,"default_wire_transfer_delay":{"d_us"
: 3600000000},"default_pay_delay":{"d_us": 3600000000}}'
http://localhost:9966/management/instances
+curl -H "Content-Type: application/json" -X POST -d
'{"payto_uri":"'"$MERCHANT_PAYTO"'"}' http://localhost:9966/private/accounts
echo " DONE"
diff --git a/src/cli/test_reducer.conf b/src/cli/test_reducer.conf
index 1c60b4d..43fc881 100644
--- a/src/cli/test_reducer.conf
+++ b/src/cli/test_reducer.conf
@@ -42,6 +42,7 @@ LOOKAHEAD_SIGN = 3 weeks 1 day
LOOKAHEAD_PROVIDE = 2 weeks 1 day
TERMS_ETAG = 0
PRIVACY_ETAG = 0
+STEFAN_ABS = "TESTKUDOS:5"
# Account of the EXCHANGE
[exchange-account-1]
diff --git a/src/testing/test_anastasis.c b/src/testing/test_anastasis.c
index eed0071..f28d9a9 100644
--- a/src/testing/test_anastasis.c
+++ b/src/testing/test_anastasis.c
@@ -334,8 +334,13 @@ run (void *cls,
TALER_TESTING_cmd_merchant_post_instances ("instance-create-default",
merchant_url,
"default",
- merchant_payto,
MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_post_account (
+ "instance-create-default-account",
+ merchant_url,
+ merchant_payto,
+ NULL, NULL,
+ MHD_HTTP_OK),
TALER_TESTING_cmd_batch ("pay",
pay),
TALER_TESTING_cmd_batch ("anastasis",
diff --git a/src/testing/test_anastasis_api.c b/src/testing/test_anastasis_api.c
index 5f24858..7d7e2ac 100644
--- a/src/testing/test_anastasis_api.c
+++ b/src/testing/test_anastasis_api.c
@@ -282,8 +282,13 @@ run (void *cls,
TALER_TESTING_cmd_merchant_post_instances ("instance-create-default",
merchant_url,
"default",
- merchant_payto,
MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_post_account (
+ "instance-create-default-account",
+ merchant_url,
+ merchant_payto,
+ NULL, NULL,
+ MHD_HTTP_OK),
ANASTASIS_TESTING_cmd_config ("salt-request-1",
anastasis_url,
MHD_HTTP_OK),
diff --git a/src/testing/test_anastasis_api.conf
b/src/testing/test_anastasis_api.conf
index db2c30c..ee6a2b8 100644
--- a/src/testing/test_anastasis_api.conf
+++ b/src/testing/test_anastasis_api.conf
@@ -79,6 +79,7 @@ SIGNKEY_LEGAL_DURATION = 2 years
MASTER_PUBLIC_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG
BASE_URL = "http://localhost:8081/"
SERVE = tcp
+STEFAN_ABS = "EUR:5"
[exchange-offline]
MASTER_PRIV_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/master.priv
diff --git
a/src/testing/test_anastasis_api_home/taler/exchange/offline-keys/secm_tofus.pub
b/src/testing/test_anastasis_api_home/taler/exchange/offline-keys/secm_tofus.pub
index 09a3ebd..b086cd1 100644
Binary files
a/src/testing/test_anastasis_api_home/taler/exchange/offline-keys/secm_tofus.pub
and
b/src/testing/test_anastasis_api_home/taler/exchange/offline-keys/secm_tofus.pub
differ
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: adapt to latest API changes,
gnunet <=