merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit fee2c8647b7fe864fc33cd21af4cce622cc8697d
parent b49054a6191fa7145dda30ffcbb344ed49bf0093
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 31 Aug 2021 13:00:28 +0200

add test for #6912

Diffstat:
Msrc/backend/taler-merchant-httpd_private-post-transfers.c | 4++--
Msrc/testing/initialize_taler_system.sh | 20++++++++++++++++++--
Msrc/testing/test-merchant-walletharness.sh | 18+++++++++++++++++-
Msrc/testing/test_key_rotation.sh | 18+++++++++++++++++-
Msrc/testing/test_merchant_instance_purge.sh | 18+++++++++++++++++-
Msrc/testing/test_merchant_instance_response.sh | 18+++++++++++++++++-
Msrc/testing/test_merchant_product_creation.sh | 18+++++++++++++++++-
Msrc/testing/test_merchant_reserve_creation.sh | 18+++++++++++++++++-
8 files changed, 122 insertions(+), 10 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-transfers.c b/src/backend/taler-merchant-httpd_private-post-transfers.c @@ -135,7 +135,7 @@ struct PostTransfersContext * #GNUNET_SYSERR if we found a matching coin, but the amounts do not match. * #GNUNET_OK if we did find a matching coin. */ - int check_transfer_result; + enum GNUNET_GenericReturnValue check_transfer_result; /** * Should we retry the transaction due to a serialization error? @@ -370,7 +370,7 @@ check_transfer (void *cls, * @return #GNUNET_SYSERR if we returned hard proof of * missbehavior from the exchange to the client */ -static int +static enum GNUNET_GenericReturnValue check_wire_fee (struct PostTransfersContext *ptc, struct GNUNET_TIME_Absolute execution_time, const struct TALER_Amount *wire_fee) diff --git a/src/testing/initialize_taler_system.sh b/src/testing/initialize_taler_system.sh @@ -1,4 +1,20 @@ -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# ## Coloring style Text shell script COLOR='\033[0;35m' NOCOLOR='\033[0m' @@ -57,7 +73,7 @@ echo -n "Testing for taler-bank-manage" taler-bank-manage --help >/dev/null </dev/null || exit_skip " MISSING" echo " FOUND" echo -n "Testing for taler-wallet-cli" -taler-wallet-cli -v >/dev/null </dev/null || exit_skip " MISSING" +taler-wallet-cli -v >/dev/null </dev/null 2> /dev/null || exit_skip " MISSING" echo " FOUND" echo -n "Generating Taler auditor, exchange and merchant configurations ..." diff --git a/src/testing/test-merchant-walletharness.sh b/src/testing/test-merchant-walletharness.sh @@ -1,5 +1,21 @@ #!/usr/bin/env bash - +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# # This script runs test from the wallet's integration test harness. # If the wallet is not installed, the tests are skipped. # Only tests from the "merchant" test suite are run. diff --git a/src/testing/test_key_rotation.sh b/src/testing/test_key_rotation.sh @@ -1,5 +1,21 @@ #!/bin/bash -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# # # Note that this test is intentionally NOT run as part of the standard test # suite, because it is awfully slow (due to necessary 'wait' operations) and diff --git a/src/testing/test_merchant_instance_purge.sh b/src/testing/test_merchant_instance_purge.sh @@ -1,5 +1,21 @@ #!/bin/bash -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# . initialize_taler_system.sh diff --git a/src/testing/test_merchant_instance_response.sh b/src/testing/test_merchant_instance_response.sh @@ -1,5 +1,21 @@ #!/bin/bash -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# . initialize_taler_system.sh diff --git a/src/testing/test_merchant_product_creation.sh b/src/testing/test_merchant_product_creation.sh @@ -1,5 +1,21 @@ #!/bin/bash -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# . initialize_taler_system.sh diff --git a/src/testing/test_merchant_reserve_creation.sh b/src/testing/test_merchant_reserve_creation.sh @@ -1,5 +1,21 @@ #!/bin/bash -# This file is in the public domain. +# This file is part of TALER +# Copyright (C) 2014-2021 Taler Systems SA +# +# TALER is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3, or +# (at your option) any later version. +# +# TALER is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with TALER; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/> +# . initialize_taler_system.sh