diff options
Diffstat (limited to 'bank/src/test/kotlin/RevenueApiTest.kt')
-rw-r--r-- | bank/src/test/kotlin/RevenueApiTest.kt | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/bank/src/test/kotlin/RevenueApiTest.kt b/bank/src/test/kotlin/RevenueApiTest.kt index e6bc7651..dfa0e69c 100644 --- a/bank/src/test/kotlin/RevenueApiTest.kt +++ b/bank/src/test/kotlin/RevenueApiTest.kt @@ -42,27 +42,23 @@ class RevenueApiTest { fun history() = bankSetup { setMaxDebt("exchange", "KUDOS:1000000") authRoutine(HttpMethod.Get, "/accounts/merchant/taler-revenue/history") - historyRoutine<MerchantIncomingHistory>( + historyRoutine<RevenueIncomingHistory>( url = "/accounts/merchant/taler-revenue/history", ids = { it.incoming_transactions.map { it.row_id } }, registered = listOf( { // Transactions using clean transfer logic transfer("KUDOS:10") + }, + { + // Common credit transactions + tx("exchange", "KUDOS:10", "merchant", "ignored") } ), ignored = listOf( { - // Ignore manual incoming transaction - tx("exchange", "KUDOS:10", "merchant", "${randShortHashCode()} http://exchange.example.com/") - }, - { - // Ignore malformed incoming transaction - tx("merchant", "KUDOS:10", "exchange", "ignored") - }, - { - // Ignore malformed outgoing transaction - tx("exchange", "KUDOS:10", "merchant", "ignored") + // Ignore debit transactions + tx("merchant", "KUDOS:10", "customer") } ) ) |