gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 03/03: update


From: gnunet
Subject: [taler-merchant] 03/03: update
Date: Tue, 06 Dec 2022 15:31:16 +0100

This is an automated email from the git hooks/post-receive script.

priscilla-huang pushed a commit to branch master
in repository merchant.

commit 06ba46d76b5f70b0c06a390ef1bb2f9b2a60200d
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Tue Dec 6 09:30:56 2022 -0500

    update
---
 src/testing/test_merchant_template_creation.sh | 112 -------------------------
 1 file changed, 112 deletions(-)

diff --git a/src/testing/test_merchant_template_creation.sh 
b/src/testing/test_merchant_template_creation.sh
index 2fb6ab26..e69de29b 100644
--- a/src/testing/test_merchant_template_creation.sh
+++ b/src/testing/test_merchant_template_creation.sh
@@ -1,112 +0,0 @@
-#!/bin/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/>
-#
-
-. initialize_taler_system.sh
-
-echo -n "Configuring merchant instance ..."
-FORTYTHREE=`get_payto_uri fortythree x`
-STATUS=$(curl -H "Content-Type: application/json" -X POST \
-    -H 'Authorization: Bearer secret-token:super_secret' \
-    http://localhost:9966/management/instances \
-    -d 
'{"auth":{"method":"external"},"payto_uris":["'$FORTYTHREE'"],"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"
 : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
-    -w "%{http_code}" -s -o /dev/null)
-
-if [ "$STATUS" != "204" ]
-then
-    echo 'should respond ok, instance created. got:' $STATUS
-    exit 1
-fi
-echo OK
-RANDOM_IMG='data:image/png;base64,abcdefg'
-
-INFINITE_TEMPLATE='{"template_id":"2","description":"template with id 
2","image":"'$RANDOM_IMG'"}'
-MANAGED_TEMPLATE='{"template_id":"3","description":"template with id 
3","image":"'$RANDOM_IMG'"}'
-
-echo -n "Creating templates..."
-STATUS=$(curl 'http://localhost:9966/instances/default/private/templates' \
-    -d "$INFINITE_TEMPLATE" \
-    -w "%{http_code}" -s -o /dev/null)
-
-if [ "$STATUS" != "204" ]
-then
-    echo 'should respond ok, template created. got:' $STATUS
-    exit 1
-fi
-
-STATUS=$(curl 'http://localhost:9966/instances/default/private/templates' \
-    -d "$MANAGED_TEMPLATE" \
-    -w "%{http_code}" -s -o /dev/null)
-
-if [ "$STATUS" != "204" ]
-then
-    echo 'should respond ok, template created. got:' $STATUS
-    exit 1
-fi
-echo OK
-
-
-TEMPLATE_DATA=$(echo $INFINITE_TEMPLATE | jq 'del(.template_id) | . + 
{description: "other description"}')
-
-echo -n "Updating infinite stock template..."
-STATUS=$(curl 'http://localhost:9966/instances/default/private/templates/2' -X 
PATCH \
-    -d "$TEMPLATE_DATA" \
-    -w "%{http_code}" -s -o $LAST_RESPONSE)
-
-if [ "$STATUS" != "204" ]
-then
-    echo 'should respond ok, updating template. got:' $STATUS
-    cat $LAST_RESPONSE
-    exit 1
-fi
-
-STATUS=$(curl 'http://localhost:9966/instances/default/private/templates/2' \
-    -w "%{http_code}" -s -o $LAST_RESPONSE)
-
-DESCRIPTION=`jq -r .description < $LAST_RESPONSE`
-
-if [ "$DESCRIPTION" != "other description" ]
-then
-    echo 'should change description. got:' $DESCRIPTION
-    cat $LAST_RESPONSE
-    exit 1
-fi
-echo OK
-
-echo " OK"
-
-
-echo -n "Updating template..."
-
-TEMPLATE_DATA=$(echo $MANAGED_TEMPLATE | jq 'del(.template_id)')
-
-STATUS=$(curl 'http://localhost:9966/instances/default/private/templates/3' -X 
PATCH \
-    -d "$TEMPLATE_DATA" \
-    -w "%{http_code}" -s -o $LAST_RESPONSE)
-
-if [ "$STATUS" != "204" ]
-then
-    echo 'should respond ok, updating template. got:' $STATUS
-    cat $LAST_RESPONSE
-    exit 1
-fi
-
-echo " OK"
-
-exit 0

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]