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 Tests1.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 #63059

Closed
liza-mae opened this issue Apr 8, 2020 · 7 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc test-cloud

Comments

@liza-mae
Copy link
Contributor

liza-mae commented Apr 8, 2020

Version: 7.7.0
Class: X-Pack API Integration Tests1.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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 08 Apr 2020 17:57:18 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': '1eb54e91e9de',
'kbn-xpack-sig': '25df598cfa727edf994c41fc351c1abb',
'x-cloud-request-id': 'I3DjcJllRiKeo772svWotA',
'x-found-handling-cluster': 'e47b178422534ce2b86946ceaf119d01',
'x-found-handling-instance': 'instance-0000000000',
connection: 'close' },
rawHeaders:
[ 'Cache-Control',
'no-cache',
'Content-Length',
'105',
'Content-Type',
'application/json; charset=utf-8',
'Date',
'Wed, 08 Apr 2020 17:57:18 GMT',
'Kbn-License-Sig',
'681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'Kbn-Name',
'1eb54e91e9de',
'Kbn-Xpack-Sig',
'25df598cfa727edf994c41fc351c1abb',
'X-Cloud-Request-Id',
'I3DjcJllRiKeo772svWotA',
'X-Found-Handling-Cluster',
'e47b178422534ce2b86946ceaf119d01',
'X-Found-Handling-Instance',
'instance-0000000000',
'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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: e47b178422534ce2b86946ceaf119d01.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: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}' },
request:
{ _events: {},
_eventsCount: 0,
_maxListeners: undefined,
_agent: false,
_formData: null,
method: 'POST',
url: 'https://e47b178422534ce2b86946ceaf119d01.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://e47b178422534ce2b86946ceaf119d01.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: e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: '{"statusCode":400,"error":"Bad Request","message":"{\"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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: 'e47b178422534ce2b86946ceaf119d01.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: e47b178422534ce2b86946ceaf119d01.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: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}' },
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}',
body:
{ statusCode: 400,
error: 'Bad Request',
message: '{"error":"Not allowed to change Opt-in Status."}' },
files: undefined,
buffered: true,
headers:
{ 'cache-control': 'no-cache',
'content-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 08 Apr 2020 17:57:18 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': '1eb54e91e9de',
'kbn-xpack-sig': '25df598cfa727edf994c41fc351c1abb',
'x-cloud-request-id': 'I3DjcJllRiKeo772svWotA',
'x-found-handling-cluster': 'e47b178422534ce2b86946ceaf119d01',
'x-found-handling-instance': 'instance-0000000000',
connection: 'close' },
header:
{ 'cache-control': 'no-cache',
'content-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 08 Apr 2020 17:57:18 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': '1eb54e91e9de',
'kbn-xpack-sig': '25df598cfa727edf994c41fc351c1abb',
'x-cloud-request-id': 'I3DjcJllRiKeo772svWotA',
'x-found-handling-cluster': 'e47b178422534ce2b86946ceaf119d01',
'x-found-handling-instance': 'instance-0000000000',
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: 79

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

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

@liza-mae liza-mae added Team:Visualizations Visualization editors, elastic-charts and infrastructure :KibanaApp/fix-it-week labels Apr 8, 2020
@elasticmachine
Copy link
Contributor

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

@liza-mae
Copy link
Contributor Author

Version: 7.8.0
Class: X-Pack API Integration Tests1.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: 'b69ad115917e4f649fc56aa0254581b2.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 9,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'b69ad115917e4f649fc56aa0254581b2.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: 'b69ad115917e4f649fc56aa0254581b2.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 9,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'b69ad115917e4f649fc56aa0254581b2.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': 'private, no-cache, no-store, must-revalidate',
'content-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 10 Jun 2020 16:02:23 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': 'f4255b163d77',
'kbn-xpack-sig': '085e22ba884c9b41d5f8301b8f523ae6',
'x-cloud-request-id': 'UnBZrEqfTJaxllhiJC2JsA',
'x-found-handling-cluster': 'b69ad115917e4f649fc56aa0254581b2',
'x-found-handling-instance': 'instance-0000000000',
connection: 'close' },
rawHeaders:
[ 'Cache-Control',
'private, no-cache, no-store, must-revalidate',
'Content-Length',
'105',
'Content-Type',
'application/json; charset=utf-8',
'Date',
'Wed, 10 Jun 2020 16:02:23 GMT',
'Kbn-License-Sig',
'681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'Kbn-Name',
'f4255b163d77',
'Kbn-Xpack-Sig',
'085e22ba884c9b41d5f8301b8f523ae6',
'X-Cloud-Request-Id',
'UnBZrEqfTJaxllhiJC2JsA',
'X-Found-Handling-Cluster',
'b69ad115917e4f649fc56aa0254581b2',
'X-Found-Handling-Instance',
'instance-0000000000',
'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: 'b69ad115917e4f649fc56aa0254581b2.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 9,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'b69ad115917e4f649fc56aa0254581b2.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: b69ad115917e4f649fc56aa0254581b2.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: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}' },
request:
{ _events: {},
_eventsCount: 0,
_maxListeners: undefined,
_agent: false,
_formData: null,
method: 'POST',
url: 'https://b69ad115917e4f649fc56aa0254581b2.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://b69ad115917e4f649fc56aa0254581b2.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: b69ad115917e4f649fc56aa0254581b2.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: 'b69ad115917e4f649fc56aa0254581b2.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: '{"statusCode":400,"error":"Bad Request","message":"{\"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: 'b69ad115917e4f649fc56aa0254581b2.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 9,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'b69ad115917e4f649fc56aa0254581b2.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: 'b69ad115917e4f649fc56aa0254581b2.us-east-1.aws.staging.foundit.no',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 9,
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'b69ad115917e4f649fc56aa0254581b2.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: b69ad115917e4f649fc56aa0254581b2.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: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}' },
aborted: undefined,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null },
text: '{"statusCode":400,"error":"Bad Request","message":"{\"error\":\"Not allowed to change Opt-in Status.\"}"}',
body:
{ statusCode: 400,
error: 'Bad Request',
message: '{"error":"Not allowed to change Opt-in Status."}' },
files: undefined,
buffered: true,
headers:
{ 'cache-control': 'private, no-cache, no-store, must-revalidate',
'content-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 10 Jun 2020 16:02:23 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': 'f4255b163d77',
'kbn-xpack-sig': '085e22ba884c9b41d5f8301b8f523ae6',
'x-cloud-request-id': 'UnBZrEqfTJaxllhiJC2JsA',
'x-found-handling-cluster': 'b69ad115917e4f649fc56aa0254581b2',
'x-found-handling-instance': 'instance-0000000000',
connection: 'close' },
header:
{ 'cache-control': 'private, no-cache, no-store, must-revalidate',
'content-length': '105',
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 10 Jun 2020 16:02:23 GMT',
'kbn-license-sig': '681b067e603bfeef1edbba4e04651762591e7d72763471e439ce8ce058cda313',
'kbn-name': 'f4255b163d77',
'kbn-xpack-sig': '085e22ba884c9b41d5f8301b8f523ae6',
'x-cloud-request-id': 'UnBZrEqfTJaxllhiJC2JsA',
'x-found-handling-cluster': 'b69ad115917e4f649fc56aa0254581b2',
'x-found-handling-instance': 'instance-0000000000',
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: 324

@liza-mae
Copy link
Contributor Author

This has multiple failures:

  • X-Pack API Integration Tests1.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
  • X-Pack API Integration Tests1.x-pack/test/api_integration/apis/management/advanced_settings/feature_controls·ts.apis management advanced settings feature controls spaces user_1 can save settings and telemetry in space_1
  • X-Pack API Integration Tests1.x-pack/test/api_integration/apis/management/advanced_settings/feature_controls·ts.apis management advanced settings feature controls spaces user_1 can only save telemetry in space_2

@timroes
Copy link
Contributor

timroes commented Jun 26, 2020

Moving to platform. While Kibana App owns the advanced settings UI, the platform team owns all the services and APIs around config settings.

@timroes timroes added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc and removed :KibanaApp/fix-it-week Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jun 26, 2020
@elasticmachine
Copy link
Contributor

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

@pheyos
Copy link
Member

pheyos commented Nov 23, 2020

This has been fixed in #70793

@pheyos pheyos closed this as completed Nov 23, 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:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc test-cloud
Projects
None yet
Development

No branches or pull requests

4 participants