OpenSearch/shield/dev-tools/integration-tests.xml

43 lines
1.7 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<project name="commercial-integration-tests">
<import file="${elasticsearch.integ.antfile.default}"/>
<!-- redefined to work with auth -->
<macrodef name="waitfor-elasticsearch">
<attribute name="port"/>
<attribute name="timeoutproperty"/>
<sequential>
<echo>Waiting for elasticsearch to become available on port @{port}...</echo>
<waitfor maxwait="30" maxwaitunit="second"
checkevery="500" checkeveryunit="millisecond"
timeoutproperty="@{timeoutproperty}">
<socket server="127.0.0.1" port="@{port}"/>
</waitfor>
</sequential>
</macrodef>
FUCK YOU GIT Squashed commit of the following: commit 9e1eee30eca33e96fc0010300331207ae609a825 Author: Robert Muir <rmuir@apache.org> Date: Thu Aug 6 06:11:15 2015 -0400 fix shield integration tests with master changes TODO: this all needs cleanup commit elastic/x-pack@098f8994a635e0d6d6b624a4055aa597ff8ff071 Author: debadair <deb.adair@elasticsearch.com> Date: Wed Aug 5 13:09:17 2015 -0700 Added missing description and edited the table. commit elastic/x-pack@f1782adb402ac5b61e2a69e623a321cdf953330e Author: Martijn van Groningen <martijn.v.groningen@gmail.com> Date: Wed Jul 15 14:08:27 2015 +0200 There is no need to check if the primary shards of the history indices are started, since we don't load watch records any more during the Watcher startup process. commit elastic/x-pack@689fdcd00b88a980dcd20ecc492fc2e1c3c7a86c Author: Martijn van Groningen <martijn.v.groningen@gmail.com> Date: Fri Jul 17 22:44:52 2015 +0200 Use custom metadata to remember that Watcher stopped via an explicit stop api call. Also expose WatcherMetaData in stats api commit elastic/x-pack@abaa42d608156eee1133107a6d9b81d7625f1682 Author: Tanguy Leroux <tlrx.dev@gmail.com> Date: Wed Aug 5 11:31:42 2015 +0200 Marvel: Add Cluster Stats timeout commit elastic/x-pack@1be4701a4b7e162eadd4c03c371a7a1a334d69d9 Author: uboness <uboness@gmail.com> Date: Wed Aug 5 00:20:05 2015 +0200 [watcher] Remove default timezone usage Closes elastic/elasticsearch#387 commit elastic/x-pack@88f588d97b35c721962656fd42549fb2babb5af9 Merge: elastic/x-pack@c49a303 elastic/x-pack@bb12e9a Author: Robert Muir <rcmuir@gmail.com> Date: Tue Aug 4 17:11:52 2015 -0400 Merge pull request elastic/elasticsearch#386 from rmuir/shield_integ_update adapt shield to integration tests changes commit elastic/x-pack@bb12e9aa8dd45ad4023fa61e897a8ddb20c8bc5e Author: Robert Muir <rmuir@apache.org> Date: Tue Aug 4 16:17:23 2015 -0400 adapt shield to integration tests changes we don't use ports 9200/9300 by default for integration tests anymore. they easily conflict with the user running/debugging es on their machine. Original commit: elastic/x-pack-elasticsearch@17a474df2c62034a7c9780b7aa8365668db6ba4b
2015-08-06 06:13:16 -04:00
<target name="start-external-cluster-with-plugin" depends="setup-workspace">
<local name="home"/>
<property name="home" location="${integ.scratch}/elasticsearch-${elasticsearch.version}"/>
<install-plugin name="license" file="${integ.deps}/license-${project.version}.zip" />
<install-plugin name="${project.artifactId}" file="${project.build.directory}/releases/${project.artifactId}-${project.version}.zip"/>
<run-script script="${home}/bin/shield/esusers">
<nested>
<arg value="useradd"/>
<arg value="test_user"/>
<arg value="-p"/>
<arg value="changeme"/>
<arg value="-r"/>
<arg value="admin"/>
</nested>
</run-script>
<startup-elasticsearch/>
<echo>Checking we can connect with basic auth on port ${integ.http.port}...</echo>
<local name="temp.file"/>
<tempfile property="temp.file" destdir="${java.io.tmpdir}"/>
<get src="http://127.0.0.1:${integ.http.port}" dest="${temp.file}"
username="test_user" password="changeme" verbose="true" retries="10"/>
</target>
</project>