-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Failing test: APM API Integration tests (cloud).x-pack/solutions/observability/test/apm_api_integration/tests/index·ts - APM API tests fleet/migration_check.spec.ts cloud no archive Fleet migration check - cloud has_cloud_agent_policy with Cloud agent policy "before all" hook for "should be true when cloud agent policy exists" #229299
Copy link
Copy link
Closed
Closed
Copy link
Labels
Team:FleetTeam label for Observability Data Collection Fleet teamTeam label for Observability Data Collection Fleet teamTeam:obs-ux-infra_servicesObservability Infrastructure & Services User Experience TeamObservability Infrastructure & Services User Experience Teamfailed-testA test failure on a tracked branch, potentially flaky-testA test failure on a tracked branch, potentially flaky-test
Description
A test failed on a tracked branch
BetterTestError: Unhandled BetterTestError:
Status: "400"
Path: "POST /api/fleet/agent_policies?sys_monitoring=true"
Body: {"statusCode":400,"error":"Bad Request","message":"Error while compiling agent template: Parse error on line 26:\n...}include_xml: true{{/if}}{{#if proces\n---------------------^\nExpecting 'EOF', got 'OPEN_ENDBLOCK'"}
at bettertest.ts:51:13
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at createAgentPolicy (helpers.ts:23:31)
at Context.<anonymous> (migration_check.spec.ts:79:11)
at Object.apply (wrap_function.js:74:16) {
res: <ref *1> Response {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
res: { method: null, url: '', complete: true, aborted: false },
request: Test {
_events: [Object: null prototype],
_eventsCount: 1,
_maxListeners: undefined,
_enableHttp2: false,
_agent: false,
_formData: null,
method: 'POST',
url: 'http://elastic:changeme@localhost:5620/api/fleet/agent_policies?sys_monitoring=true',
_header: [Object],
header: [Object],
writable: true,
_redirects: 0,
_maxRedirects: 0,
cookies: '',
qs: {},
_query: [],
qsRaw: [],
_redirectList: [],
_streamRequest: false,
_lookup: undefined,
_buffer: true,
app: 'http://elastic:changeme@localhost:5620',
_asserts: [],
_data: [Object],
req: [ClientRequest],
protocol: 'http:',
host: 'localhost:5620',
_endCalled: true,
_callback: [Function (anonymous)],
_fullfilledPromise: [Promise],
res: [Object],
_resBuffered: true,
response: [Circular *1],
called: true,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
req: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 144,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
_header: 'POST /api/fleet/agent_policies?sys_monitoring=true HTTP/1.1\r\n' +
'Host: localhost:5620\r\n' +
'Accept-Encoding: gzip, deflate\r\n' +
'Content-Type: application/json\r\n' +
'kbn-xsrf: true\r\n' +
'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
'Content-Length: 144\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/fleet/agent_policies?sys_monitoring=true',
_ended: true,
res: [Object],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'localhost',
protocol: 'http:',
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: [Socket],
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 65536,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
text: `{"statusCode":400,"error":"Bad Request","message":"Error while compiling agent template: Parse error on line 26:\\n...}include_xml: true{{/if}}{{#if proces\\n---------------------^\\nExpecting 'EOF', got 'OPEN_ENDBLOCK'"}`,
files: undefined,
buffered: true,
headers: {
'elastic-api-version': '2023-10-31',
'x-content-type-options': 'nosniff',
'referrer-policy': 'strict-origin-when-cross-origin',
'permissions-policy': 'camera=(), display-capture=(), fullscreen=(self), geolocation=(), microphone=(), web-share=()',
'cross-origin-opener-policy': 'same-origin',
'content-security-policy': "script-src 'report-sample' 'self'; worker-src 'report-sample' 'self' blob:; style-src 'report-sample' 'self' 'unsafe-inline'",
'content-security-policy-report-only': "form-action 'report-sample' 'self'; object-src 'report-sample' 'none'",
'kbn-name': 'bk-agent-prod-gcp-1753353936579151325',
'kbn-license-sig': '58e75b3f16dcdecb62b99a660e8f70a7441a9f3b91a264f4c680afec7b92a1fc',
'content-type': 'application/json; charset=utf-8',
'cache-control': 'private, no-cache, no-store, must-revalidate',
'content-length': '218',
date: 'Thu, 24 Jul 2025 11:22:58 GMT',
connection: 'close'
},
header: {
'elastic-api-version': '2023-10-31',
'x-content-type-options': 'nosniff',
'referrer-policy': 'strict-origin-when-cross-origin',
'permissions-policy': 'camera=(), display-capture=(), fullscreen=(self), geolocation=(), microphone=(), web-share=()',
'cross-origin-opener-policy': 'same-origin',
'content-security-policy': "script-src 'report-sample' 'self'; worker-src 'report-sample' 'self' blob:; style-src 'report-sample' 'self' 'unsafe-inline'",
'content-security-policy-report-only': "form-action 'report-sample' 'self'; object-src 'report-sample' 'none'",
'kbn-name': 'bk-agent-prod-gcp-1753353936579151325',
'kbn-license-sig': '58e75b3f16dcdecb62b99a660e8f70a7441a9f3b91a264f4c680afec7b92a1fc',
'content-type': 'application/json; charset=utf-8',
'cache-control': 'private, no-cache, no-store, must-revalidate',
'content-length': '218',
date: 'Thu, 24 Jul 2025 11:22:58 GMT',
connection: 'close'
},
statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error: Error: cannot POST /api/fleet/agent_policies?sys_monitoring=true (400)
at Response.toError (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/node/response.js:110:17)
at Response._setStatusProperties (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/response-base.js:107:48)
at new Response (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/node/response.js:41:8)
at Test._emitResponse (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/node/index.js:932:20)
at fn (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/node/index.js:1170:38)
at IncomingMessage.<anonymous> (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1753353936579151325/elastic/kibana-on-merge/kibana/node_modules/superagent/src/node/parsers/json.js:19:7)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at processTicksAndRejections (node:internal/process/task_queues:90:21) {
status: 400,
text: `{"statusCode":400,"error":"Bad Request","message":"Error while compiling agent template: Parse error on line 26:\\n...}include_xml: true{{/if}}{{#if proces\\n---------------------^\\nExpecting 'EOF', got 'OPEN_ENDBLOCK'"}`,
method: 'POST',
path: '/api/fleet/agent_policies?sys_monitoring=true'
},
created: false,
accepted: false,
noContent: false,
badRequest: true,
unautho
[report_failure] output truncated to 8192 characters
First failure: kibana-on-merge - 9.1
Metadata
Metadata
Assignees
Labels
Team:FleetTeam label for Observability Data Collection Fleet teamTeam label for Observability Data Collection Fleet teamTeam:obs-ux-infra_servicesObservability Infrastructure & Services User Experience TeamObservability Infrastructure & Services User Experience Teamfailed-testA test failure on a tracked branch, potentially flaky-testA test failure on a tracked branch, potentially flaky-test