Fixed the query to make sure results contain the expected document. (#134154)

This commit is contained in:
John Dorlus 2022-06-13 10:02:23 -04:00 committed by GitHub
parent 90e46180fe
commit 68e569bd7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.console.clearTextArea();
});
it('it should be able to access remote data', async () => {
await PageObjects.console.enterRequest('\nGET ftr-remote:logstash-*/_search');
await PageObjects.console.enterRequest(
'\nGET ftr-remote:logstash-*/_search\n {\n "query": {\n "bool": {\n "must": [\n {"match": {"extension" : "jpg"'
);
await PageObjects.console.clickPlay();
await retry.try(async () => {
const actualResponse = await PageObjects.console.getResponse();