This commit is contained in:
Andrew Mayorov 2021-04-15 11:48:15 +03:00 committed by GitHub
parent 487395fa92
commit 7ff60dc174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
[{<<"bear">>,{pkg,<<"bear">>,<<"0.8.7">>},2}, [{<<"bear">>,{pkg,<<"bear">>,<<"0.8.7">>},2},
{<<"bouncer_proto">>, {<<"bouncer_proto">>,
{git,"git@github.com:rbkmoney/bouncer-proto.git", {git,"git@github.com:rbkmoney/bouncer-proto.git",
{ref,"a126059a1ceb5f37aa2599e432a91f98526d4682"}}, {ref,"7dee26e77ad3cc64c7b09350ee54ee3ab1e1ca34"}},
0}, 0},
{<<"cache">>,{pkg,<<"cache">>,<<"2.2.0">>},1}, {<<"cache">>,{pkg,<<"cache">>,<<"2.2.0">>},1},
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.5.1">>},2}, {<<"certifi">>,{pkg,<<"certifi">>,<<"2.5.1">>},2},

View File

@ -1,6 +1,5 @@
-module(bouncer_tests_SUITE). -module(bouncer_tests_SUITE).
-include_lib("common_test/include/ct.hrl").
-include_lib("stdlib/include/assert.hrl"). -include_lib("stdlib/include/assert.hrl").
-export([all/0]). -export([all/0]).
@ -365,7 +364,7 @@ restricted_search_invoices_shop_manager(C) ->
Fragment = lists:foldl(fun maps:merge/2, #{}, [ Fragment = lists:foldl(fun maps:merge/2, #{}, [
mk_auth_session_token(), mk_auth_session_token(),
mk_env(), mk_env(),
mk_op_search_invoices(mk_ordset([#{id => <<"SHOP">>}]), <<"PARTY">>), mk_op_search_invoices(<<"SHOP">>, <<"PARTY">>),
mk_user( mk_user(
<<"USER">>, <<"USER">>,
mk_ordset([ mk_ordset([
@ -477,12 +476,12 @@ mk_auth_session_token(ExpiresAt) ->
} }
}. }.
mk_op_search_invoices(Shops, PartyID) -> mk_op_search_invoices(ShopID, PartyID) ->
#{ #{
anapi => #{ anapi => #{
op => #{ op => #{
id => <<"SearchInvoices">>, id => <<"SearchInvoices">>,
shops => Shops, shop => #{id => ShopID},
party => #{id => PartyID} party => #{id => PartyID}
} }
} }