mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[5.x] Fix functional test runner merge (#11184)
* use correct index_already_exists error code for 5.x * [status api] assume 5.x style responses
This commit is contained in:
parent
335a3d77b5
commit
6feb7d64c9
3 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ export const createStubClient = (existingIndices = []) => ({
|
|||
}),
|
||||
create: sinon.spy(async ({ index }) => {
|
||||
if (existingIndices.includes(index)) {
|
||||
throw createEsClientError('resource_already_exists_exception');
|
||||
throw createEsClientError('index_already_exists_exception');
|
||||
} else {
|
||||
existingIndices.push(index);
|
||||
return { ok: true };
|
||||
|
|
|
@ -25,7 +25,7 @@ export function createCreateIndexStream({ client, stats, skipExisting }) {
|
|||
});
|
||||
stats.createdIndex(index, { settings });
|
||||
} catch (err) {
|
||||
if (get(err, 'body.error.type') !== 'resource_already_exists_exception' || attemptNumber >= 3) {
|
||||
if (get(err, 'body.error.type') !== 'index_already_exists_exception' || attemptNumber >= 3) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ export class KibanaServerVersion {
|
|||
|
||||
get = once(async () => {
|
||||
const status = await this.kibanaStatus.get();
|
||||
return status.version.number;
|
||||
return status.version;
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue