Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test-failed]: X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/advanced_settings/feature_controls·ts - apis management advanced settings feature controls settings can be saved with the advancedSettings: ["all"] feature privilege #55787

Closed
liza-mae opened this issue Jan 24, 2020 · 6 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Visualizations Visualization editors, elastic-charts and infrastructure test-cloud

Comments

@liza-mae
Copy link
Contributor

Version: 7.6
Class: X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/advanced_settings/feature_controls·ts
Stack Trace:
Error: expected { _events: {},
_eventsCount: 0,
_maxListeners: undefined,
res:
{ _readableState:
{ objectMode: false,
highWaterMark: 16384,
buffer: [Object],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
paused: false,
emitClose: true,
autoDestroy: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: true,
decoder: [Object],
encoding: 'utf8' },
readable: false,
_events:
{ end: [Object],
data: [Object],
error: [Object],
close: [Function: bound emit] },
_eventsCount: 4,
_maxListeners: undefined,
socket:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
connection:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 24 Jan 2020 01:20:26 GMT',
'kbn-license-sig': '1c6f869f88b0168bc8c7cc5575a02d0f60b77386ed5d9a6677886b911afde3e5',
'kbn-name': 'ebfd926d2f2d',
'kbn-xpack-sig': '2e2cefa1c7112a5bd2d3c4b785ae0c65',
'x-cloud-request-id': 's1Z_GwCUTGqq4bi6UkzQeQ',
'x-found-handling-cluster': 'f73bfceca31243a79a6ae2edbb114df9',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.8.15',
'content-length': '48',
connection: 'Close' },
rawHeaders:
[ 'Cache-Control',
'no-cache',
'Content-Type',
'application/json; charset=utf-8',
'Date',
'Fri, 24 Jan 2020 01:20:26 GMT',
'Kbn-License-Sig',
'1c6f869f88b0168bc8c7cc5575a02d0f60b77386ed5d9a6677886b911afde3e5',
'Kbn-Name',
'ebfd926d2f2d',
'Kbn-Xpack-Sig',
'2e2cefa1c7112a5bd2d3c4b785ae0c65',
'X-Cloud-Request-Id',
's1Z_GwCUTGqq4bi6UkzQeQ',
'X-Found-Handling-Cluster',
'f73bfceca31243a79a6ae2edbb114df9',
'X-Found-Handling-Instance',
'instance-0000000000',
'X-Found-Handling-Server',
'172.23.8.15',
'Content-Length',
'48',
'Connection',
'Close' ],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
_consuming: false,
_dumped: false,
req:
{ _events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Object],
socketPath: undefined,
timeout: undefined,
method: 'POST',
path: '/api/telemetry/v2/optIn',
_ended: true,
res: [Circular],
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"error":"Not allowed to change Opt-in Status."}' },
request:
{ _events: {},
_eventsCount: 0,
_maxListeners: undefined,
_agent: false,
_formData: null,
method: 'POST',
url: 'https://f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243/api/telemetry/v2/optIn',
_header:
{ 'user-agent': 'node-superagent/3.8.2',
authorization: 'Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==',
'kbn-xsrf': 'foo',
'content-type': 'application/json' },
header:
{ 'User-Agent': 'node-superagent/3.8.2',
Authorization: 'Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==',
'kbn-xsrf': 'foo',
'Content-Type': 'application/json' },
writable: true,
_redirects: 0,
_maxRedirects: 0,
cookies: '',
qs: {},
_query: [],
qsRaw: [],
_redirectList: [],
_streamRequest: false,
_buffer: true,
app: 'https://f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243',
_asserts: [],
toPromise: [Function: toPromise],
then: [Function: then],
catch: [Function: _catch],
_data: { enabled: true },
req:
{ _events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Object],
socketPath: undefined,
timeout: undefined,
method: 'POST',
path: '/api/telemetry/v2/optIn',
_ended: true,
res: [Object],
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
protocol: 'https:',
host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243',
_endCalled: true,
_callback: [Function],
res:
{ _readableState: [Object],
readable: false,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Object],
_consuming: false,
_dumped: false,
req: [Object],
text: '{"error":"Not allowed to change Opt-in Status."}' },
response: [Circular],
called: true },
req:
{ _events:
{ drain: [Object],
error: [Object],
prefinish: [Function: requestOnPrefinish] },
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular],
write: [Function: writeAfterFIN] },
connection:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular],
write: [Function: writeAfterFIN] },
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: f73bfceca31243a79a6ae2edbb114df9.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent:
{ _events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object] },
socketPath: undefined,
timeout: undefined,
method: 'POST',
path: '/api/telemetry/v2/optIn',
_ended: true,
res:
{ _readableState: [Object],
readable: false,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Object],
_consuming: false,
_dumped: false,
req: [Circular],
text: '{"error":"Not allowed to change Opt-in Status."}' },
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"error":"Not allowed to change Opt-in Status."}',
body: { error: 'Not allowed to change Opt-in Status.' },
files: undefined,
buffered: true,
headers:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 24 Jan 2020 01:20:26 GMT',
'kbn-license-sig': '1c6f869f88b0168bc8c7cc5575a02d0f60b77386ed5d9a6677886b911afde3e5',
'kbn-name': 'ebfd926d2f2d',
'kbn-xpack-sig': '2e2cefa1c7112a5bd2d3c4b785ae0c65',
'x-cloud-request-id': 's1Z_GwCUTGqq4bi6UkzQeQ',
'x-found-handling-cluster': 'f73bfceca31243a79a6ae2edbb114df9',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.8.15',
'content-length': '48',
connection: 'Close' },
header:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 24 Jan 2020 01:20:26 GMT',
'kbn-license-sig': '1c6f869f88b0168bc8c7cc5575a02d0f60b77386ed5d9a6677886b911afde3e5',
'kbn-name': 'ebfd926d2f2d',
'kbn-xpack-sig': '2e2cefa1c7112a5bd2d3c4b785ae0c65',
'x-cloud-request-id': 's1Z_GwCUTGqq4bi6UkzQeQ',
'x-found-handling-cluster': 'f73bfceca31243a79a6ae2edbb114df9',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.8.15',
'content-length': '48',
connection: 'Close' },
statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error: [Error: cannot POST /api/telemetry/v2/optIn (400)],
accepted: false,
noContent: false,
badRequest: true,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
type: 'application/json',
charset: 'utf-8',
links: {},
setEncoding: [Function: bound ],
redirects: [] } to have a property 'statusCode' of 200, but got 400
at Assertion.assert (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExt/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/packages/kbn-expect/expect.js:100:11)
at Assertion.property (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExt/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/packages/kbn-expect/expect.js:417:10)
at expectResponse (test/api_integration/apis/management/advanced_settings/feature_controls.ts:25:37)
at Context.it (test/api_integration/apis/management/advanced_settings/feature_controls.ts:78:9)
Platform: cloud
Build Num: 42

@liza-mae liza-mae added failed-test A test failure on a tracked branch, potentially flaky-test test-cloud labels Jan 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@liza-mae liza-mae added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Jan 27, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@mshustov mshustov added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! and removed Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Feb 2, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@liza-mae
Copy link
Contributor Author

Version: 7.6.1
Class: X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/advanced_settings/feature_controls·ts
Stack Trace:
Error: expected { _events: {},
_eventsCount: 0,
_maxListeners: undefined,
res:
{ _readableState:
{ objectMode: false,
highWaterMark: 16384,
buffer: [Object],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
paused: false,
emitClose: true,
autoDestroy: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: true,
decoder: [Object],
encoding: 'utf8' },
readable: false,
_events:
{ end: [Object],
data: [Object],
error: [Object],
close: [Function: bound emit] },
_eventsCount: 4,
_maxListeners: undefined,
socket:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
connection:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 27 Feb 2020 17:21:59 GMT',
'kbn-license-sig': 'a47e0d97e913e9c807701198359cfa80bbc997454c18039d0b8cba7a3f83c4be',
'kbn-name': '4d8adea2a213',
'kbn-xpack-sig': '3416b41ab3f24653dd96438206b637f0',
'x-cloud-request-id': 'CRol1LL2QGKco5aQc1GoaA',
'x-found-handling-cluster': '2301f61f34ed4ae8a6f220da832a918e',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.12.37',
'content-length': '48',
connection: 'Close' },
rawHeaders:
[ 'Cache-Control',
'no-cache',
'Content-Type',
'application/json; charset=utf-8',
'Date',
'Thu, 27 Feb 2020 17:21:59 GMT',
'Kbn-License-Sig',
'a47e0d97e913e9c807701198359cfa80bbc997454c18039d0b8cba7a3f83c4be',
'Kbn-Name',
'4d8adea2a213',
'Kbn-Xpack-Sig',
'3416b41ab3f24653dd96438206b637f0',
'X-Cloud-Request-Id',
'CRol1LL2QGKco5aQc1GoaA',
'X-Found-Handling-Cluster',
'2301f61f34ed4ae8a6f220da832a918e',
'X-Found-Handling-Instance',
'instance-0000000000',
'X-Found-Handling-Server',
'172.23.12.37',
'Content-Length',
'48',
'Connection',
'Close' ],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
write: [Function: writeAfterFIN] },
_consuming: false,
_dumped: false,
req:
{ _events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: 2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Object],
socketPath: undefined,
timeout: undefined,
method: 'POST',
insecureHTTPParser: undefined,
path: '/api/telemetry/v2/optIn',
_ended: true,
res: [Circular],
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"error":"Not allowed to change Opt-in Status."}' },
request:
{ _events: {},
_eventsCount: 0,
_maxListeners: undefined,
_agent: false,
_formData: null,
method: 'POST',
url: 'https://2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243/api/telemetry/v2/optIn',
_header:
{ 'user-agent': 'node-superagent/3.8.2',
authorization: 'Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==',
'kbn-xsrf': 'foo',
'content-type': 'application/json' },
header:
{ 'User-Agent': 'node-superagent/3.8.2',
Authorization: 'Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==',
'kbn-xsrf': 'foo',
'Content-Type': 'application/json' },
writable: true,
_redirects: 0,
_maxRedirects: 0,
cookies: '',
qs: {},
_query: [],
qsRaw: [],
_redirectList: [],
_streamRequest: false,
_buffer: true,
app: 'https://2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243',
_asserts: [],
toPromise: [Function: toPromise],
then: [Function: then],
catch: [Function: _catch],
_data: { enabled: true },
req:
{ _events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: 2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Object],
socketPath: undefined,
timeout: undefined,
method: 'POST',
insecureHTTPParser: undefined,
path: '/api/telemetry/v2/optIn',
_ended: true,
res: [Object],
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
protocol: 'https:',
host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243',
_endCalled: true,
_callback: [Function],
res:
{ _readableState: [Object],
readable: false,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Object],
_consuming: false,
_dumped: false,
req: [Object],
text: '{"error":"Not allowed to change Opt-in Status."}' },
response: [Circular],
called: true },
req:
{ _events:
{ drain: [Object],
error: [Object],
prefinish: [Function: requestOnPrefinish] },
_eventsCount: 3,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 16,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular],
write: [Function: writeAfterFIN] },
connection:
{ _tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: '2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no',
_readableState: [Object],
readable: false,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular],
write: [Function: writeAfterFIN] },
_header: 'POST /api/telemetry/v2/optIn HTTP/1.1\r\nHost: 2301f61f34ed4ae8a6f220da832a918e.us-east-1.aws.staging.foundit.no:9243\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: node-superagent/3.8.2\r\nAuthorization: Basic c2V0dGluZ3NfYWxsOnNldHRpbmdzX2FsbC1wYXNzd29yZA==\r\nkbn-xsrf: foo\r\nContent-Type: application/json\r\nContent-Length: 16\r\nConnection: close\r\n\r\n',
_onPendingData: [Function: noopPendingOutput],
agent:
{ _events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object] },
socketPath: undefined,
timeout: undefined,
method: 'POST',
insecureHTTPParser: undefined,
path: '/api/telemetry/v2/optIn',
_ended: true,
res:
{ _readableState: [Object],
readable: false,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [Object],
_consuming: false,
_dumped: false,
req: [Circular],
text: '{"error":"Not allowed to change Opt-in Status."}' },
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"error":"Not allowed to change Opt-in Status."}',
body: { error: 'Not allowed to change Opt-in Status.' },
files: undefined,
buffered: true,
headers:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 27 Feb 2020 17:21:59 GMT',
'kbn-license-sig': 'a47e0d97e913e9c807701198359cfa80bbc997454c18039d0b8cba7a3f83c4be',
'kbn-name': '4d8adea2a213',
'kbn-xpack-sig': '3416b41ab3f24653dd96438206b637f0',
'x-cloud-request-id': 'CRol1LL2QGKco5aQc1GoaA',
'x-found-handling-cluster': '2301f61f34ed4ae8a6f220da832a918e',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.12.37',
'content-length': '48',
connection: 'Close' },
header:
{ 'cache-control': 'no-cache',
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 27 Feb 2020 17:21:59 GMT',
'kbn-license-sig': 'a47e0d97e913e9c807701198359cfa80bbc997454c18039d0b8cba7a3f83c4be',
'kbn-name': '4d8adea2a213',
'kbn-xpack-sig': '3416b41ab3f24653dd96438206b637f0',
'x-cloud-request-id': 'CRol1LL2QGKco5aQc1GoaA',
'x-found-handling-cluster': '2301f61f34ed4ae8a6f220da832a918e',
'x-found-handling-instance': 'instance-0000000000',
'x-found-handling-server': '172.23.12.37',
'content-length': '48',
connection: 'Close' },
statusCode: 400,
status: 400,
statusType: 4,
info: false,
ok: false,
redirect: false,
clientError: true,
serverError: false,
error: [Error: cannot POST /api/telemetry/v2/optIn (400)],
accepted: false,
noContent: false,
badRequest: true,
unauthorized: false,
notAcceptable: false,
forbidden: false,
notFound: false,
type: 'application/json',
charset: 'utf-8',
links: {},
setEncoding: [Function: bound ],
redirects: [] } to have a property 'statusCode' of 200, but got 400
at Assertion.assert (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExt/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/packages/kbn-expect/expect.js:100:11)
at Assertion.property (/var/lib/jenkins/workspace/elastic+estf-cloud-kibana-tests/JOB/xpackExt/TASK/saas_run_kibana_tests/node/linux-immutable/ci/cloud/common/build/kibana/packages/kbn-expect/expect.js:417:10)
at expectResponse (test/api_integration/apis/management/advanced_settings/feature_controls.ts:25:37)
at Context.it (test/api_integration/apis/management/advanced_settings/feature_controls.ts:78:9)
Platform: cloud
Build Num: 50

@kobelb kobelb added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Feb 27, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@kertal
Copy link
Member

kertal commented Jul 7, 2020

fixed in #70793 version 7.9.0

@kertal kertal closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Visualizations Visualization editors, elastic-charts and infrastructure test-cloud
Projects
None yet
Development

No branches or pull requests

5 participants