diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-21 00:23:25 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-21 00:23:25 +0200 |
commit | 0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9 (patch) | |
tree | 7dae1a13fece1711d6cc03fbc7e343e671a356b0 /src | |
parent | e9f29d84b6993d51e352d505042f948e8be00a59 (diff) | |
download | merchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.tar.gz merchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.tar.bz2 merchant-0b9a2ab6993b528dd5dab0beac9ec5c49d101bb9.zip |
-fix product ID in patch operation
Diffstat (limited to 'src')
-rwxr-xr-x | src/testing/test_merchant_product_creation.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/test_merchant_product_creation.sh b/src/testing/test_merchant_product_creation.sh index defbcb37..e089dcb8 100755 --- a/src/testing/test_merchant_product_creation.sh +++ b/src/testing/test_merchant_product_creation.sh @@ -147,7 +147,7 @@ echo -n "Updating product..." PRODUCT_DATA=$(echo $MANAGED_PRODUCT_TEMPLATE | jq 'del(.product_id) | . + {"total_stock": (.total_stock + 2) }') -STATUS=$(curl 'http://localhost:9966/instances/default/private/products/2' -X PATCH \ +STATUS=$(curl 'http://localhost:9966/instances/default/private/products/3' -X PATCH \ -d "$PRODUCT_DATA" \ -w "%{http_code}" -s -o $LAST_RESPONSE) |