Skip to content

Commit

Permalink
[8.x] Fixes Failing test: Jest Integration Tests.x-pack/plugins/task_…
Browse files Browse the repository at this point in the history
…manager/server/integration_tests - unrecognized task types should be no workload aggregator errors when there are removed task types (#196179) (#196217)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Fixes Failing test: Jest Integration
Tests.x-pack/plugins/task_manager/server/integration_tests -
unrecognized task types should be no workload aggregator errors when
there are removed task types
(#196179)](#196179)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-14T22:35:37Z","message":"Fixes
Failing test: Jest Integration
Tests.x-pack/plugins/task_manager/server/integration_tests -
unrecognized task types should be no workload aggregator errors when
there are removed task types
(#196179)","sha":"d70583faddd3b5f3f3e8d59888a8bebdb262a4d2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.16.0"],"title":"Fixes
Failing test: Jest Integration
Tests.x-pack/plugins/task_manager/server/integration_tests -
unrecognized task types should be no workload aggregator errors when
there are removed task
types","number":196179,"url":"https://github.com/elastic/kibana/pull/196179","mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/plugins/task_manager/server/integration_tests -
unrecognized task types should be no workload aggregator errors when
there are removed task types
(#196179)","sha":"d70583faddd3b5f3f3e8d59888a8bebdb262a4d2"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196179","number":196179,"mergeCommit":{"message":"Fixes
Failing test: Jest Integration
Tests.x-pack/plugins/task_manager/server/integration_tests -
unrecognized task types should be no workload aggregator errors when
there are removed task types
(#196179)","sha":"d70583faddd3b5f3f3e8d59888a8bebdb262a4d2"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ying Mao <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored Oct 16, 2024
1 parent 086d02d commit cb1e03a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ describe('unrecognized task types', () => {
if (errorLogCalls) {
// should be no workload aggregator errors
for (const elog of errorLogCalls) {
expect(elog).not.toMatch(/^\[WorkloadAggregator\]: Error: Unsupported task type/i);
if (typeof elog === 'string') {
expect(elog).not.toMatch(/^\[WorkloadAggregator\]: Error: Unsupported task type/i);
}
}
}
});
Expand Down

0 comments on commit cb1e03a

Please sign in to comment.