anchor.diff:      {ok, lists:map(AddDefaultKeyId, RepoCfg)}.
   
   
  -load_keys(KeyCfg, Repos, KeyLoader) ->
  +process_keys(KeyCfg, Repos, KeyLoader) ->
       try lists:map(KeyLoader, KeyCfg) of
           SpecifiedKeys ->
               ProcessDefaultKey = fun(R, {AccRepos, AccKeys}) ->
  
positive.code:         <<"test3.domain.org">>
      ],
  
      {ok, Repos} = load_repos(RepoCfg),
      {value, #{domain := Name, keys := KeyIds}} = lists:search(
          fun(#{domain := D}) -> D =:= <<"test3.domain.org">> end, Repos),
      ?assert(Name =:= <<"test3.domain.org">>),
      ?assert(KeyIds =:= default).
  
  load_keys_adds_missing_key_definition_test() ->
      RepoCfg = [
          #{domain => <<"test1.domain.org">>,
            keys => [#{id => <<"testkey1">>, path => <<"/">>}]},
  
negative.code: 
  
  
  process_repos_adds_default_keys_test() ->
      RepoCfg = [
          #{domain => <<"test1.domain.org">>,
            keys => [#{id => <<"testkey1">>, path => <<"/">>}]},
  