[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@197ec3869b
This commit is contained in:
Chris Earle 2017-10-06 10:11:23 -06:00 committed by GitHub
parent dc1ed43ac1
commit f5561006f5
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "}}}");