anchor.diff:  
   
   
  -load_repos_adds_default_keys_test() ->
  +process_repos_adds_default_keys_test() ->
       RepoCfg = [
           #{domain => <<"test1.domain.org">>,
             keys => [#{id => <<"testkey1">>, path => <<"/">>}]},
  
positive.code:           secret => <<"SECRET2">>}
      ],
  
      {ok, Repos, Keys} = load_keys(KeyCfg, RepoCfg, fun(K) -> mock_load_key(K) end),
  
      {value, #{secret := Secret}} = lists:search(
          fun(#{id := Id}) -> Id =:= <<"test3.domain.org">> end, Keys),
  
negative.code:          load/2]).
  
  
  % Read application configuration (either user_config or repo_config)
  %
  % Read an application configuration variable or return a default value
  % if the variable is undefined. If the variable is set to {file, FileName},
  % FileName will be read using read_config_file, otherwise the contents of
  % the variable itself are returned
  read(VarName, Default) ->
      case application:get_env(VarName) of
          {ok, {file, ConfigFile}} ->
              read_config_file(ConfigFile);
          {ok, ConfigMap} ->
              ConfigMap;
          undefined ->
              Default
      end.
  
  
  