mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [Adjust CCS Remote Clusters Test To Find Index Based On Index Name (#145786)](https://github.com/elastic/kibana/pull/145786) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"John Dorlus","email":"jsdorlus@elastic.co"},"sourceCommit":{"committedDate":"2022-11-22T16:55:14Z","message":"Adjust CCS Remote Clusters Test To Find Index Based On Index Name (#145786)","sha":"8e1618ac905d33de2963c23a2296204f8e60d44a","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","test_ui_functional","test_xpack_functional","release_note:skip","Feature:Functional Testing","backport:prev-minor","v8.7.0"],"number":145786,"url":"https://github.com/elastic/kibana/pull/145786","mergeCommit":{"message":"Adjust CCS Remote Clusters Test To Find Index Based On Index Name (#145786)","sha":"8e1618ac905d33de2963c23a2296204f8e60d44a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145786","number":145786,"mergeCommit":{"message":"Adjust CCS Remote Clusters Test To Find Index Based On Index Name (#145786)","sha":"8e1618ac905d33de2963c23a2296204f8e60d44a"}}]}] BACKPORT--> Co-authored-by: John Dorlus <jsdorlus@elastic.co>
This commit is contained in:
parent
367192b3d7
commit
cc1a155cd6
1 changed files with 11 additions and 10 deletions
|
@ -43,12 +43,12 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
return await testSubjects.isDisplayed('remoteClusterListTable');
|
||||
});
|
||||
const remotes = await pageObjects.remoteClusters.getRemoteClustersList();
|
||||
expect(remotes.length).to.eql(1);
|
||||
expect(remotes[0].remoteName).to.eql('ftr-remote');
|
||||
expect(remotes[0].remoteAddress).to.contain('localhost');
|
||||
expect(remotes[0].remoteStatus).to.eql('Connected');
|
||||
expect(remotes[0].remoteConnectionCount).to.eql('1');
|
||||
expect(remotes[0].remoteMode).to.eql('default');
|
||||
const filteredRemotes = remotes.filter((remote) => remote.remoteName === 'ftr-remote');
|
||||
expect(filteredRemotes.length).to.eql(1);
|
||||
expect(filteredRemotes[0].remoteAddress).to.contain('localhost');
|
||||
expect(filteredRemotes[0].remoteStatus).to.eql('Connected');
|
||||
expect(filteredRemotes[0].remoteConnectionCount).to.eql('1');
|
||||
expect(filteredRemotes[0].remoteMode).to.eql('default');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -93,11 +93,12 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
await pageObjects.common.navigateToApp('indexManagement');
|
||||
await retry.waitForWithTimeout('indice table to be visible', 15000, async () => {
|
||||
return await testSubjects.isDisplayed('indicesList');
|
||||
const indicesList = await pageObjects.indexManagement.getIndexList();
|
||||
const followerIndex = indicesList.filter(
|
||||
(follower) => follower.indexName === followerName
|
||||
);
|
||||
expect(followerIndex[0].indexDocuments).to.eql('1');
|
||||
});
|
||||
|
||||
const indicesList = await pageObjects.indexManagement.getIndexList();
|
||||
const followerIndex = indicesList[0];
|
||||
expect(followerIndex.indexDocuments).to.eql('1');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue