anchor.diff:      Phase = lists_utils:random_element(?ATM_WORKFLOW_EXECUTIONS_PHASES),
   
       lists:foreach(fun(InvalidListingOpts) ->
  -        ?assertEqual(?EINVAL, list_links(KrkNode, SpaceId, Phase, InvalidListingOpts))
  +        ?assertEqual(?EINVAL, list_links(KrkNode, SpaceId, Phase, all, InvalidListingOpts))
       end, [
           % Either offset or start_index must be specified
           #{}, #{limit => 10},
  
positive.code:     oct_background:end_per_suite().
  
  
  init_per_group(_Group, Config) ->
      lfm_proxy:init(Config, false).
  
  
  end_per_group(_Group, Config) ->
      lfm_proxy:teardown(Config).
  
  
  init_per_testcase(_Case, Config) ->
      ct:timetrap({minutes, 5}),
      Config.
  
negative.code:     SpaceId = str_utils:rand_hex(32),
      Node = oct_background:get_random_provider_node(paris),
  
      AllAtmInventoryIds = [str_utils:rand_hex(32) || _ <- lists:seq(1, 5)],
      ListedAtmInventoryIds = lists_utils:random_element([
          all,
          lists_utils:random_element(AllAtmInventoryIds),
          lists_utils:random_sublist(AllAtmInventoryIds)
      ]),
      ExpLinks = populate_links(Node, SpaceId, Phase, AllAtmInventoryIds, ListedAtmInventoryIds, LinksNum),
  
      ListingOpts = case ListingMethod of
          offset -> #{offset => 0, limit => Limit};
          start_index -> #{start_index => <<>>, limit => Limit}
      end,
      ListedLinks = list_all_links_by_chunk(
          Node, ListingMethod, SpaceId, Phase, ListedAtmInventoryIds, ListingOpts, []
      ),
      ?assertEqual(ExpLinks, ListedLinks).
  
  
  