mirror of
https://github.com/valitydev/bouncer.git
synced 2024-11-06 02:15:18 +00:00
Adapt broken testcase
This commit is contained in:
parent
bd90214058
commit
a4ee2ef05d
@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user