anchor.diff:                           {"metadata", {struct, [{"complex", {array, [10, {struct, [{"name", "plip"}]}]}}]}}]}}]} =
                      tests_utils:get(BaseUrl, "/event/testmeeting/" ++ Id, auth_params(AuthParams)).
   
  -test_push_missing_type(BaseUrl, {RootUid, RootSid}) ->
  -    Params = [{"uid", RootUid},
  -              {"sid", RootSid},
  -              {"metadata[description]", "pushed_event"}],
  +test_push_missing_type(BaseUrl, AuthParams) ->
  +    Params = auth_params(AuthParams) ++ [{"metadata[description]", "pushed_event"}],
       {struct, [{"error", "missing_parameters"}, {"infos", _}]} =
           tests_utils:post(BaseUrl, "/event/testmeeting", Params).
   
  -test_push_not_found_meeting(BaseUrl, {RootUid, RootSid}) ->
  -    Params = [{"uid", RootUid},
  -              {"sid", RootSid},
  -              {"type", "test_push_1"},
  -              {"metadata[description]", "pushed_event"}],
  +test_push_not_found_meeting(BaseUrl, AuthParams) ->
  +    Params = auth_params(AuthParams) ++ [{"type", "test_push_1"},
  +                                         {"metadata[description]", "pushed_event"}],
       {struct, [{"error", "not_found"}]} =
           tests_utils:post(BaseUrl, "/event/unexistentmeeting", Params).
   
  -test_push_not_found_parent(BaseUrl, {RootUid, RootSid}) ->
  -    ParamsChild = [{"uid", RootUid},
  -                   {"sid", RootSid},
  -                   {"type", "test_push_1"},
  -                   {"parent", "unexistent_id"},
  -                   {"metadata[description]", "pushed_event"}],
  +test_push_not_found_parent(BaseUrl, AuthParams) ->
  +    ParamsChild = auth_params(AuthParams) ++ [{"type", "test_push_1"},
  +                                              {"parent", "unexistent_id"},
  +                                              {"metadata[description]", "pushed_event"}],
       {struct, [{"error", "not_found"}]} =
           tests_utils:post(BaseUrl, "/event/testmeeting", ParamsChild).
   
  -test_push_not_found_to(BaseUrl, {RootUid, RootSid}) ->
  -    Params = [{"uid", RootUid},
  -              {"sid", RootSid},
  -              {"type", "test_push_1"},
  -              {"to", "unexistent_user"},
  -              {"metadata[description]", "pushed_event"}],
  +test_push_not_found_to(BaseUrl, AuthParams) ->
  +    Params = auth_params(AuthParams) ++ [{"type", "test_push_1"},
  +                                         {"to", "unexistent_user"},
  +                                         {"metadata[description]", "pushed_event"}],
       {struct, [{"error", "not_found"}]} =
           tests_utils:post(BaseUrl, "/event/testmeeting", Params).
   
  -test_get(BaseUrl, {RootUid, RootSid}) ->
  -    Params = [{"uid", RootUid},
  -              {"sid", RootSid}],
  -
  +test_get(BaseUrl, AuthParams) ->
       ?assertMatch({struct, [{"result", {array,
                             [ {struct, [{"type", "test_event_1"}
                                         , {"domain", _}
  
positive.code:                    tests_utils:get(BaseUrl, "/event/testmeeting/" ++ Id, auth_params(AuthParams)).
  
  test_push_to_unauthorized(BaseUrl,
                            {RootUid, RootSid},
                            {ParticipantUid, ParticipantSid},
                            {UglyUid, _UglySid}) ->
      Params = [{"uid", ParticipantUid},
                {"sid", ParticipantSid},
                {"type", "test_push_1"},
                {"to", UglyUid},
                {"metadata[description]", "pushed_event"}],
      {struct, [{"result", _Id}]} =
          tests_utils:post(BaseUrl, "/event/testmeeting", Params),
  
      ParamsRoot = [{"uid", RootUid},
                    {"sid", RootSid},
                    {"type", "test_push_to_other"}],
       {struct, [{"result", {array, []}}]} =
           tests_utils:get(BaseUrl, "/event/testmeeting/", ParamsRoot).
  
  
negative.code:                                       , {"from", _}
                                        , {"metadata", {struct, [{"description", "test"}]}}
                                       ]}|_]
                           }}]}, tests_utils:get(BaseUrl, "/event/testmeeting", auth_params(AuthParams))).
  
  test_get_without_meeting(BaseUrl, AuthParams) ->
      Params = [{"type", "non_global_event"},
                {"metadata[description]", "plop2"}],
      post_event(BaseUrl, "testmeeting", AuthParams, Params),
  
      timer:sleep(1000),
  
      ParamsGet = auth_params(AuthParams) ++ [{"order", "desc"},
                                              {"count", "1"}],
      Result = tests_utils:get(BaseUrl, "/event/", ParamsGet),
      ?assertMatch({struct, [{"result", {array,
                            [{struct, [{"type", "non_global_event"}
                                       , {"domain", _}
                                       , {"datetime", _}
                                       , {"id", _}
                                       , {"location", "testmeeting"}
                                       , {"from", _}
                                       , {"metadata", {struct, [{"description", "plop2"}]}}
                                      ]}]}}]},
                   Result).
  
  test_get_with_keywords(BaseUrl, AuthParams) ->
      Params = [{"type", "search_event"},
                {"metadata[description]", "lonely event"}],
      post_event(BaseUrl, "testmeeting", AuthParams, Params),
  
      timer:sleep(1000),
  
      ParamsGet = auth_params(AuthParams) ++ [{"search", "lonely"},
                                              {"count", "1"}],
      ?assertMatch({struct, [{"result", {array,
                            [{struct, [{"type", "search_event"}
                                       , {"domain", _}
                                       , {"datetime", _}
                                       , {"id", _}
                                       , {"location", "testmeeting"}
                                       , {"from", _}
                                       , {"metadata", {struct, [{"description", "lonely event"}]}}
                                      ]}]}}]},
                   tests_utils:get(BaseUrl, "/event/testmeeting", ParamsGet)).
  