anchor.diff:  %%%===================================================================
   
   
  +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),
  
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:     file_test_utils:await_sync(P2Node, FileGuid),
  
      lfm_test_utils:write_file(P1Node, UserSessIdP1, FileGuid, 0, {rand_content, 20}),
      ExpDist1 = #file_distribution_get_result{distribution = #reg_distribution{
          logical_size = 20,
          blocks_per_storage = #{
              P1StorageId => [?BLOCK(0, 20)],
              P2StorageId => []
          }
      }},
      wait_for_file_location_sync(P2Node, UserSessIdP2, FileGuid, ExpDist1),
      get_distribution_test_base(FileType, FileGuid, ShareId, ExpDist1, Config),
  
      % Write another block to file on P2 and check returned distribution
  
      lfm_test_utils:write_file(P2Node, UserSessIdP2, FileGuid, 30, {rand_content, 20}),
      ExpDist2 = #file_distribution_get_result{distribution = #reg_distribution{
          logical_size = 50,
          blocks_per_storage = #{
              P1StorageId => [?BLOCK(0, 20)],
              P2StorageId => [?BLOCK(30, 20)]
          }
      }},
      wait_for_file_location_sync(P1Node, UserSessIdP1, FileGuid, ExpDist2),
      get_distribution_test_base(FileType, FileGuid, ShareId, ExpDist2, Config).
  
  
  %% TODO test with dir stats enabled
  get_dir_distribution_test(Config) ->
      [P1Node] = oct_background:get_provider_nodes(krakow),
      [P2Node] = oct_background:get_provider_nodes(paris),
  