Skip to content

Commit

Permalink
Some fixes for update by query tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Oct 21, 2024
1 parent e1041ee commit 27476b2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion x-pack/test/task_manager_claimer_update_by_query/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
apps: integrationConfig.get('apps'),
screenshots: integrationConfig.get('screenshots'),
junit: {
reportName: 'Task Manager MGet Claimer Functional Tests',
reportName: 'Task Manager Update By Query Claimer Functional Tests',
},
kbnTestServer: {
...integrationConfig.get('kbnTestServer'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"type": "plugin",
"id": "@kbn/sample-task-plugin-mget",
"id": "@kbn/sample-task-plugin-update-by-query",
"owner": "@elastic/response-ops",
"plugin": {
"id": "sampleTaskPluginMget",
"id": "sampleTaskPluginUpdateByQuery",
"server": true,
"browser": false,
"requiredPlugins": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "kibana",
"templateVersion": "1.0.0"
},
"main": "target/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget",
"main": "target/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_update_by_query",
"scripts": {
"kbn": "node ../../../../../scripts/kbn.js",
"build": "rm -rf './target' && ../../../../../node_modules/.bin/tsc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function ({ getService }: FtrProviderContext) {
const health = await getHealth();
expect(health.status).to.eql('OK');
expect(health.stats.configuration.value).to.eql({
poll_interval: 500,
poll_interval: 3000,
monitored_aggregated_stats_refresh_rate: monitoredAggregatedStatsRefreshRate,
monitored_stats_running_average_window: 50,
monitored_task_execution_thresholds: {
Expand All @@ -147,7 +147,7 @@ export default function ({ getService }: FtrProviderContext) {
as_workers: 10,
as_cost: 20,
},
claim_strategy: 'mget',
claim_strategy: 'update_by_query',
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
describe('task_manager with mget task claimer', function taskManagerSuite() {
describe('task_manager with update by query task claimer', function taskManagerSuite() {
loadTestFile(require.resolve('./task_priority'));
loadTestFile(require.resolve('./background_task_utilization_route'));
loadTestFile(require.resolve('./metrics_route'));
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6247,7 +6247,7 @@
version "0.0.0"
uid ""

"@kbn/sample-task-plugin-mget@link:x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget":
"@kbn/sample-task-plugin-update-by-query@link:x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget":
version "0.0.0"
uid ""

Expand Down

0 comments on commit 27476b2

Please sign in to comment.