anchor.diff:  
   %% @private
   wait_for_file_location_sync(Node, SessId, FileGuid, ExpDistribution) ->
  -    SortedExpDistribution = lists:usort(ExpDistribution),
  -
  -    GetDistFun = fun() ->
  -        case lfm_proxy:get_file_distribution(Node, SessId, ?FILE_REF(FileGuid)) of
  -            {ok, Dist} -> {ok, lists:usort(Dist)};
  -            {error, _} = Error -> Error
  -        end
  -    end,
  -    ?assertMatch({ok, SortedExpDistribution}, GetDistFun(), ?ATTEMPTS).
  +    ?assertEqual(
  +        ExpDistribution,
  +        ?rpc(Node, mi_file_metadata:get_distribution(SessId, ?FILE_REF(FileGuid))),
  +        ?ATTEMPTS
  +    ).
   
   
   %% @private
   get_distribution_test_base(FileType, FileGuid, ShareId, ExpDistribution, Config) ->
  -    Providers = ?config(op_worker_nodes, Config),
  -    SortedExpDistribution = lists:usort(ExpDistribution),
       {ok, FileObjectId} = file_id:guid_to_objectid(FileGuid),
   
  +    ExpRestDistribution = file_distribution_get_result:to_json(rest, ExpDistribution),
       ValidateRestSuccessfulCallFun = fun(_TestCtx, {ok, RespCode, _RespHeaders, RespBody}) ->
  -        ?assertEqual({?HTTP_200_OK, SortedExpDistribution}, {RespCode, lists:usort(RespBody)})
  -    end,
  -
  -    ExpGsDistribution = rpc:call(
  -        lists_utils:random_element(Providers),
  -        file_gui_gs_translator,
  -        translate_distribution,
  -        [FileGuid, SortedExpDistribution]
  -    ),
  -
  +        ?assertEqual({?HTTP_200_OK, ExpRestDistribution}, {RespCode, RespBody})
  +    end,
  +
  +    ExpGsDistribution = file_distribution_get_result:to_json(gs, ExpDistribution),
       CreateValidateGsSuccessfulCallFun = fun(Type) ->
           ExpGsResponse = ExpGsDistribution#{
               <<"gri">> => gri:serialize(#gri{
  
positive.code: -author("Bartosz Walkowicz").
  
  -include("api_file_test_utils.hrl").
  -include("modules/fslogic/fslogic_common.hrl").
  -include("modules/logical_file_manager/lfm.hrl").
  -include_lib("ctool/include/graph_sync/gri.hrl").
  -include_lib("ctool/include/http/codes.hrl").
  -include_lib("ctool/include/http/headers.hrl").
  
negative.code: %%%===================================================================
  
  
  get_storage_id(SpaceId, ProviderId) ->
      {ok, Storages} = ?rpc(krakow, space_logic:get_provider_storages(SpaceId, ProviderId)),
      hd(maps:keys(Storages)).
  
  
  get_file_distribution_test(Config) ->
      P1Id = oct_background:get_provider_id(krakow),
      [P1Node] = oct_background:get_provider_nodes(krakow),
  
      P2Id = oct_background:get_provider_id(paris),
      [P2Node] = oct_background:get_provider_nodes(paris),
  
      SpaceId = oct_background:get_space_id(space_krk_par),
      P1StorageId = get_storage_id(SpaceId, P1Id),
      P2StorageId = get_storage_id(SpaceId, P2Id),
  
      SpaceOwnerSessIdP1 = oct_background:get_user_session_id(user2, krakow),
      UserSessIdP1 = oct_background:get_user_session_id(user3, krakow),
  