Commit Graph

216 Commits

Author SHA1 Message Date
Andrey Fadeev
d3fcf20510
HG-484 Encode MG calls with thrift (#329) 2019-06-17 15:55:36 +03:00
Roman Pushkov
8640eabfe1
HG-489: timeout for fault detector to prevent processing errors (#331)
* add timeout to see if tests fail

* update hg_woody_wrapper:call/4 to receive a deadline without options

* use timeout in fd client

* set very low fd timeout to prevent tests from being slow

* update sys.config

* lower fd delay

* set default fd timeout to 4000

* rename get_service/1 to get_service_opts/1, export, minor refactoring

* use hg_woody_wrapper:get_service_opts/1 in fd client
2019-06-08 21:37:22 +03:00
Roman Pushkov
641a5f441d
HG-488: Use default woody options in fault detector (#330)
* remove custom options from fd call

* remove timeout option
2019-06-07 11:05:32 +03:00
Артем
f27862233a HG-474: Cart to partial refund and capture (#323)
* updated dmsl, fixed

* fixed tests

* added cart validate to refund creation

* added requested changes

* added requested changes

* minors

* added requested changes

* added requested changes 2

* fix

* minor
2019-06-03 16:30:10 +03:00
Roman Pushkov
35c64b9202
HG-477: Allow provider fee selection by terminal (#314)
* update gitignore

* add terminal_is condition test to hg_condition

* add terminal to varset

* use terminal in routing varset

* update tests to use terminal_is condition

* update dmsl and dominant

* fix dialyzer

* revert, use optional fields in payment terms

* add support for optional fields in terminal terms

* update damsel, dominant

* add custom fee to a terminal in tests

* update dominant

* revert terminal_is check in hg_condition

* more explicit naming

* add cashflow override test

* terminal holds and refunds override provider
2019-05-31 12:03:58 +03:00
Andrey Fadeev
93c0c08017
HG-485 Reorder main supervisor child according to dependencies (#328) 2019-05-28 11:23:52 +03:00
Sergey Elin
061001bb3e
HG-482: Improve test for crypto currency (#327) 2019-05-27 18:31:27 +03:00
Roman Pushkov
9d51ea2f46
HG-466: Use fault detector in hellgate routing (#302)
* add fault-detector dep

* fix typo

* update rebar.lock

* update fault detector version

* init fault detector client

* add fault detector base

* add fault-detector url placeholder

* get fault-detector url from env

* fix woody client call

* fix formatting, update gitignore

* update fd client, add fd init placeholder after routing

* add fault_detector_proto to app.src

* fix register_operation in fault detector

* update register operation template after choosing route

* update fd client

* add fault detector to hg_proto

* add placeholder for fd scoring in routing

* add fault detector template to sys.config

* update fault detector client

* add GetStatistics call to routing

* update fault detector client

* update get statistics call in routing

* doc tweak

* fix typing

* fix type

* add init service after routing

* update fd client

* add fd notifiers on success and failure

* clean comments

* add fd dummy to tests

* update routing

* temporarily disable sending operations to fd

* add fd routing test case

* remove retry strategy from fd client

* minor tweak

* add fd routing test

* update tests

* update fd client

* update fd client

* refactoring, update test

* formatting fix

* minor refactoring

* more refactoring

* more refactoring

* fix formatting errors

* minor

* space fix

* fix typo

* remove whitespace

* fix whitespace

* Update hg_direct_recurrent_tests_SUITE.erl

* Update hg_invoice_tests_SUITE.erl

* formatting fixes

* separate routing tests

* update config

* update routing

* update fd client

* clean up comments, update fault detector calls

* fix errors

* fix line length

* fix commas

* fd refactoring

* improve fd formatting

* formatting

* refactoring

* add fail rate scoring test base

* split route selection into multiple functions, refactoring

* fix line length

* update fd config, move fd notification to hg_proxy_provider

* config update

* fd client refactoring

* new route selection + tests

* fix trailing comma

* update config

* update fd client with new config

* rework route selection algorithm

* fix error handling in hg_proxy_provider

* merge, update tests, fix types

* move to logger in fd client

* build_utils update

* fix build utils

* remove lager, update fd child spec

* minor refactoring

* revert to lager in fd

* revert to lager in routing tests

* add match on terminate child in tests

* remove unnecessary include
2019-05-27 11:06:38 +03:00
Sergey Elin
4b9804fade
Add crypto currency (#326) 2019-05-24 11:40:32 +03:00
Andrew Mayorov
f349201add
Allow to turn transition validation off w/ repairs (#325)
* Add final test ensuring balances are consistent
* Bump to rbkmoney/damsel@ce5f697
* HG-482: Fix crash in new damsel
2019-05-23 17:56:47 +03:00
Andrew Mayorov
4214093437
Allow to treat invalid state transitions as warnings (#317)
* Make part of refunds testcases run in parallel
* Add final test ensuring balances are consistent
* Drop HG-418-related specifics
2019-05-20 18:13:57 +03:00
Sergei Shuvatov
6b15455875
HG-480: add additional_info test (#324) 2019-05-20 15:46:29 +03:00
Sergey Elin
0b3e517400
Upgrade to Erlang 21 (with lager) (#322)
* MSFP-433: Erlang 21 with lager
2019-05-20 14:59:29 +03:00
Andrey Fadeev
72e23ac007
HG-478 Allow conditions in recurrent_payment_tool cost (#319)
* Add party_revision preserving
* Add varset collecting in cash validation
* Use preserved domain revision
* Use party_client in hg_recurrent_paytool
* Use party_client in hg_invoice_template
* Use party_revision from params
2019-05-17 12:50:41 +03:00
Andrey Fadeev
7179e82258
HG-478 Revert update to Erlang 21 (#320)
* Revert "MSFP-433: Fix badmatch in woody (#316)"

This reverts commit c9174907a2.

* Revert "Upgrade woody (#315)"

This reverts commit e1ed162497.

* Revert "HG-433: Upgrade to Erlang 21 (#313)"

This reverts commit faf7d595dd.
2019-05-17 11:52:11 +03:00
Sergey Elin
faf7d595dd
HG-433: Upgrade to Erlang 21 (#313)
* HG-433: Upgrade build_utils
* HG-433: Upgrade base erlang image and build image
* HG-433: Upgrade machinegun
* HG-433: Upgrade libraries
* HG-433: Switch to cowboy 2.x
* HG-433: Update dmt_client
* HG-433: Switch to logger
2019-05-08 15:17:59 +03:00
Andrew Mayorov
79d7dabe50
Implement payment context storing (#311)
* Bump to rbkmoney/damsel@3883e6a
2019-04-30 20:38:31 +03:00
Sergey Elin
6e12f6024c
HG-471: Added risk_score_is_too_high to no_route_found (#308)
* Added risk_score_is_too_high to no_route_found
* Update damsel
* Fix logger level for new status
2019-04-26 11:48:07 +03:00
Sergei
73d4043b00
HG-473: optimize memory consuption by dmt_client (#309) 2019-04-25 16:20:12 +03:00
Sergei
f5ca672f3f
Fix check for invoice status on payment start (#307) 2019-04-23 20:08:07 +03:00
Boris
eb1f950f66
HG-459 Events serialize/deserialize in thrift binary (#303) 2019-04-09 09:34:25 +03:00
Sergei
c82b4e62ab
HG-465: invoice creation and payment start idempotency (#306)
* Use invoice id from InvoiceParams/InvoiceWithTemplateParams if defined
* Use payment id from InvoicePaymentParams if defined
* Store external_id for invoice and payment
2019-04-08 16:12:20 +03:00
Andrey Fadeev
4a89dfc81a
HG-468 Remove temporary reindex MG call handler (#305)
Remove reindex machine call handler from #304

This reverts commit 8946494.
2019-04-05 17:24:08 +02:00
Andrey Fadeev
89464944b0
HG-468 Add temporary reindex MG call handler (#304)
This should make possible to fix rest of
rbkmoney/hellgate#299 problems
2019-04-05 10:41:13 +02:00
Alexey
faf2d4c22b
HG-467: Change payment cost to reflect the captured amount (#301) 2019-04-01 18:36:34 +03:00
Evgeny Levenets
c54a041ac5
Fix party revision checkout (second try) (#299)
* Revert "Revert "fix party checkout and revision index building (#295)" (#297)"

This reverts commit 05b6bca7bf.

* check last EventID to ensure MaxRevision is really last one

* match one-element list
2019-03-26 13:09:44 +03:00
Артем
0ddf02ff8e
Fix: + Added test for empty cvv bank card (#298) 2019-03-18 15:50:12 +03:00
Evgeny Levenets
05b6bca7bf
Revert "fix party checkout and revision index building (#295)" (#297)
This reverts commit 99f298e4dd.
2019-03-15 15:21:44 +03:00
Evgeny Levenets
99f298e4dd
fix party checkout and revision index building (#295)
* fix empty map pattern matching

* fix appending party revision index

* include new changes' revision into index
2019-03-12 14:43:07 +03:00
Alexey
f10e9a1e51
HG-461: Add manual refund handle (#292) 2019-02-28 16:30:02 +03:00
Alexey
79fc57713a
HG-457: Fix invalid maximum refund cash calculation (#294) 2019-02-28 15:59:05 +03:00
Артем
caaeea40e6
HG-463: Partial capture permit (#291) 2019-02-27 10:31:04 +03:00
Артем
3426c48623
HG-460: Empty cvv (#289) 2019-02-26 14:46:14 +03:00
Andrew Mayorov
3db9373f8f
Implement custom repair machine actions (#293) 2019-02-25 18:13:34 +03:00
Andrew Mayorov
f968572f59
At least validate that changes are good when doing adhoc repair (#290) 2019-02-22 18:07:53 +03:00
Andrew Mayorov
b226b52f6a
Bump to rbkmoney/woody_erlang@d8de03d (#288) 2019-02-20 14:52:40 +03:00
Артем
798e4412a8
HG-455: Partial capture (#284) 2019-02-04 14:44:38 +03:00
Alexey
8d7f618f6f
DC-111: Add subagent account (#286) 2019-01-29 15:41:43 +03:00
Andrew Mayorov
e4069b0b35
Failproof merging session events (#283) 2019-01-22 11:29:50 +03:00
Andrey Fadeev
2c1b3cc07b Apply back "HG-449: Fail the machine when capture session fails (#277)" (#281)
This reverts commit 7aa73be5ef #279
2019-01-16 16:11:49 +03:00
Andrey Fadeev
52b56f4170
Add more possible transport options for proxy (#280) 2019-01-15 22:20:36 +03:00
Andrey Fadeev
7aa73be5ef
Revert "HG-449: Fail the machine when capture session fails (#277)" (#279)
This reverts commit 1d38c03302.
2019-01-15 21:47:50 +03:00
Alexey
1d38c03302
HG-449: Fail the machine when capture session fails (#277) 2019-01-15 13:49:45 +03:00
Andrey Fadeev
44f18e2e11
MG-145 Add VM metrics collection (#278)
Add `how_are_you` library usage
2019-01-15 00:36:59 +03:00
Артем
967e7d7604
HG-450: Wallet payout tool (#275) 2018-12-12 17:14:15 +03:00
Артем
998985ade2
Revert "HG-398: New state in failure. (#267)" (#274)
This reverts commit f652d97ca6.
2018-11-27 16:05:49 +03:00
kloliks
54d8233461
HG-447: fast get_last_revision (#273) 2018-11-27 14:51:16 +03:00
Артем
f652d97ca6
HG-398: New state in failure. (#267) 2018-11-20 17:41:08 +03:00
Andrey Fadeev
80d01baaf9
HG-443 Do not set custom deadline for inspector without fallback (#266) 2018-11-19 14:31:58 +03:00
Alexey
35e2a5ecf5
HG-446: Fall back to bin check when bank name is undefined (#271) 2018-11-14 16:44:33 +03:00