mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This PR fixes the jobs_summary API tests for the `7.latest ES 8.1 forward compatibility` scenario by making it only check expected fields in the response body and ignore additional fields that are coming from the newer ES version.
(cherry picked from commit 13e7c8a1e2
)
This commit is contained in:
parent
e0a7a1bb9e
commit
6a228f3aa8
1 changed files with 4 additions and 1 deletions
|
@ -304,7 +304,10 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
if (expectedJob.fullJob) {
|
||||
expect(actualJob).to.have.property('fullJob');
|
||||
expect(actualJob.fullJob).to.have.property('analysis_config');
|
||||
expect(actualJob.fullJob.analysis_config).to.eql(expectedJob.fullJob.analysis_config);
|
||||
// only validate the expected parts of the analysis_config, ignore additional fields
|
||||
for (const [key, value] of Object.entries(expectedJob.fullJob.analysis_config)) {
|
||||
expect(actualJob.fullJob.analysis_config).to.have.property(key).eql(value);
|
||||
}
|
||||
} else {
|
||||
expect(actualJob).not.to.have.property('fullJob');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue