From f5561006f5e86c2f17f832cc579152ef3ff985ed Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Fri, 6 Oct 2017 10:11:23 -0600 Subject: [PATCH] [Monitoring] Fix HttpExporterIT.testHostChangeReChecksTemplate (elastic/x-pack-elasticsearch#2703) This changes the test to use the correct version (the Watch version). Original commit: elastic/x-pack-elasticsearch@197ec3869be23bfd52a6dd09fcc644d530e86c55 --- .../xpack/monitoring/exporter/http/HttpExporterIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporterIT.java b/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporterIT.java index 4abdba6d886..9b7671c3acc 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporterIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExporterIT.java @@ -777,7 +777,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase { if (randomBoolean()) { enqueueResponse(webServer, 404, "watch [" + watchId + "] does not exist"); } else if (randomBoolean()) { - final int version = LAST_UPDATED_VERSION - randomIntBetween(1, 1000000); + final int version = ClusterAlertsUtil.LAST_UPDATED_VERSION - randomIntBetween(1, 1000000); // it DOES exist, but it's an older version enqueueResponse(webServer, 200, "{\"metadata\":{\"xpack\":{\"version_created\":" + version + "}}}");