From 7ff60dc174d59b17a70f744dc8a99db5229f6493 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Thu, 15 Apr 2021 11:48:15 +0300 Subject: [PATCH] Bump to rbkmoney/bouncer-proto@7dee26e (#25) --- rebar.lock | 2 +- test/bouncer_tests_SUITE.erl | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rebar.lock b/rebar.lock index f65c0d3..ab36189 100644 --- a/rebar.lock +++ b/rebar.lock @@ -2,7 +2,7 @@ [{<<"bear">>,{pkg,<<"bear">>,<<"0.8.7">>},2}, {<<"bouncer_proto">>, {git,"git@github.com:rbkmoney/bouncer-proto.git", - {ref,"a126059a1ceb5f37aa2599e432a91f98526d4682"}}, + {ref,"7dee26e77ad3cc64c7b09350ee54ee3ab1e1ca34"}}, 0}, {<<"cache">>,{pkg,<<"cache">>,<<"2.2.0">>},1}, {<<"certifi">>,{pkg,<<"certifi">>,<<"2.5.1">>},2}, diff --git a/test/bouncer_tests_SUITE.erl b/test/bouncer_tests_SUITE.erl index 75a2e6d..b88829c 100644 --- a/test/bouncer_tests_SUITE.erl +++ b/test/bouncer_tests_SUITE.erl @@ -1,6 +1,5 @@ -module(bouncer_tests_SUITE). --include_lib("common_test/include/ct.hrl"). -include_lib("stdlib/include/assert.hrl"). -export([all/0]). @@ -365,7 +364,7 @@ restricted_search_invoices_shop_manager(C) -> Fragment = lists:foldl(fun maps:merge/2, #{}, [ mk_auth_session_token(), mk_env(), - mk_op_search_invoices(mk_ordset([#{id => <<"SHOP">>}]), <<"PARTY">>), + mk_op_search_invoices(<<"SHOP">>, <<"PARTY">>), mk_user( <<"USER">>, mk_ordset([ @@ -477,12 +476,12 @@ mk_auth_session_token(ExpiresAt) -> } }. -mk_op_search_invoices(Shops, PartyID) -> +mk_op_search_invoices(ShopID, PartyID) -> #{ anapi => #{ op => #{ id => <<"SearchInvoices">>, - shops => Shops, + shop => #{id => ShopID}, party => #{id => PartyID} } }