View Issue Details

IDProjectCategoryView StatusLast Update
0009797Talertaler-harnesspublic2025-05-10 02:13
ReporterFlorian Dold Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version1.0Fixed in Version1.0 
Summary0009797: harness test kyc-merchant-deposit-rewrite unclear
DescriptionIt's unclear to me whether the test (originally written by Sebastian) is expected to even work like it is currently written or not.

The test starts with a deposit limit for merchants of zero. The AML officer then lifts the limit for a particular account.
Then the test expects the merchant backend to update the KYC status ("GET .../private/kyc") by running kyccheck and depositcheck in test mode (-t).

Is this even expected to work?

The other (passing!) integration test triggers the KYC status update by POSTing an order.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2025-04-26 08:38

manager   ~0024683

Yes, it should work, but again possibly with timetravel. taler-merchant-kyccheck is supposed to check about our exchange KYC status independent of "incidents". However, the frequency is capped at once per 6h, so you'll need to timetravel taler-merchant-kyccheck at least 6h into the future.

Florian Dold

2025-04-28 21:54

manager   ~0024700

I have *not* added the time travel yet.

However, the test currently times out for me directly in the first step after setup, since taler-merchant-kyccheck *hangs* despite passing "-t". Note that there is another taler-merchant-kyccheck running in the background already.

You can either see from the logs that kyccheck hangs, or I can write another harness test to reproduce just the hanging.

WDYT?

Christian Grothoff

2025-04-28 23:09

manager   ~0024703

Let me look into it.

Christian Grothoff

2025-04-28 23:30

manager   ~0024704

c592a1c6..924fa10a fixes the hang: we were long-polling at the exchange. With the patch, we are no longer long-polling in test mode and the process exits virtually immediately. Test still fails...

Florian Dold

2025-04-29 12:28

manager   ~0024707

Test passes now after having fixed a bad assertion in the harness.

Curiously, it passes without requiring time travel.

Issue History

Date ModifiedUsernameFieldChange
2025-04-25 23:14Florian DoldNew Issue
2025-04-25 23:14Florian DoldStatusnew => assigned
2025-04-25 23:14Florian DoldAssigned To => Christian Grothoff
2025-04-26 08:38Christian GrothoffNote Added: 0024683
2025-04-26 08:38Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2025-04-28 21:54Florian DoldNote Added: 0024700
2025-04-28 21:54Florian DoldAssigned ToFlorian Dold => Christian Grothoff
2025-04-28 23:09Christian GrothoffNote Added: 0024703
2025-04-28 23:30Christian GrothoffNote Added: 0024704
2025-04-28 23:31Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2025-04-29 12:28Florian DoldStatusassigned => informing
2025-04-29 12:28Florian DoldResolutionopen => fixed
2025-04-29 12:28Florian DoldNote Added: 0024707
2025-05-10 02:12Christian GrothoffFixed in Version => 1.0
2025-05-10 02:13Christian GrothoffStatusinforming => closed