anchor.diff:  -module(ns_config_default).
   
   -include("ns_common.hrl").
  --include("ns_config.hrl").
   
   -include_lib("eunit/include/eunit.hrl").
   
  
positive.code:                [{dbdir, "dbdir"},
                  {bucket_engine, "old-be"},
                  {engines, "old-engines"}]}],
  
      StripValue = fun ([{?METADATA_VCLOCK, _V} | Rest]) ->
                           Rest;
                       (Other) ->
                           Other
                   end,
      Strip = fun (Config) ->
                      lists:map(
                        fun ({set, K, V}) ->
                                {set, K, StripValue(V)};
                            (Other) ->
                                Other
                        end,
                        Config)
              end,
  
      Res = do_upgrade_config_from_1_6_to_1_7([OldCfg], DefaultCfg),
  
      ?assertEqual(lists:sort([{set, directory, default_directory},
                               {set, {node, node(), isasl},
                                [{path, default_isasl}]},
                               {set, {node, node(), memcached},
                                [{dbdir, "dbdir"},
                                 {bucket_engine, "new-be"},
  
negative.code:                           [X || {set, directory, _} = X <- Changes]),
  
               {set, _, NewMemcached} = lists:keyfind({node, node(), memcached}, 2, Changes),
               ?assertEqual({dbdir, "dbdir"}, lists:keyfind(dbdir, 1, NewMemcached))
       end}.
  
  prefix_replace_test() ->
  