-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the console CCS test. (#133545)
* Added the console CCS test. * Forgot some awaits.
- Loading branch information
John Dorlus
authored
Jun 3, 2022
1 parent
3a6cc6e
commit 1d348b2
Showing
3 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({ getService, getPageObjects }: FtrProviderContext) { | ||
const retry = getService('retry'); | ||
const log = getService('log'); | ||
const PageObjects = getPageObjects(['common', 'console']); | ||
const remoteEsArchiver = getService('remoteEsArchiver' as 'esArchiver'); | ||
|
||
describe('Console App CCS', function describeIndexTests() { | ||
this.tags('includeFirefox'); | ||
before(async () => { | ||
await remoteEsArchiver.loadIfNeeded( | ||
'test/functional/fixtures/es_archiver/logstash_functional' | ||
); | ||
log.debug('navigateTo console'); | ||
await PageObjects.common.navigateToApp('console'); | ||
await retry.try(async () => { | ||
await PageObjects.console.collapseHelp(); | ||
}); | ||
}); | ||
|
||
after(async () => { | ||
await remoteEsArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional'); | ||
}); | ||
|
||
describe('Perform CCS Search in Console', () => { | ||
before(async () => { | ||
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.clickPlay(); | ||
await retry.try(async () => { | ||
const actualResponse = await PageObjects.console.getResponse(); | ||
expect(actualResponse).to.contain('"extension": "jpg",'); | ||
}); | ||
}); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters