You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by sc...@apache.org on 2009/03/31 23:13:17 UTC

svn commit: r760650 - in /incubator/etch/branches/config/services/config: ./ src/test/java/org/apache/etch/services/config/

Author: sccomer
Date: Tue Mar 31 21:13:16 2009
New Revision: 760650

URL: http://svn.apache.org/viewvc?rev=760650&view=rev
Log:
updated, more unit tests.

Added:
    incubator/etch/branches/config/services/config/update15.yml
    incubator/etch/branches/config/services/config/update16.yml
    incubator/etch/branches/config/services/config/update17.yml
    incubator/etch/branches/config/services/config/update18.yml
    incubator/etch/branches/config/services/config/update19.yml
    incubator/etch/branches/config/services/config/update20.yml
    incubator/etch/branches/config/services/config/update21.yml
    incubator/etch/branches/config/services/config/update22.yml
    incubator/etch/branches/config/services/config/update23.yml
    incubator/etch/branches/config/services/config/update24.yml
    incubator/etch/branches/config/services/config/update25.yml
    incubator/etch/branches/config/services/config/update26.yml
    incubator/etch/branches/config/services/config/update27.yml
    incubator/etch/branches/config/services/config/update28.yml
    incubator/etch/branches/config/services/config/update29.yml
    incubator/etch/branches/config/services/config/update30.yml
Modified:
    incubator/etch/branches/config/services/config/configtestplan.txt
    incubator/etch/branches/config/services/config/src/test/java/org/apache/etch/services/config/TestYamlConfig.java

Modified: incubator/etch/branches/config/services/config/configtestplan.txt
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/configtestplan.txt?rev=760650&r1=760649&r2=760650&view=diff
==============================================================================
--- incubator/etch/branches/config/services/config/configtestplan.txt (original)
+++ incubator/etch/branches/config/services/config/configtestplan.txt Tue Mar 31 21:13:16 2009
@@ -18,20 +18,20 @@
 remove map element from list [update13]
 remove list element from list [update14]
 
-update key value in map: scalar -> map [update?]
-update key value in map: scalar -> list [update?]
-update key value in map: map -> scalar [update?]
-update key value in map: map -> map [update?]
-update key value in map: map -> list [update?]
-update key value in map: list -> scalar [update?]
-update key value in map: list -> map [update?]
-update key value in map: list -> list [update?]
+update key value in map: scalar -> map [update15]
+update key value in map: scalar -> list [update16]
+update key value in map: map -> scalar [update17]
+update key value in map: map -> map [update18]
+update key value in map: map -> list [update19]
+update key value in map: list -> scalar [update20]
+update key value in map: list -> map [update21]
+update key value in map: list -> list [update22]
 
-update element in list: scalar -> map [update?]
-update element in list: scalar -> list [update?]
-update element in list: map -> scalar [update?]
-update element in list: map -> map [update?]
-update element in list: map -> list [update?]
-update element in list: list -> scalar [update?]
-update element in list: list -> map [update?]
-update element in list: list -> list [update?]
+update element in list: scalar -> map [update23]
+update element in list: scalar -> list [update24]
+update element in list: map -> scalar [update25]
+update element in list: map -> map [update26]
+update element in list: map -> list [update27]
+update element in list: list -> scalar [update28]
+update element in list: list -> map [update29]
+update element in list: list -> list [update30]

Modified: incubator/etch/branches/config/services/config/src/test/java/org/apache/etch/services/config/TestYamlConfig.java
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/src/test/java/org/apache/etch/services/config/TestYamlConfig.java?rev=760650&r1=760649&r2=760650&view=diff
==============================================================================
--- incubator/etch/branches/config/services/config/src/test/java/org/apache/etch/services/config/TestYamlConfig.java (original)
+++ incubator/etch/branches/config/services/config/src/test/java/org/apache/etch/services/config/TestYamlConfig.java Tue Mar 31 21:13:16 2009
@@ -214,17 +214,6 @@
 		testLoadConfig( EMPTY, false );
 		testLoadConfig( DIR, false );
 	}
-	
-	private void testLoadConfig( String name, boolean expected )
-		throws Exception
-	{
-		ConfigurationServer c = new YamlConfig( null );
-		Assert.assertFalse( c.isLoaded() );
-		try { c.loadConfig( name ); } catch ( Exception e ) {}
-		Assert.assertEquals( expected, c.isLoaded() );
-		c.unloadConfig();
-		Assert.assertFalse( c.isLoaded() );
-	}
 
 	/** @throws Exception */
 	@Test
@@ -336,21 +325,6 @@
 		// id == null
 		c.size( "#0#" );
 	}
-	
-	private void testProps( ConfigurationServer c, Object node, Object parent,
-		String name, Integer index, String path, boolean isRoot, boolean isList,
-		boolean isMap, Integer size )
-	{
-		Assert.assertEquals( parent, c.getParent( node ) );
-		Assert.assertEquals( name, c.getName( node ) );
-		Assert.assertEquals( index, c.getIndex( node ) );
-		Assert.assertEquals( path, c.getPath( node ) );
-		Assert.assertEquals( isRoot, c.isRoot( node ) );
-		Assert.assertEquals( isList, c.isList( node ) );
-		Assert.assertEquals( isMap, c.isMap( node ) );
-		if (size != null)
-			Assert.assertEquals( size, c.size( node ) );
-	}
 
 	/** @throws Exception */
 	@Test
@@ -1191,23 +1165,6 @@
 		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
 		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
 	}
-	
-	private List<?> list( Object ... objs )
-	{
-		List<Object> list = new ArrayList<Object>( objs.length );
-		for (Object obj: objs)
-			list.add( obj );
-		return list;
-	}
-	
-	private Map<?, ?> map( Object ... objs )
-	{
-		Map<String, Object> map = new HashMap<String, Object>(
-			(objs.length * 2 + 2) / 3 );
-		for (int i = 0; i < objs.length; i += 2)
-			map.put( (String) objs[i], objs[i + 1] );
-		return map;
-	}
 
 	/** @throws Exception */
 	@Test
@@ -1223,21 +1180,6 @@
 		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
 		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
 	}
-	
-	private YamlConfig setupUpdate( String updateConfig ) throws Exception
-	{
-		YamlConfig c = new YamlConfig( client, UPDATE+0 );
-		client.setServer( c );
-		Object root = c.getRoot();
-		
-		c.setInterval( 50 );
-		c.subscribe( root );
-		c.setConfig( updateConfig );
-		Thread.sleep( 1000 );
-		c.unsubscribeAll();
-		
-		return c;
-	}
 
 	/** @throws Exception */
 	@Test
@@ -1433,6 +1375,304 @@
 		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
 		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), "bear" ), c.getListPath( root, "list", null ) );
 	}
+
+	/** @throws Exception */
+	@Test
+	public void update15() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+15 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( map( "x", 4, "y", 5, "z", 6 ), c.getMapPath( root, "bar", null ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update16() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+16 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( list( 4, 5, 6 ), c.getListPath( root, "bar", null ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update17() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+17 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( 17, c.getIntegerPath( root, "map" ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update18() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+18 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "x", 8, "y", 9, "z", 10 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update19() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+19 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( list( 3, 4, 5 ), c.getListPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update20() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+20 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( 17, c.getIntegerPath( root, "array" ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update21() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+21 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( map( "i", 9, "j", 8 ), c.getMapPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update22() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+22 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 4, 5, 6 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update23() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+23 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), map( "x", 8, "y", 7, "z", 6 ) ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update24() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+24 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 1, 2, 3 ), list( 2, 3, 4 ) ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update25() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+25 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", 25, list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update26() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+26 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "x", 6, "y", 7, "z", 8 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update27() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+27 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", list( 2, 3, 4 ), list( 1, 2, 3 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update28() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+28 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), 34, "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update29() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+29 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), map( "x", 7, "y", 8, "z", 9 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+
+	/** @throws Exception */
+	@Test
+	public void update30() throws Exception
+	{
+		YamlConfig c = setupUpdate( UPDATE+30 );
+		Object root = c.getRoot();
+		
+		Assert.assertEquals( 5, c.size( root ) );
+		Assert.assertEquals( 2, c.getIntegerPath( root, "foo" ) );
+		Assert.assertEquals( 4, c.getIntegerPath( root, "bar" ) );
+		Assert.assertEquals( list( 2, 3, 4 ), c.getListPath( root, "array", null ) );
+		Assert.assertEquals( map( "a", 5, "b", 6, "c", 7 ), c.getMapPath( root, "map", null ) );
+		Assert.assertEquals( list( "fish", map( "a", 5, "b", 6, "c", 7 ), list( 2, 3, 4 ), "bear" ), c.getListPath( root, "list", null ) );
+	}
+	
+	private void testLoadConfig( String name, boolean expected )
+		throws Exception
+	{
+		ConfigurationServer c = new YamlConfig( null );
+		Assert.assertFalse( c.isLoaded() );
+		try { c.loadConfig( name ); } catch ( Exception e ) {}
+		Assert.assertEquals( expected, c.isLoaded() );
+		c.unloadConfig();
+		Assert.assertFalse( c.isLoaded() );
+	}
+	
+	private void testProps( ConfigurationServer c, Object node, Object parent,
+		String name, Integer index, String path, boolean isRoot, boolean isList,
+		boolean isMap, Integer size )
+	{
+		Assert.assertEquals( parent, c.getParent( node ) );
+		Assert.assertEquals( name, c.getName( node ) );
+		Assert.assertEquals( index, c.getIndex( node ) );
+		Assert.assertEquals( path, c.getPath( node ) );
+		Assert.assertEquals( isRoot, c.isRoot( node ) );
+		Assert.assertEquals( isList, c.isList( node ) );
+		Assert.assertEquals( isMap, c.isMap( node ) );
+		if (size != null)
+			Assert.assertEquals( size, c.size( node ) );
+	}
+	
+	private YamlConfig setupUpdate( String updateConfig ) throws Exception
+	{
+		YamlConfig c = new YamlConfig( client, UPDATE+0 );
+		client.setServer( c );
+		Object root = c.getRoot();
+		
+		c.setInterval( 50 );
+		c.subscribe( root );
+		c.setConfig( updateConfig );
+		Thread.sleep( 1000 );
+		c.unsubscribeAll();
+		
+		return c;
+	}
+	
+	private List<?> list( Object ... objs )
+	{
+		List<Object> list = new ArrayList<Object>( objs.length );
+		for (Object obj: objs)
+			list.add( obj );
+		return list;
+	}
+	
+	private Map<?, ?> map( Object ... objs )
+	{
+		Map<String, Object> map = new HashMap<String, Object>(
+			(objs.length * 2 + 2) / 3 );
+		for (int i = 0; i < objs.length; i += 2)
+			map.put( (String) objs[i], objs[i + 1] );
+		return map;
+	}
 	
 	private static class MyConfigurationClient implements ConfigurationClient
 	{

Added: incubator/etch/branches/config/services/config/update15.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update15.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update15.yml (added)
+++ incubator/etch/branches/config/services/config/update15.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: scalar -> map
+foo: 2
+bar: { x: 4, y: 5, z: 6 }
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update16.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update16.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update16.yml (added)
+++ incubator/etch/branches/config/services/config/update16.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: scalar -> list
+foo: 2
+bar: [ 4, 5, 6 ]
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update17.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update17.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update17.yml (added)
+++ incubator/etch/branches/config/services/config/update17.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: map -> scalar
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: 17
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update18.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update18.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update18.yml (added)
+++ incubator/etch/branches/config/services/config/update18.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: map -> map
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { x: 8, y: 9, z: 10 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update19.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update19.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update19.yml (added)
+++ incubator/etch/branches/config/services/config/update19.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: map -> list
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: [ 3, 4, 5 ]
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update20.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update20.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update20.yml (added)
+++ incubator/etch/branches/config/services/config/update20.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: list -> scalar
+foo: 2
+bar: 4
+array: 17
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update21.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update21.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update21.yml (added)
+++ incubator/etch/branches/config/services/config/update21.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: list -> map
+foo: 2
+bar: 4
+array: { i: 9, j: 8 }
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update22.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update22.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update22.yml (added)
+++ incubator/etch/branches/config/services/config/update22.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update key value in map: list -> list
+foo: 2
+bar: 4
+array: [ 4, 5, 6 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update23.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update23.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update23.yml (added)
+++ incubator/etch/branches/config/services/config/update23.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: scalar -> map
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - { x: 8, y: 7, z: 6 }

Added: incubator/etch/branches/config/services/config/update24.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update24.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update24.yml (added)
+++ incubator/etch/branches/config/services/config/update24.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: scalar -> list
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 1, 2, 3 ]
+  - [ 2, 3, 4 ]

Added: incubator/etch/branches/config/services/config/update25.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update25.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update25.yml (added)
+++ incubator/etch/branches/config/services/config/update25.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: map -> scalar
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - 25
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update26.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update26.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update26.yml (added)
+++ incubator/etch/branches/config/services/config/update26.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: map -> map
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { x: 6, y: 7, z: 8 }
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update27.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update27.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update27.yml (added)
+++ incubator/etch/branches/config/services/config/update27.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: map -> list
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - [ 2, 3, 4 ]
+  - [ 1, 2, 3 ]
+  - bear

Added: incubator/etch/branches/config/services/config/update28.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update28.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update28.yml (added)
+++ incubator/etch/branches/config/services/config/update28.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: list -> scalar
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - 34
+  - bear

Added: incubator/etch/branches/config/services/config/update29.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update29.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update29.yml (added)
+++ incubator/etch/branches/config/services/config/update29.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: list -> map
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - { x: 7, y: 8, z: 9 }
+  - bear

Added: incubator/etch/branches/config/services/config/update30.yml
URL: http://svn.apache.org/viewvc/incubator/etch/branches/config/services/config/update30.yml?rev=760650&view=auto
==============================================================================
--- incubator/etch/branches/config/services/config/update30.yml (added)
+++ incubator/etch/branches/config/services/config/update30.yml Tue Mar 31 21:13:16 2009
@@ -0,0 +1,10 @@
+# update element in list: list -> list
+foo: 2
+bar: 4
+array: [ 2, 3, 4 ]
+map: { a: 5, b: 6, c: 7 }
+list:
+  - fish
+  - { a: 5, b: 6, c: 7 }
+  - [ 2, 3, 4 ]
+  - bear