diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-03 23:45:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-03 23:45:11 +0100 |
commit | 6c8c7da9412fd44055b2a42f37f5d495e1164da7 (patch) | |
tree | 2d761c4b47e7755ac4e3d1171943ab47feefdb7e /src/testing | |
parent | e9e686866592eed98f5068e5eefc83e844c53bf7 (diff) | |
download | merchant-6c8c7da9412fd44055b2a42f37f5d495e1164da7.tar.gz merchant-6c8c7da9412fd44055b2a42f37f5d495e1164da7.tar.bz2 merchant-6c8c7da9412fd44055b2a42f37f5d495e1164da7.zip |
-state is actually not part of redirect_uri, adjust test
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_kyc_api.conf | 1 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_kyc_get.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/testing/test_kyc_api.conf b/src/testing/test_kyc_api.conf index bbacbe40..6bd02b43 100644 --- a/src/testing/test_kyc_api.conf +++ b/src/testing/test_kyc_api.conf @@ -51,6 +51,7 @@ KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me KYC_OAUTH2_CLIENT_ID = taler-exchange KYC_OAUTH2_CLIENT_SECRET = exchange-secret KYC_OAUTH2_POST_URL = http://example.com/ +KYC_OAUTH2_CONVERTER_HELPER = taler-exchange-kyc-oauth2-test-converter.sh [kyc-legitimization-deposit-any] OPERATION_TYPE = DEPOSIT diff --git a/src/testing/testing_api_cmd_kyc_get.c b/src/testing/testing_api_cmd_kyc_get.c index 8c1e8fb4..a8f29264 100644 --- a/src/testing/testing_api_cmd_kyc_get.c +++ b/src/testing/testing_api_cmd_kyc_get.c @@ -192,18 +192,18 @@ kyc_get_cb (void *cls, GNUNET_free (dec); TALER_TESTING_FAIL (cs->is); } - eq += strlen ("/kyc-proof/"); - eq = strstr (eq, "state="); + GNUNET_free (dec); + + eq = strstr (url, "&state="); if (NULL == eq) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected 'state'-less KYC URL `%s' (%s)\n", url, dec); - GNUNET_free (dec); TALER_TESTING_FAIL (cs->is); } - eq += strlen ("state="); + eq += strlen ("&state="); nq = strchr (eq, '&'); if (NULL == nq) nq = eq + strlen (eq); @@ -216,11 +216,9 @@ kyc_get_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected KYC URL `%s' (%s) - no h_payto in state\n", url, - dec); - GNUNET_free (dec); + eq); TALER_TESTING_FAIL (cs->is); } - GNUNET_free (dec); } break; } |