Commit 251d6869 authored by afreyssin's avatar afreyssin
Browse files

Tests recovery of bridge REST from failures of bridge and foreign server.

parent 2538ea3c
......@@ -37,6 +37,7 @@
<antcall target="tests.distribution"/>
<antcall target="tests.jms2"/>
<antcall target="tests.rest"/>
<antcall target="tests.bridge.rest" />
</target>
<target name="tests.all"
......@@ -83,6 +84,7 @@
<antcall target="tests.distribution"/>
<antcall target="tests.jms2"/>
<antcall target="tests.rest"/>
<antcall target="tests.bridge.rest" />
</target>
<target name="custom.tests.bamboo"
......@@ -119,6 +121,7 @@
<antcall target="tests.distribution"/>
<antcall target="tests.jms2"/>
<antcall target="tests.rest"/>
<antcall target="tests.bridge.rest" />
</target>
<target name="custom.tests.vtest"
......@@ -152,6 +155,7 @@
<antcall target="tests.distribution"/>
<antcall target="tests.jms2"/>
<antcall target="tests.rest"/>
<antcall target="tests.bridge.rest" />
</target>
<target name="tests.base"
......@@ -5323,82 +5327,160 @@
<!-- start bridgerest test -->
<!-- Bridge REST -->
<target name="tests.bridge.rest"
description=" --> launch all bridge REST tests">
<antcall target="bridge.rest.simpleText"/>
<antcall target="bridge.rest.simpleBytes"/>
<antcall target="bridge.rest.simpleMap"/>
<antcall target="bridge.rest.test1"/>
</target>
<target name="init.bridgerest" depends="init.a3props,compile"
description=" --> init Bridge REST">
<antcall target="init.test" inheritAll="true">
<param name="jndiconf" value="bridgerest/jndi.properties"/>
<param name="a3conf" value="bridgerest/a3servers.xml"/>
</antcall>
<mkdir dir="${test.dir}"/>
<copy file="bridgerest/config.properties" tofile="${test.dir}/config.properties" overwrite="true"/>
<replace file="${test.dir}/config.properties" token="@BUNDLE_DIR@" value="${bundle.dir}" />
<replace file="${test.dir}/config.properties" token="\" value="/" />
<replace file="${test.dir}/config.properties" token="@BACK_SLACH@" value="\" />
</target>
<target name="tests.bridge.rest"
description=" --> launch all REST tests">
<antcall target="bridge.rest.simpleText" />
<antcall target="bridge.rest.simpleBytes" />
<antcall target="bridge.rest.simpleMap" />
<antcall target="bridge.rest.test1" />
<antcall target="bridge.rest.test2" />
<antcall target="bridge.rest.test3" />
<antcall target="bridge.rest.test4" />
<antcall target="bridge.rest.test5" />
<antcall target="bridge.rest.test6" />
</target>
<target name="bridge.rest.simpleText" depends="init.bridgerest"
description=" --> Test simple send/receive a TextMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleText"/>
<param name="className" value="joram.bridgerest.BridgeRestSimpleTextMessage"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="jndi.properties"/>
<param name="a3conf" value="a3servers.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</target>
<target name="init.bridgerest" depends="init.a3props,compile"
description=" --> init Bridge REST">
<antcall target="init.test" inheritAll="true">
<param name="jndiconf" value="bridgerest/jndi.properties" />
<param name="a3conf" value="bridgerest/a3servers.xml" />
</antcall>
<mkdir dir="${test.dir}" />
<delete file="${test.dir}/config.properties"/>
<copy file="bridgerest/config0.properties" tofile="${test.dir}/config0.properties" overwrite="true" />
<replace file="${test.dir}/config0.properties" token="@BUNDLE_DIR@" value="${bundle.dir}" />
<replace file="${test.dir}/config0.properties" token="\" value="/" />
<replace file="${test.dir}/config0.properties" token="@BACK_SLACH@"
value="\" />
<copy file="bridgerest/config1.properties" tofile="${test.dir}/config1.properties" overwrite="true" />
<replace file="${test.dir}/config1.properties" token="@BUNDLE_DIR@" value="${bundle.dir}" />
<replace file="${test.dir}/config1.properties" token="\" value="/" />
<replace file="${test.dir}/config1.properties" token="@BACK_SLACH@"
value="\" />
</target>
<target name="bridge.rest.simpleBytes" depends="init.bridgerest"
description=" --> Test simple send/receive a BytesMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleBytes"/>
<param name="className" value="joram.bridgerest.BridgeRestSimpleBytesMessage"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="jndi.properties"/>
<param name="a3conf" value="a3servers.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</target>
<target name="bridge.rest.simpleMap" depends="init.bridgerest"
description=" --> Test simple send/receive a MapMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleMap"/>
<param name="className" value="joram.bridgerest.BridgeRestSimpleMapMessage"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="jndi.properties"/>
<param name="a3conf" value="a3servers.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</target>
<target name="bridge.rest.test1" depends="init.bridgerest"
description=" --> Tests behavior of the acquisition queue during foreign server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test1"/>
<param name="className" value="joram.bridgerest.BridgeRestTest1"/>
<param name="SCAdminClass" value="framework.SCAdminOSGi"/>
<param name="isOSGi" value="true"/>
<param name="jndiconf" value="jndi.properties"/>
<param name="a3conf" value="a3servers.xml"/>
<param name="jvmargs" value=""/>
</antcall>
</target>
<target name="bridge.rest.simpleText" depends="init.bridgerest"
description=" --> Test simple send/receive a TextMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleText" />
<param name="className" value="joram.bridgerest.BridgeRestSimpleTextMessage" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.simpleBytes" depends="init.bridgerest"
description=" --> Test simple send/receive a BytesMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleBytes" />
<param name="className" value="joram.bridgerest.BridgeRestSimpleBytesMessage" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.simpleMap" depends="init.bridgerest"
description=" --> Test simple send/receive a MapMessage">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.simpleMap" />
<param name="className" value="joram.bridgerest.BridgeRestSimpleMapMessage" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test1" depends="init.bridgerest"
description=" --> Tests behavior of the acquisition queue during foreign server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test1" />
<param name="className" value="joram.bridgerest.BridgeRestTest1" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test2" depends="init.bridgerest"
description=" --> Tests behavior of the acquisition queue during bridge server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test2" />
<param name="className" value="joram.bridgerest.BridgeRestTest2" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test3" depends="init.bridgerest"
description=" --> Tests behavior of the distribution queue during foreign server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test3" />
<param name="className" value="joram.bridgerest.BridgeRestTest3" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test4" depends="init.bridgerest"
description=" --> Tests behavior of the distribution queue during bridge server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test4" />
<param name="className" value="joram.bridgerest.BridgeRestTest4" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test5" depends="init.bridgerest"
description=" --> Tests behavior of acquisition/distribution queue during foreign server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test5" />
<param name="className" value="joram.bridgerest.BridgeRestTest5" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<target name="bridge.rest.test6" depends="init.bridgerest"
description=" --> Tests behavior of acquisition/distribution queue during bridge server failures">
<antcall target="test.start" inheritAll="true">
<param name="testid" value="bridge.rest.test6" />
<param name="className" value="joram.bridgerest.BridgeRestTest6" />
<param name="SCAdminClass" value="framework.SCAdminOSGi" />
<param name="isOSGi" value="true" />
<param name="jndiconf" value="jndi.properties" />
<param name="a3conf" value="a3servers.xml" />
<param name="jvmargs" value="" />
</antcall>
</target>
<!-- end bridgerest test -->
<!-- start bridgeamqp test -->
<target name="tests.bridge.amqp" description=" --> launch all amqp bridge tests">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment