diff --git a/test/rebar3_grisp_io_common_test.erl b/test/rebar3_grisp_io_common_test.erl index 9bb94cf..e6b28af 100644 --- a/test/rebar3_grisp_io_common_test.erl +++ b/test/rebar3_grisp_io_common_test.erl @@ -97,9 +97,9 @@ register_user() -> mnesia:write({eresu_user, <<"Uuid">>, <<"Testuser">>, - <<"foo">>, <<"a@a.a">>, erlang:system_time(), + null, Hash, <<"Max Mustermann">>, undefined, @@ -115,6 +115,9 @@ link_board() -> <<"1337">>, <<"Uuid">>, null, + null, + null, + manual, null}) end, mnesia:activity(transaction, AddBoard). @@ -125,7 +128,14 @@ setup_policies(PrivDir) -> operations => '_'}, #{subject => #{uuid => '$1'}, object => #{type => grisp_device, user_id => '$1'}, - operations => '_'}], + operations => '_'}, + #{subject => #{uuid => '$1', + free_plan => true, + total_user_pkg_count => #{op => '<', value => 1}}, + object => #{type => software_update_package, + user_id => '$1'}, + operations => [create] + }], PoliciesString = list_to_binary(io_lib:format("~p.", [Policies])), PolicyFile = filename:join(PrivDir, "policies.term"), ok = file:write_file(PolicyFile, PoliciesString),