summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-20 20:03:59 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-20 20:03:59 +0100
commit4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993 (patch)
tree4780bcb1ed882dee315bd11ac1033ac333704654 /src/testing
parentd986555355de315121f1285c04ccc89082ba9755 (diff)
downloadexchange-4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993.tar.gz
exchange-4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993.tar.bz2
exchange-4b9fb610d81c47fbd8613cb71a4f25ce6b2d2993.zip
do not log error on MHD_HTTP_GONE status code, revocation is a legitimate reply
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_bank_api.c8
-rw-r--r--src/testing/test_exchange_api_overlapping_keys_bug.c12
-rw-r--r--src/testing/testing_api_cmd_withdraw.c3
-rw-r--r--src/testing/testing_api_helpers_bank.c4
4 files changed, 8 insertions, 19 deletions
diff --git a/src/testing/test_bank_api.c b/src/testing/test_bank_api.c
index 8e788493d..7f3b7099d 100644
--- a/src/testing/test_bank_api.c
+++ b/src/testing/test_bank_api.c
@@ -220,17 +220,13 @@ main (int argc,
return 77;
}
libeufin_services = TALER_TESTING_run_libeufin (&bc);
- if ( (NULL == libeufin_services.nexus) || (NULL ==
- libeufin_services.sandbox) )
- {
- GNUNET_break (0);
+ if ( (NULL == libeufin_services.nexus) ||
+ (NULL == libeufin_services.sandbox) )
return 77;
- }
}
else
{
/* no bank service was ever invoked. */
- GNUNET_break (0);
return 77;
}
diff --git a/src/testing/test_exchange_api_overlapping_keys_bug.c b/src/testing/test_exchange_api_overlapping_keys_bug.c
index 27d4c6801..74039cce4 100644
--- a/src/testing/test_exchange_api_overlapping_keys_bug.c
+++ b/src/testing/test_exchange_api_overlapping_keys_bug.c
@@ -43,18 +43,6 @@
#define CONFIG_FILE "test_exchange_api_keys_cherry_picking.conf"
/**
- * Used to increase the number of denomination keys.
- */
-#define CONFIG_FILE_EXTENDED \
- "test_exchange_api_keys_cherry_picking_extended.conf"
-
-/**
- * Used to increase the number of denomination keys.
- */
-#define CONFIG_FILE_EXTENDED_2 \
- "test_exchange_api_keys_cherry_picking_extended_2.conf"
-
-/**
* Exchange configuration data.
*/
static struct TALER_TESTING_ExchangeConfiguration ec;
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c
index df33ef2eb..cfbdc177d 100644
--- a/src/testing/testing_api_cmd_withdraw.c
+++ b/src/testing/testing_api_cmd_withdraw.c
@@ -265,6 +265,9 @@ reserve_withdraw_cb (void *cls,
case MHD_HTTP_CONFLICT:
/* nothing to check */
break;
+ case MHD_HTTP_GONE:
+ /* theoretically could check that the key was actually */
+ break;
case MHD_HTTP_NOT_FOUND:
/* nothing to check */
break;
diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c
index c42c52cd8..6751f3f4d 100644
--- a/src/testing/testing_api_helpers_bank.c
+++ b/src/testing/testing_api_helpers_bank.c
@@ -129,7 +129,9 @@ TALER_TESTING_run_libeufin (const struct TALER_TESTING_BankConfiguration *bc)
NULL);
if (NULL == nexus_proc)
{
- GNUNET_break (0);
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
+ "exec",
+ "libeufin-nexus");
return ret;
}
GNUNET_asprintf (&curl_check_cmd,