From 45e84cde6ea5aabf1073fffba89e90f8bf7d0181 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Mon, 9 Jan 2017 15:37:58 -0700 Subject: [PATCH] Add PreventFailingBuildIT in qa/smoke-test-watcher The watcher tests were recently marked with `@Network`, which prevents them from normally being run. Unfortunately, this means no tests run by default and the entire suite fails. Original commit: elastic/x-pack-elasticsearch@40cfc75b26929f7f0cba3832045f10fc7e293f63 --- .../smoketest/PreventFailingBuildIT.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 qa/smoke-test-watcher/src/test/java/org/elasticsearch/smoketest/PreventFailingBuildIT.java diff --git a/qa/smoke-test-watcher/src/test/java/org/elasticsearch/smoketest/PreventFailingBuildIT.java b/qa/smoke-test-watcher/src/test/java/org/elasticsearch/smoketest/PreventFailingBuildIT.java new file mode 100644 index 00000000000..e41b5a7dad4 --- /dev/null +++ b/qa/smoke-test-watcher/src/test/java/org/elasticsearch/smoketest/PreventFailingBuildIT.java @@ -0,0 +1,19 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License; + * you may not use this file except in compliance with the Elastic License. + */ +package org.elasticsearch.smoketest; + +import org.elasticsearch.test.ESIntegTestCase; + +public class PreventFailingBuildIT extends ESIntegTestCase { + + public void testSoThatTestsDoNotFail() { + // Noop + + // This is required because SmokeTestWatcherClientYamlTestSuiteIT + // requires network access, so if network tests are not enable no + // tests will be run in the entire project and all tests will fail. + } +}