Skip to content

Commit

Permalink
adapt integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed May 1, 2023
1 parent 9163bd4 commit c91ce1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ describe('ZDT upgrades - basic document migration', () => {
);

expect(mappingMeta.docVersions).toEqual({
sample_a: 2,
sample_b: 3,
sample_a: '10.2.0',
sample_b: '10.3.0',
});

const { saved_objects: sampleADocs } = await savedObjectsRepository.find({ type: 'sample_a' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ describe('ZDT upgrades - running on a fresh cluster', () => {

expect(mappingMeta).toEqual({
docVersions: {
foo: 2,
bar: 1,
foo: '10.2.0',
bar: '10.1.0',
},
mappingVersions: {
foo: 2,
bar: 1,
foo: '10.2.0',
bar: '10.1.0',
},
migrationState: expect.objectContaining({
convertingDocuments: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ describe('ZDT upgrades - mapping model version conflict', () => {
expect(aliases).toEqual(['.kibana', '.kibana_8.8.0']);

expect(mappingMeta.mappingVersions).toEqual({
foo: 2,
bar: 2,
foo: '10.2.0',
bar: '10.2.0',
});

const records = await parseLogFile(logFilePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ describe('ZDT upgrades - basic mapping update', () => {
);

expect(mappingMeta.mappingVersions).toEqual({
foo: 3,
bar: 2,
foo: '10.3.0',
bar: '10.2.0',
});

const records = await parseLogFile(logFilePath);
Expand Down

0 comments on commit c91ce1e

Please sign in to comment.