Skip to content

Commit

Permalink
LRQA-51899 Check if both Elasticsearch6 and the trial license were st…
Browse files Browse the repository at this point in the history
…arted successfully
  • Loading branch information
timpak authored and brianchandotcom committed Sep 9, 2019
1 parent d19d2d5 commit a89e6c4
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions build-test-elasticsearch6.xml
Expand Up @@ -329,16 +329,6 @@ ${line.separator}CATALINA_OPTS="${CATALINA_OPTS} -Djavax.net.ssl.trustStore=${el
</exec>

<echo>${curl.output}</echo>

<if>
<contains string="${curl.output}" substring="You Know, for Search" />
<then>
<echo>Elasticsearch started with X-Pack Security.</echo>
</then>
<else>
<fail>Elasticsearch failed to start with X-Pack Security.</fail>
</else>
</if>
</sequential>
</macrodef>

Expand All @@ -353,6 +343,19 @@ ${line.separator}CATALINA_OPTS="${CATALINA_OPTS} -Djavax.net.ssl.trustStore=${el
</exec>

<echo>${curl.output.trial}</echo>

<if>
<and>
<contains string="${curl.output}" substring="You Know, for Search" />
<contains string="${curl.output.trial}" substring="&quot;trial_was_started&quot; : true" />
</and>
<then>
<echo>Elasticsearch started with X-Pack Security.</echo>
</then>
<else>
<fail>Elasticsearch failed to start with X-Pack Security.</fail>
</else>
</if>
</sequential>
</macrodef>

Expand Down

0 comments on commit a89e6c4

Please sign in to comment.