diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2024-01-23 08:59:03 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2024-01-23 08:59:03 +0100 |
commit | 0275aacac6835b2ee0b1b579e93963691ab9e8bd (patch) | |
tree | 0e6f631adb816a05916b346b0e1404e3af52b288 /src | |
parent | 366a2226abbf43b25ff38a8fec88315863281ab8 (diff) | |
download | merchant-0275aacac6835b2ee0b1b579e93963691ab9e8bd.tar.gz merchant-0275aacac6835b2ee0b1b579e93963691ab9e8bd.tar.bz2 merchant-0275aacac6835b2ee0b1b579e93963691ab9e8bd.zip |
[ci] fixing CI testing, down to 4 out of 15 failing, WIP
Diffstat (limited to 'src')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 10 | ||||
-rw-r--r-- | src/testing/test.conf | 2 | ||||
-rw-r--r-- | src/testing/test_kyc_api.conf | 3 | ||||
-rw-r--r-- | src/testing/test_merchant_api.conf | 3 |
4 files changed, 8 insertions, 10 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 96b7ac5f..40fb1d19 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -202,9 +202,6 @@ postgres_create_tables (void *cls) GNUNET_PQ_make_try_execute ("SET search_path TO merchant;"), GNUNET_PQ_EXECUTE_STATEMENT_END }; - struct GNUNET_PQ_QueryParam params[] = { - GNUNET_PQ_query_param_end - }; enum GNUNET_GenericReturnValue ret; conn = GNUNET_PQ_connect_with_cfg (pc->cfg, @@ -214,13 +211,6 @@ postgres_create_tables (void *cls) NULL); if (NULL == conn) return GNUNET_SYSERR; -#if WTF_OEC - if (0 > - GNUNET_PQ_eval_prepared_non_select (conn, - "create_tables", - params)) - ret = GNUNET_SYSERR; -#endif ret = GNUNET_PQ_exec_sql (conn, "procedures"); GNUNET_PQ_disconnect (conn); diff --git a/src/testing/test.conf b/src/testing/test.conf index 4e91d594..a338e22e 100644 --- a/src/testing/test.conf +++ b/src/testing/test.conf @@ -40,6 +40,7 @@ HTTP_PORT = 8082 # Which port do we run the backend on? (HTTP server) PORT = 8080 +SERVE = http # Which plugin (backend) do we use for the DB. DB = postgres @@ -47,6 +48,7 @@ DB = postgres # This specifies which database the postgres backend uses. [merchantdb-postgres] CONFIG = postgres:///talercheck +SQL_DIR = $DATADIR/sql/merchant/ # Sections starting with "merchant-exchange-" specify trusted exchanges # (by the merchant) diff --git a/src/testing/test_kyc_api.conf b/src/testing/test_kyc_api.conf index cc0a3824..ce5151a2 100644 --- a/src/testing/test_kyc_api.conf +++ b/src/testing/test_kyc_api.conf @@ -19,10 +19,13 @@ HTTP_PORT = 8082 [merchant] PORT = 8080 +SERVE = http +DB = postgres # This specifies which database the postgres backend uses. [merchantdb-postgres] CONFIG = postgres:///talercheck +SQL_DIR = $DATADIR/sql/merchant/ [merchant-exchange-test] MASTER_KEY = NKX42KSCQHDQK7CF1PC6X9DMQPXW6KHXKGD3DPQJMP32FKXSWYK0 diff --git a/src/testing/test_merchant_api.conf b/src/testing/test_merchant_api.conf index a676c87e..c09bafe0 100644 --- a/src/testing/test_merchant_api.conf +++ b/src/testing/test_merchant_api.conf @@ -32,9 +32,12 @@ PORT = 8082 [merchant] PORT = 8080 +SERVE = http +DB = postgres [merchantdb-postgres] CONFIG = postgres:///talercheck +SQL_DIR = $DATADIR/sql/merchant/ [merchant-exchange-test] MASTER_KEY = NKX42KSCQHDQK7CF1PC6X9DMQPXW6KHXKGD3DPQJMP32FKXSWYK0 |