From 1826dbfda792be31bfbe999fed9e9368eeacfef7 Mon Sep 17 00:00:00 2001 From: Nao Nishijima Date: Fri, 19 Jul 2019 10:12:19 +0000 Subject: [PATCH] [FAB-16036] Fix a error of get query in testAPI.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CR add a space in parameter expansion to get a transation id. testAPI.sh tries to get a transaction id using parameter expansion from MESSAGE variable and accesses a URL incluse the transaction id. However the transaction id includes a space at the beginning and the access will be failed. By ridding of the space, the access will successes. Signed-off-by: Nao Nishijima Reported-by: YAMAUCHI,KAITO Change-Id: I0c52418044deb3b7d8c30cb64a5908e32462bd09 --- balance-transfer/testAPIs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balance-transfer/testAPIs.sh b/balance-transfer/testAPIs.sh index ad503b2b..83af58c6 100755 --- a/balance-transfer/testAPIs.sh +++ b/balance-transfer/testAPIs.sh @@ -197,7 +197,7 @@ VALUES=$(curl -s -X POST \ echo $VALUES # Assign previous invoke transaction id to TRX_ID MESSAGE=$(echo $VALUES | jq -r ".message") -TRX_ID=${MESSAGE#*ID:} +TRX_ID=${MESSAGE#*ID: } echo echo "GET query chaincode on peer1 of Org1"