diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-16 11:25:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-16 11:25:18 +0100 |
commit | d5619de525930cf76e5ff6bce3418e5b478dbe9f (patch) | |
tree | 71b5f6aa56ae8ebb158d1c926cc65db5cdd9d751 /src/testing/testing_api_cmd_kyc_proof.c | |
parent | 6231c365fdd7b13032dffbebb94be62e2ef34455 (diff) | |
download | exchange-d5619de525930cf76e5ff6bce3418e5b478dbe9f.tar.xz |
fix test_kyc_api: adapt test logic to improved OAuth2.0 kyc API:
Diffstat (limited to 'src/testing/testing_api_cmd_kyc_proof.c')
-rw-r--r-- | src/testing/testing_api_cmd_kyc_proof.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/testing/testing_api_cmd_kyc_proof.c b/src/testing/testing_api_cmd_kyc_proof.c index ed0df5564..ff76e415c 100644 --- a/src/testing/testing_api_cmd_kyc_proof.c +++ b/src/testing/testing_api_cmd_kyc_proof.c @@ -44,11 +44,6 @@ struct KycProofGetState const char *code; /** - * State to pass. - */ - const char *state; - - /** * Logic section name to pass to `/kyc-proof/` handler. */ const char *logic; @@ -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; |