mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[data views] Reenable MKI test - change data import tool to be serverless compatible (#181349)
## Summary Change data import / export method so test works in MKI environment. Closes https://github.com/elastic/kibana/issues/171479 and https://github.com/elastic/kibana/issues/180568 Verified by running functional test runner run locally against MKI environment.
This commit is contained in:
parent
02a22fd01a
commit
1bcec40bbc
9 changed files with 11 additions and 26 deletions
|
@ -293,7 +293,7 @@ export const IndexPatternTable = ({
|
||||||
fill={true}
|
fill={true}
|
||||||
iconType="plusInCircle"
|
iconType="plusInCircle"
|
||||||
onClick={() => setShowCreateDialog(true)}
|
onClick={() => setShowCreateDialog(true)}
|
||||||
data-test-subj="createIndexPatternButton"
|
data-test-subj="createDataViewButton"
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id="indexPatternManagement.dataViewTable.createBtn"
|
id="indexPatternManagement.dataViewTable.createBtn"
|
||||||
|
|
|
@ -621,18 +621,7 @@ export class SettingsPageObject extends FtrService {
|
||||||
|
|
||||||
async clickAddNewIndexPatternButton() {
|
async clickAddNewIndexPatternButton() {
|
||||||
await this.common.scrollKibanaBodyTop();
|
await this.common.scrollKibanaBodyTop();
|
||||||
|
await this.testSubjects.click('createDataViewButton');
|
||||||
// if showing no data view prompt
|
|
||||||
const noDataView = await this.testSubjects.exists('createDataViewButton');
|
|
||||||
if (noDataView) {
|
|
||||||
await this.testSubjects.click('createDataViewButton');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const tableView = await this.testSubjects.exists('createIndexPatternButton');
|
|
||||||
if (tableView) {
|
|
||||||
await this.testSubjects.click('createIndexPatternButton');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async selectRollupIndexPatternType() {
|
async selectRollupIndexPatternType() {
|
||||||
|
|
|
@ -17,7 +17,6 @@ export default function ({ getService }: FtrProviderContext) {
|
||||||
const svlCommonApi = getService('svlCommonApi');
|
const svlCommonApi = getService('svlCommonApi');
|
||||||
|
|
||||||
describe('conflicts', function () {
|
describe('conflicts', function () {
|
||||||
this.tags('failsOnMKI');
|
|
||||||
before(() =>
|
before(() =>
|
||||||
esArchiver.load('test/api_integration/fixtures/es_archiver/index_patterns/conflicts')
|
esArchiver.load('test/api_integration/fixtures/es_archiver/index_patterns/conflicts')
|
||||||
);
|
);
|
||||||
|
@ -31,7 +30,7 @@ export default function ({ getService }: FtrProviderContext) {
|
||||||
.set(ELASTIC_HTTP_VERSION_HEADER, INITIAL_REST_VERSION_INTERNAL)
|
.set(ELASTIC_HTTP_VERSION_HEADER, INITIAL_REST_VERSION_INTERNAL)
|
||||||
// TODO: API requests in Serverless require internal request headers
|
// TODO: API requests in Serverless require internal request headers
|
||||||
.set(svlCommonApi.getInternalRequestHeader())
|
.set(svlCommonApi.getInternalRequestHeader())
|
||||||
.query({ pattern: 'logs-*' })
|
.query({ pattern: 'logs-2017.01.*' })
|
||||||
.expect(200)
|
.expect(200)
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
expect(resp.body).to.eql({
|
expect(resp.body).to.eql({
|
||||||
|
|
Binary file not shown.
|
@ -19,8 +19,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
const PageObjects = getPageObjects(['settings', 'common', 'header']);
|
const PageObjects = getPageObjects(['settings', 'common', 'header']);
|
||||||
|
|
||||||
describe('creating and deleting default data view', function describeIndexTests() {
|
describe('creating and deleting default data view', function describeIndexTests() {
|
||||||
// failsOnMKI, see https://github.com/elastic/kibana/issues/171479
|
|
||||||
this.tags(['failsOnMKI']);
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
// TODO: emptyKibanaIndex fails in Serverless with
|
// TODO: emptyKibanaIndex fails in Serverless with
|
||||||
// "index_not_found_exception: no such index [.kibana_ingest]",
|
// "index_not_found_exception: no such index [.kibana_ingest]",
|
||||||
|
@ -31,7 +29,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
await esArchiver.loadIfNeeded(
|
await esArchiver.loadIfNeeded(
|
||||||
'x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern'
|
'x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern'
|
||||||
);
|
);
|
||||||
|
await kibanaServer.importExport.load(
|
||||||
|
'test/functional/fixtures/kbn_archiver/kibana_sample_data_flights_index_pattern'
|
||||||
|
);
|
||||||
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
|
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
|
||||||
|
|
||||||
await kibanaServer.uiSettings.replace({});
|
await kibanaServer.uiSettings.replace({});
|
||||||
// TODO: Navigation to Data View Management is different in Serverless
|
// TODO: Navigation to Data View Management is different in Serverless
|
||||||
await PageObjects.common.navigateToApp('management');
|
await PageObjects.common.navigateToApp('management');
|
||||||
|
@ -41,10 +43,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
after(async function () {
|
after(async function () {
|
||||||
// TODO: Loading this from `es_archives` in `test_serverless`
|
// TODO: Loading this from `es_archives` in `test_serverless`
|
||||||
// instead since minor modifications were required
|
// instead since minor modifications were required
|
||||||
|
|
||||||
await esArchiver.unload(
|
await esArchiver.unload(
|
||||||
'x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern'
|
'x-pack/test_serverless/functional/es_archives/kibana_sample_data_flights_index_pattern'
|
||||||
);
|
);
|
||||||
|
await kibanaServer.importExport.unload(
|
||||||
|
'test/functional/fixtures/kbn_archiver/kibana_sample_data_flights_index_pattern'
|
||||||
|
);
|
||||||
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
|
await esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
const testSubjects = getService('testSubjects');
|
const testSubjects = getService('testSubjects');
|
||||||
|
|
||||||
describe('edit field', function () {
|
describe('edit field', function () {
|
||||||
// failsOnMKI, see https://github.com/elastic/kibana/issues/180568
|
|
||||||
this.tags(['failsOnMKI']);
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
|
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,8 +16,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
const es = getService('es');
|
const es = getService('es');
|
||||||
|
|
||||||
describe('index pattern filter', function describeIndexTests() {
|
describe('index pattern filter', function describeIndexTests() {
|
||||||
// https://github.com/elastic/kibana/issues/178733
|
|
||||||
this.tags('failsOnMKI');
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
await kibanaServer.savedObjects.cleanStandardList();
|
await kibanaServer.savedObjects.cleanStandardList();
|
||||||
await kibanaServer.uiSettings.replace({});
|
await kibanaServer.uiSettings.replace({});
|
||||||
|
|
|
@ -17,8 +17,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||||
const testSubjects = getService('testSubjects');
|
const testSubjects = getService('testSubjects');
|
||||||
|
|
||||||
describe('runtime fields', function () {
|
describe('runtime fields', function () {
|
||||||
// Bug: https://github.com/elastic/kibana/issues/178939
|
|
||||||
this.tags('failsOnMKI');
|
|
||||||
before(async function () {
|
before(async function () {
|
||||||
await browser.setWindowSize(1200, 800);
|
await browser.setWindowSize(1200, 800);
|
||||||
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
|
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/discover');
|
||||||
|
|
|
@ -14,8 +14,6 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
|
||||||
const svlCommonPage = getPageObject('svlCommonPage');
|
const svlCommonPage = getPageObject('svlCommonPage');
|
||||||
|
|
||||||
describe('default dataView', function () {
|
describe('default dataView', function () {
|
||||||
// Error: expected testSubject(kbnOverviewElasticsearchGettingStarted) to exist
|
|
||||||
this.tags(['failsOnMKI']);
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
await svlCommonPage.login();
|
await svlCommonPage.login();
|
||||||
await svlSearchNavigation.navigateToLandingPage();
|
await svlSearchNavigation.navigateToLandingPage();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue