Tests: Ensure that watcher is started in HipchatServiceTests
One of those tests requires watcher to be started, so a proper assertBusy() block has been added to this tests. relates elastic/x-pack-elasticsearch#3324 Original commit: elastic/x-pack-elasticsearch@324830316f
This commit is contained in:
parent
b81c90d6fc
commit
f518501df4
|
@ -15,6 +15,8 @@ import org.elasticsearch.test.junit.annotations.TestLogging;
|
|||
import org.elasticsearch.xpack.XPackPlugin;
|
||||
import org.elasticsearch.xpack.XPackSettings;
|
||||
import org.elasticsearch.xpack.XPackSingleNodeTestCase;
|
||||
import org.elasticsearch.xpack.watcher.WatcherService;
|
||||
import org.elasticsearch.xpack.watcher.WatcherState;
|
||||
import org.elasticsearch.xpack.watcher.actions.hipchat.HipChatAction;
|
||||
import org.elasticsearch.xpack.watcher.client.WatcherClient;
|
||||
import org.elasticsearch.xpack.watcher.condition.AlwaysCondition;
|
||||
|
@ -127,6 +129,8 @@ public class HipChatServiceTests extends XPackSingleNodeTestCase {
|
|||
}
|
||||
|
||||
public void testWatchWithHipChatAction() throws Exception {
|
||||
assertBusy(() -> assertThat(getInstanceFromNode(WatcherService.class).state(), is(WatcherState.STARTED)));
|
||||
|
||||
HipChatAccount.Profile profile = randomFrom(HipChatAccount.Profile.values());
|
||||
HipChatMessage.Color color = randomFrom(HipChatMessage.Color.values());
|
||||
String account;
|
||||
|
|
Loading…
Reference in New Issue