summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-24 20:17:12 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-24 20:17:12 +0200
commita376e29ef856bf2baf00ea0c871f9f852c2273bc (patch)
tree2c4bbf51bfaaa1ca41c428b49819f9ebcb3f09a7
parent0fa2888bc7d1095a2341e16eda59cb5085b78b67 (diff)
downloadmerchant-a376e29ef856bf2baf00ea0c871f9f852c2273bc.tar.gz
merchant-a376e29ef856bf2baf00ea0c871f9f852c2273bc.tar.bz2
merchant-a376e29ef856bf2baf00ea0c871f9f852c2273bc.zip
typo
-rw-r--r--src/backenddb/merchant-0001.sql2
-rw-r--r--src/testing/test_merchant_api.c36
2 files changed, 36 insertions, 2 deletions
diff --git a/src/backenddb/merchant-0001.sql b/src/backenddb/merchant-0001.sql
index 2c867b34..f49c2cc6 100644
--- a/src/backenddb/merchant-0001.sql
+++ b/src/backenddb/merchant-0001.sql
@@ -127,7 +127,7 @@ CREATE TABLE IF NOT EXISTS merchant_inventory
,image BYTEA NOT NULL
,taxes BYTEA NOT NULL
,price_val INT8 NOT NULL
- ,price_frac cINT4 NOT NULL
+ ,price_frac INT4 NOT NULL
,total_stock BIGINT NOT NULL
,total_sold BIGINT NOT NULL
,total_lost BIGINT NOT NULL
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index 76fbb438..d4e25083 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -921,7 +921,7 @@ run (void *cls,
"i1",
MHD_HTTP_OK,
"instance-create-i1"),
- TALER_TESTING_cmd_merchant_patch_instance ("instance-create-i1",
+ TALER_TESTING_cmd_merchant_patch_instance ("instance-patch-i1",
merchant_url,
"i1",
1,
@@ -939,6 +939,40 @@ run (void *cls,
GNUNET_TIME_UNIT_MINUTES,
GNUNET_TIME_UNIT_MINUTES,
MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_get_instance ("instances-get-i1-2",
+ merchant_url,
+ "i1",
+ MHD_HTTP_OK,
+ "instance-patch-i1"),
+ TALER_TESTING_cmd_merchant_get_instance ("instances-get-i2-nx",
+ merchant_url,
+ "i2",
+ MHD_HTTP_NOT_FOUND,
+ NULL),
+ TALER_TESTING_cmd_merchant_post_instances ("instance-create-i2",
+ merchant_url,
+ "i2",
+ PAYTO_I1,
+ "EUR",
+ MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_delete_instance ("instance-delete-i2",
+ merchant_url,
+ "i2",
+ MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_get_instance ("instances-get-i2",
+ merchant_url,
+ "i2",
+ MHD_HTTP_OK,
+ NULL),
+ TALER_TESTING_cmd_merchant_purge_instance ("instance-delete-i2",
+ merchant_url,
+ "i2",
+ MHD_HTTP_NO_CONTENT),
+ TALER_TESTING_cmd_merchant_get_instance ("instances-get-i2",
+ merchant_url,
+ "i2",
+ MHD_HTTP_NOT_FOUND,
+ NULL),
#if 0
TALER_TESTING_cmd_batch ("pay",
pay),