anchor.diff:                                [{moxi, "moxi something"},
                                  {memcached, "memcached something"}]},
                                {set, {node, node(), ns_log}, default_log}]),
  -                 lists:sort(Strip(Res))).
  +                 lists:sort(Res)).
   
   upgrade_1_7_1_to_1_7_2_test() ->
       DefaultCfg = [{rest, [{port, 8091}]},
  
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: -module(ns_config_default).
  
  -include("ns_common.hrl").
  
  -include_lib("eunit/include/eunit.hrl").
  
  