mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -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
5f963e13ee
commit
8f8b91e8ce
1 changed files with 4 additions and 1 deletions
|
@ -303,7 +303,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