commit 6c8c7da9412fd44055b2a42f37f5d495e1164da7
parent e9e686866592eed98f5068e5eefc83e844c53bf7
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 3 Nov 2023 23:45:11 +0100
-state is actually not part of redirect_uri, adjust test
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git 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
@@ -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;
}