summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/auditor-lib/test_auditor_api.c9
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c1
-rw-r--r--src/exchange-lib/exchange_api_handle.c2
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.c9
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.conf5
-rw-r--r--src/exchangedb/exchangedb_auditorkeys.c4
-rw-r--r--src/exchangedb/perf_taler_exchangedb_interpreter.c3
-rw-r--r--src/exchangedb/test_exchangedb.c9
8 files changed, 32 insertions, 10 deletions
diff --git a/src/auditor-lib/test_auditor_api.c b/src/auditor-lib/test_auditor_api.c
index e349695f5..6b03bb70f 100644
--- a/src/auditor-lib/test_auditor_api.c
+++ b/src/auditor-lib/test_auditor_api.c
@@ -498,14 +498,19 @@ int
main (int argc,
char * const *argv)
{
- if (1)
- return 77; // FIXME: test not yet ready
+
/* These environment variables get in the way... */
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
GNUNET_log_setup ("test-auditor-api",
"INFO",
NULL);
+ if (1)
+ {
+ TALER_LOG_WARNING ("Test not yet ready\n");
+ return 77; // FIXME: test not yet ready
+ }
+
if (NULL == (fakebank_url
/* Check fakebank port is available and config cares
* about bank url. */
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index aeb96df5d..af4a88bf3 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -153,6 +153,7 @@ postgres_drop_tables (void *cls)
GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS auditor_progress_coin;"),
GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS wire_auditor_progress;"),
GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS auditor_exchanges CASCADE;"),
+ GNUNET_PQ_make_execute ("DROP TABLE IF EXISTS deposit_confirmations CASCADE;"),
GNUNET_PQ_EXECUTE_STATEMENT_END
};
PGconn *conn;
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index d7fa65fad..b131ffcab 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -1481,7 +1481,7 @@ request_keys (void *cls)
kr));
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
- GNUNET_NO,
+ GNUNET_YES,
&keys_completed_cb,
kr);
exchange->kr = kr;
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c
index e276fd1a8..9e52c9ea7 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -61,6 +61,11 @@ static char *fakebank_url;
static char *exchange_url;
/**
+ * Auditor URL, unused but needed to achieve compilation.
+ */
+static char *auditor_url;
+
+/**
* Twister process.
*/
static struct GNUNET_OS_Process *twisterd;
@@ -367,6 +372,7 @@ main (int argc,
TALER_TESTING_cleanup_files (CONFIG_FILE);
switch (TALER_TESTING_prepare_exchange (CONFIG_FILE,
+ &auditor_url,
&exchange_url))
{
case GNUNET_SYSERR:
@@ -381,7 +387,8 @@ main (int argc,
(CONFIG_FILE)))
return 77;
- ret = TALER_TESTING_setup_with_exchange (&run, NULL,
+ ret = TALER_TESTING_setup_with_exchange (&run,
+ NULL,
CONFIG_FILE);
purge_process (twisterd);
GNUNET_free (twister_url);
diff --git a/src/exchange-lib/test_exchange_api_twisted.conf b/src/exchange-lib/test_exchange_api_twisted.conf
index 12a07a17e..ba59b5a60 100644
--- a/src/exchange-lib/test_exchange_api_twisted.conf
+++ b/src/exchange-lib/test_exchange_api_twisted.conf
@@ -67,8 +67,11 @@ BASE_URL = "http://localhost:8888/"
[exchangedb-postgres]
DB_CONN_STR = "postgres:///talercheck"
+[auditor]
+BASE_URL = "http://the.auditor/"
+
[auditordb-postgres]
-DB_CONN_STR = "postgres:///talercheck"
+CONFIG = "postgres:///talercheck"
[account-2]
URL = payto://x-taler-bank/localhost:8082/2
diff --git a/src/exchangedb/exchangedb_auditorkeys.c b/src/exchangedb/exchangedb_auditorkeys.c
index a84d06084..5f98743d3 100644
--- a/src/exchangedb/exchangedb_auditorkeys.c
+++ b/src/exchangedb/exchangedb_auditorkeys.c
@@ -113,7 +113,9 @@ auditor_iter (void *cls,
}
if (size < sizeof (struct AuditorFileHeaderP))
{
- GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Unrecognized size for file `%s', skipping\n",
+ filename);
return GNUNET_OK;
}
af = GNUNET_malloc (size);
diff --git a/src/exchangedb/perf_taler_exchangedb_interpreter.c b/src/exchangedb/perf_taler_exchangedb_interpreter.c
index 6c0460321..cdd5a5fc1 100644
--- a/src/exchangedb/perf_taler_exchangedb_interpreter.c
+++ b/src/exchangedb/perf_taler_exchangedb_interpreter.c
@@ -1228,7 +1228,8 @@ interpret (struct PERF_TALER_EXCHANGEDB_interpreter_state *state)
data = &state->cmd[source_index].exposed;
ret = state->plugin->have_deposit (state->plugin->cls,
state->session,
- data->data.deposit);
+ data->data.deposit,
+ GNUNET_YES);
GNUNET_assert (0 >= ret);
}
break;
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 1bae92510..c6e9b86a0 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -1942,7 +1942,8 @@ run (void *cls)
FAILIF (1 !=
plugin->have_deposit (plugin->cls,
session,
- &deposit));
+ &deposit,
+ GNUNET_YES));
{
struct GNUNET_TIME_Absolute start_range;
struct GNUNET_TIME_Absolute end_range;
@@ -2032,13 +2033,15 @@ run (void *cls)
FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
plugin->have_deposit (plugin->cls,
session,
- &deposit2));
+ &deposit2,
+ GNUNET_YES));
deposit2.merchant_pub = deposit.merchant_pub;
RND_BLK (&deposit2.coin.coin_pub); /* should fail if coin is different */
FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
plugin->have_deposit (plugin->cls,
session,
- &deposit2));
+ &deposit2,
+ GNUNET_YES));
FAILIF (GNUNET_OK !=
test_melting (session));