Skip to content

Commit 342b1f5

Browse files
committed
Fixes route-cascading test group
1 parent 2804501 commit 342b1f5

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

apps/hellgate/test/hg_invoice_tests_SUITE.erl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ payment_shop_limit_success(C) ->
12181218
#domain_TurnoverLimit{
12191219
id = ?SHOPLIMIT_ID,
12201220
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1221-
domain_revision = dmt_client:get_latest_version()
1221+
domain_revision = hg_domain:head()
12221222
}
12231223
],
12241224
ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -1239,7 +1239,7 @@ payment_shop_limit_overflow(C) ->
12391239
#domain_TurnoverLimit{
12401240
id = ?SHOPLIMIT_ID,
12411241
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1242-
domain_revision = dmt_client:get_latest_version()
1242+
domain_revision = hg_domain:head()
12431243
}
12441244
]),
12451245
ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -1262,7 +1262,7 @@ payment_shop_limit_more_overflow(C) ->
12621262
#domain_TurnoverLimit{
12631263
id = ?SHOPLIMIT_ID,
12641264
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
1265-
domain_revision = dmt_client:get_latest_version()
1265+
domain_revision = hg_domain:head()
12661266
}
12671267
]),
12681268
ShopID = hg_ct_helper:create_shop(PartyID, ?cat(1), <<"RUB">>, ?tmpl(1), ?pinst(1), TurnoverLimits, PartyClient),
@@ -6530,7 +6530,8 @@ cascade_fixture(Revision, C) ->
65306530
init_route_cascading_group(C1) ->
65316531
PartyID = cfg(party_id, C1),
65326532
PartyClient = cfg(party_client, C1),
6533-
_ = override_domain_fixture(fun cascade_fixture_pre_shop_create/2, undefined, C1),
6533+
Revision = hg_domain:head(),
6534+
_ = hg_domain:upsert(cascade_fixture_pre_shop_create(Revision, C1)),
65346535
C2 = [
65356536
{
65366537
{shop_id, ?PAYMENT_CASCADE_SUCCESS_ID},
@@ -6616,7 +6617,8 @@ init_route_cascading_group(C1) ->
66166617
}
66176618
| C1
66186619
],
6619-
override_domain_fixture(fun cascade_fixture/2, undefined, C2).
6620+
_ = hg_domain:upsert(cascade_fixture(Revision, C2)),
6621+
[{base_limits_domain_revision, Revision}|C2].
66206622

66216623
init_per_cascade_case(payment_cascade_success, C) ->
66226624
ShopID = cfg({shop_id, ?PAYMENT_CASCADE_SUCCESS_ID}, C),
@@ -9960,7 +9962,7 @@ construct_domain_fixture() ->
99609962
#domain_TurnoverLimit{
99619963
id = ?LIMIT_ID,
99629964
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
9963-
domain_revision = dmt_client:get_latest_version()
9965+
domain_revision = hg_domain:head()
99649966
}
99659967
]}
99669968
}
@@ -10013,7 +10015,7 @@ construct_domain_fixture() ->
1001310015
#domain_TurnoverLimit{
1001410016
id = ?LIMIT_ID2,
1001510017
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
10016-
domain_revision = dmt_client:get_latest_version()
10018+
domain_revision = hg_domain:head()
1001710019
}
1001810020
]}
1001910021
}
@@ -10058,7 +10060,7 @@ construct_domain_fixture() ->
1005810060
#domain_TurnoverLimit{
1005910061
id = ?LIMIT_ID3,
1006010062
upper_boundary = ?LIMIT_UPPER_BOUNDARY,
10061-
domain_revision = dmt_client:get_latest_version()
10063+
domain_revision = hg_domain:head()
1006210064
}
1006310065
]}
1006410066
}

config/sys.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
{hg_proto, [
2121
{services, #{
22+
limiter => "http://limiter:8022/v1/limiter",
2223
automaton => "http://machinegun:8022/v1/automaton",
2324
eventsink => "http://machinegun:8022/v1/event_sink",
2425
accounter => "http://shumway:8022/accounter",

rebar.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
0},
3232
{<<"dmt_client">>,
3333
{git,"https://github.com/valitydev/dmt-client.git",
34-
{ref,"94eb03710a4a879b508306a4851cb766616b1015"}},
34+
{ref,"ec1f8c8dcf1e7a9ef39328a91da3949bd89770cf"}},
3535
0},
3636
{<<"dmt_core">>,
3737
{git,"https://github.com/valitydev/dmt-core.git",

0 commit comments

Comments
 (0)