anchor.diff:  -define(NS_LOG, "ns_log").
   
   get_current_version() ->
  -    {4, 0}.
  +    {4, 1, 1}.
   
   ensure_data_dir() ->
       RawDir = path_config:component_path(data),
  
positive.code:     [{set, MCDefaultsK, NewMCDefaults},
       {set, PortServersK, NewPSDefaults},
       {set, McdKey, NewMcdConfig3},
       {set, JTKey, DefaultJsonTemplateConfig}].
  
  upgrade_2_3_0_to_3_0_test() ->
  
negative.code:                   {set, {node, _, memcached_config}, new_memcached_config}],
                   do_upgrade_config_from_3_1_5_to_4_0(Cfg, Default)).
  
  upgrade_4_0_to_4_1_1_test() ->
      Cfg = [[{some_key, some_value},
              {{node, node(), memcached}, old_memcached_config},
              {{node, node(), port_servers}, old_port_servers},
              {{node, node(), memcached_default}, old_memcached_defaults},
              {{node, node(), memcached_config}, old_memcached_config}]],
      Default = [{{node, node(), memcached_defaults}, new_memcached_defaults},
                 {{node, node(), port_servers}, new_port_servers},
                 {{node, node(), memcached}, new_memcached},
                 {{node, node(), memcached_config}, new_memcached_config}],
      ?assertMatch([{set, {node, _, memcached_defaults}, new_memcached_defaults},
                    {set, {node, _, memcached_config}, new_memcached_config}],
                   do_upgrade_config_from_4_0_to_4_1_1(Cfg, Default)).
  
  no_upgrade_on_current_version_test() ->
      ?assertEqual([], upgrade_config([[{{node, node(), config_version}, get_current_version()}]])).
  
  