From d5619de525930cf76e5ff6bce3418e5b478dbe9f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Jan 2023 11:25:18 +0100 Subject: fix test_kyc_api: adapt test logic to improved OAuth2.0 kyc API: --- src/testing/testing_api_cmd_kyc_proof.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/testing/testing_api_cmd_kyc_proof.c') diff --git a/src/testing/testing_api_cmd_kyc_proof.c b/src/testing/testing_api_cmd_kyc_proof.c index ed0df556..ff76e415 100644 --- a/src/testing/testing_api_cmd_kyc_proof.c +++ b/src/testing/testing_api_cmd_kyc_proof.c @@ -43,11 +43,6 @@ struct KycProofGetState */ const char *code; - /** - * State to pass. - */ - const char *state; - /** * Logic section name to pass to `/kyc-proof/` handler. */ @@ -158,10 +153,12 @@ proof_kyc_run (void *cls, TALER_TESTING_interpreter_fail (kps->is); return; } - GNUNET_asprintf (&uargs, - "?code=%s&state=%s", - kps->code, - kps->state); + if (NULL == kps->code) + uargs = NULL; + else + GNUNET_asprintf (&uargs, + "&code=%s", + kps->code); kps->kph = TALER_EXCHANGE_kyc_proof (is->exchange, h_payto, kps->logic, @@ -235,14 +232,12 @@ TALER_TESTING_cmd_proof_kyc_oauth2 ( const char *payment_target_reference, const char *logic_section, const char *code, - const char *state, unsigned int expected_response_code) { struct KycProofGetState *kps; kps = GNUNET_new (struct KycProofGetState); kps->code = code; - kps->state = state; kps->logic = logic_section; kps->payment_target_reference = payment_target_reference; kps->expected_response_code = expected_response_code; -- cgit v1.2.3