Add benchmark example config file.

This commit is contained in:
Marcello Stanisci 2018-07-25 15:43:27 +02:00
parent dc7e2fc00e
commit 953a2bd382
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
7 changed files with 121 additions and 132 deletions

View File

@ -1 +0,0 @@
{"type":"test", "bank_url":"http://localhost:8082/", "account_number":63}

121
src/benchmark/example.conf Normal file
View File

@ -0,0 +1,121 @@
[taler]
# Must be EUR, as refresh CMDs have hardcoded currency.
currency = EUR
[paths]
# Apparently ignored by the bank.
taler_run = $HOME/run
taler_test_home = /tmp/taler_test_home
[exchange]
base_url = http://localhost:18080/
serve = tcp
port = 18080
# NOTE: this is the only value that cannot be
# generated on the fly, so it must be set beforehand.
master_public_key = VN3AZMENQAW2AWGY8SV7W9KF2ZG44GR904ADEWKT7K98FWBD0QWG
master_priv_file = ${TALER_RUN}/exchange/priv
db = postgres
lookahead_sign = 12 h
[exchangedb]
wirefee_base_dir = ${TALER_TEST_HOME}/exchange/wirefees/
auditor_base_dir = ${TALER_TEST_HOME}/auditor/sigs/
[exchangedb-postgres]
config = postgres:///talercheck
[account-1]
url = payto://x-taler-bank/localhost:8080/2
# NOTE: the user should run `taler-exchange-wire' _before_
# running the benchmark in order to get this JSON defined.
wire_response = ${TALER_TEST_HOME}/exchange/account-benchmark-2.json
plugin = taler_bank
taler_bank_auth_method = basic
username = Exchange
password = x
enable_debit = yes
enable_credit = yes
[fees-x-taler-bank]
wire-fee-2018 = EUR:0.01
wire-fee-2019 = EUR:0.01
wire-fee-2020 = EUR:0.01
wire-fee-2021 = EUR:0.01
wire-fee-2022 = EUR:0.01
wire-fee-2023 = EUR:0.01
wire-fee-2024 = EUR:0.01
wire-fee-2025 = EUR:0.01
wire-fee-2026 = EUR:0.01
wire-fee-2027 = EUR:0.01
closing-fee-2018 = EUR:0.01
closing-fee-2019 = EUR:0.01
closing-fee-2020 = EUR:0.01
closing-fee-2021 = EUR:0.01
closing-fee-2022 = EUR:0.01
closing-fee-2023 = EUR:0.01
closing-fee-2024 = EUR:0.01
closing-fee-2025 = EUR:0.01
closing-fee-2026 = EUR:0.01
closing-fee-2027 = EUR:0.01
[coin_eur_ct_1]
value = EUR:0.01
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.00
fee_deposit = EUR:0.00
fee_refresh = EUR:0.01
fee_refund = EUR:0.01
rsa_keysize = 1024
[coin_eur_ct_10]
value = EUR:0.10
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
[coin_eur_1]
value = EUR:1
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
[coin_eur_5]
value = EUR:5
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
[coin_eur_10]
value = EUR:10
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024

View File

@ -1 +0,0 @@
{"type":"test", "bank_url":"http://localhost:8082/", "account_number":64}

View File

@ -1,116 +0,0 @@
[benchmark]
BANK_DETAILS = bank_details.json
MERCHANT_DETAILS = merchant_details.json
[PATHS]
# Persistant data storage for the testcase
TALER_TEST_HOME = test_benchmark_home/
[taler]
CURRENCY = KUDOS
[exchange]
# HTTP port the exchange listens to
PORT = 8081
# How to access our database
DB = postgres
# Master public key used to sign the exchange's various keys
MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
[exchangedb-postgres]
CONFIG = "postgres:///talercheck"
[account-exchange]
# What is the main website of the bank?
# (Not used unless the aggregator is run.)
URL = "payto://x-taler-bank/localhost:8082/3"
PLUGIN = "taler_bank"
ENABLE_CREDIT = YES
ENABLE_DEBIT = YES
TALER_BANK_AUTH_METHOD = NONE
# This is the response we give out for the /wire request. It provides
# wallets with the bank information for transfers to the exchange.
WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account.json
[fees-x-taler-bank]
WIRE-FEE-2017 = KUDOS:0.01
WIRE-FEE-2018 = KUDOS:0.01
WIRE-FEE-2019 = KUDOS:0.01
WIRE-FEE-2020 = KUDOS:0.01
WIRE-FEE-2021 = KUDOS:0.01
WIRE-FEE-2022 = KUDOS:0.01
WIRE-FEE-2023 = KUDOS:0.01
WIRE-FEE-2024 = KUDOS:0.01
WIRE-FEE-2025 = KUDOS:0.01
WIRE-FEE-2026 = KUDOS:0.01
CLOSING-FEE-2017 = KUDOS:0.01
CLOSING-FEE-2018 = KUDOS:0.01
CLOSING-FEE-2019 = KUDOS:0.01
CLOSING-FEE-2020 = KUDOS:0.01
CLOSING-FEE-2021 = KUDOS:0.01
CLOSING-FEE-2022 = KUDOS:0.01
CLOSING-FEE-2023 = KUDOS:0.01
CLOSING-FEE-2024 = KUDOS:0.01
CLOSING-FEE-2025 = KUDOS:0.01
CLOSING-FEE-2026 = KUDOS:0.01
[coin_kudos_1]
value = KUDOS:1
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = KUDOS:0.00
fee_deposit = KUDOS:0.00
fee_refresh = KUDOS:0.00
fee_refund = KUDOS:0.00
rsa_keysize = 1024
[coin_kudos_2]
value = KUDOS:2
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = KUDOS:0.00
fee_deposit = KUDOS:0.00
fee_refresh = KUDOS:0.00
fee_refund = KUDOS:0.00
rsa_keysize = 1024
[coin_kudos_4]
value = KUDOS:4
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = KUDOS:0.00
fee_deposit = KUDOS:0.00
fee_refresh = KUDOS:0.00
fee_refund = KUDOS:0.00
rsa_keysize = 1024
[coin_kudos_8]
value = KUDOS:8
duration_overlap = 5 minutes
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = KUDOS:0.00
fee_deposit = KUDOS:0.00
fee_refresh = KUDOS:0.00
fee_refund = KUDOS:0.00
rsa_keysize = 1024

View File

@ -1,5 +0,0 @@
{
"url": "payto://x-taler-bank/localhost:8082/3",
"salt": "KQV3VNMKGQVMMS9QWKZ5T5R7XJ0BN31019P5B8RVVNCH120ARF13B1T8FYXCNZVB3TZHEBQP0H8HY0MJ83TKBJ8Q7RXSM182TP17TAR",
"master_sig": "0VF39WRA844BCMSSKSYVZMXKCRVT38H72CT17N6184Z7PHWAKFC9RJCHB8TW1MNQ6N170SPS16JE4WJB4P004FNPQC7GGZG01ZB0G2R"
}

View File

@ -1,8 +0,0 @@
{
"salt": "AZPRFVJ58NM6M7J5CZQPJAH3EW5DYM52AEZ9Y1C1ER3W94QV8D8TQKF6CK8MYQRA9QMSKDQTGZ306ZS9GQ0M6R01CJ20KPP49WFDZK8",
"name": "The exchange",
"account_number": 3,
"bank_url": "http://localhost:8082/",
"type": "test",
"sig": "RPQXP9S4P8PQP7HEZQNRSZCT0ATNEP8GW0P5TPM34V5RX86FCD670V44R9NETSYDDKB8SZV7TKY9PAJYTY51D3VDWY9XXQ5BPFRXR28"
}

View File

@ -1 +0,0 @@
p<EFBFBD>^<5E>-<2D>33<33><33>XX<>!<04>\0q<30><71><EFBFBD><EFBFBD><18>mU<6D>_<EFBFBD><5F>