anchor.diff:                     {memcached,
                       [{engine,"/opt/couchbase/lib/memcached/default_engine.so"},
                        {static_config_string,"bar"}]}]},
  -                 {verbosity,[]}]}],
  -    Res1 = do_upgrade_config_from_1_7_2_to_1_8_0([OldCfg1], []),
  +                 {verbosity,[]}]},
  +               {set, {node, node(), port_servers},
  +                [{moxi, "/opt/couchbase/bin/moxi something"},
  +                 {memcached, "/opt/couchbase/bin/memcached something"}]}],
  +    Res1 = do_upgrade_config_from_1_7_2_to_1_8_0([OldCfg1], DefaultCfg),
       ?assertEqual(lists:sort(RefCfg1), lists:sort(Res1)),
  +
  +    OldCfg2 = [{nodes_wanted, [node()]},
  +               {{node, node(), rest}, [{port, 9000}]}],
  +    Res2 = do_upgrade_config_from_1_7_2_to_1_8_0([OldCfg2], DefaultCfg),
  +    ?assertEqual([{set, {node, node(), port_servers},
  +                   [{moxi, "/opt/couchbase/bin/moxi something"},
  +                    {memcached, "/opt/couchbase/bin/memcached something"}]}],
  +                 lists:sort(Res2)),
       ok.
   
   no_upgrade_on_1_8_0_test() ->
  
positive.code:                   {{node, node(), memcached},
                     [{bucket_engine, "new-be"},
                      {engines, "new-engines"}]},
                    {port_servers,
                     [{moxi, "moxi something"},
                      {memcached, "memcached something"}]},
                    {{node, node(), ns_log}, default_log}],
  
negative.code:     ?assertEqual(lists:sort(Ref4), lists:sort(Res4)).
  
  upgrade_1_7_2_to_1_8_0_test() ->
      DefaultCfg = [{{node, node(), port_servers},
                     [{moxi, "/opt/couchbase/bin/moxi something"},
                      {memcached, "/opt/couchbase/bin/memcached something"}]}],
  
      OldCfg0 = [{nodes_wanted, [node()]},
                 {{node, node(), rest}, [{port, 9000}]},
                 {port_servers, [{moxi, "moxi something"},
                                 {memcached, "memcached something"}]}],
      Res0 = do_upgrade_config_from_1_7_2_to_1_8_0([OldCfg0], DefaultCfg),
      ?assertEqual([{set, {node, node(), port_servers},
                     [{moxi, "/opt/couchbase/bin/moxi something"},
                      {memcached, "/opt/couchbase/bin/memcached something"}]}],
                     lists:sort(Res0)),
  
      OldCfg1 = [{{node,node(),memcached},
                  [{dbdir,"/opt/membase/var/lib/membase/data"},
  