Untitled
unknown
plain_text
4 years ago
15 kB
6
Indexable
yarn e2e
yarn run v1.22.17
$ node_modules/.bin/jest ./test/e2e/feature-set --config=./test/e2e/feature-set/jest.e2e.config.ts --detectOpenHandles
Determining test suites to run...Error: Please set the environment variables before running test suites
at /Users/akashsahu/workspace/sherbert-tests/test/e2e/feature-set/jest.e2e.setup.ts:20:23
at Array.forEach (<anonymous>)
at setup (/Users/akashsahu/workspace/sherbert-tests/test/e2e/feature-set/jest.e2e.setup.ts:18:25)
at /Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/core/build/runGlobalHook.js:125:19
at ScriptTransformer.requireAndTranspileModule (/Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/transform/build/ScriptTransformer.js:903:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async _default (/Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/core/build/runGlobalHook.js:116:9)
at async runJest (/Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/core/build/runJest.js:369:5)
at async _run10000 (/Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/core/build/cli/index.js:320:7)
at async runCLI (/Users/akashsahu/workspace/sherbert-tests/node_modules/@jest/core/build/cli/index.js:173:3)
✨ Done in 5.31s.
akashsahu@Akashsahu-MacBook-Pro sherbert-tests % yarn e2e
yarn run v1.22.17
$ node_modules/.bin/jest ./test/e2e/feature-set --config=./test/e2e/feature-set/jest.e2e.config.ts --detectOpenHandles
Determining test suites to run...Error: Request failed with status code 401
at createError (/Users/akashsahu/workspace/sherbert-tests/node_modules/axios/lib/core/createError.js:16:15)
at settle (/Users/akashsahu/workspace/sherbert-tests/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/Users/akashsahu/workspace/sherbert-tests/node_modules/axios/lib/adapters/http.js:293:11)
at IncomingMessage.emit (node:events:402:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'axios/0.24.0',
'Content-Length': 1952
},
method: 'post',
url: 'https://rest.akeyless.io/auth',
data: 'access-id=p-u8mbzqmz92i4&access-type=aws_iam&cloud-id=eyJzdHNfcmVxdWVzdF9tZXRob2QiOiJQT1NUIiwic3RzX3JlcXVlc3RfdXJsIjoiYUhSMGNITTZMeTl6ZEhNdVlXMWhlbTl1WVhkekxtTnZiUzg9Iiwic3RzX3JlcXVlc3RfYm9keSI6IlFXTjBhVzl1UFVkbGRFTmhiR3hsY2tsa1pXNTBhWFI1SmxabGNuTnBiMjQ5TWpBeE1TMHdOaTB4TlE9PSIsInN0c19yZXF1ZXN0X2hlYWRlcnMiOiJleUpCZFhSb2IzSnBlbUYwYVc5dUlqcGJJa0ZYVXpRdFNFMUJReTFUU0VFeU5UWWdRM0psWkdWdWRHbGhiRDFCVTBsQk1rVlZXa0pITkRaUVFUZEZTalJUTnk4eU1ESXlNRE14TkM5MWN5MWxZWE4wTFRFdmMzUnpMMkYzY3pSZmNtVnhkV1Z6ZEN3Z1UybG5ibVZrU0dWaFpHVnljejFqYjI1MFpXNTBMV3hsYm1kMGFEdGpiMjUwWlc1MExYUjVjR1U3YUc5emREdDRMV0Z0ZWkxa1lYUmxPM2d0WVcxNkxYTmxZM1Z5YVhSNUxYUnZhMlZ1TENCVGFXZHVZWFIxY21VOVlqTmtNbVprTmpnd056TTJOVE16WkdSaU1UQTROREkyTlRJeVl6QTBPR05qTnpZNU1ETmxZVFV6TldVMFpUZGpaV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p2WlVsclFWbDVUVFF4VlRsRVQzUmFibWQ1VDBWYWVEWnpTVE16YkhaRmFDdFFNalF4YjJWWWNEaDRXRTlHWlRrMFRIcGlUakkxTjJzeGFVUmhUVXM0YlZoTVRYWnJUV0p4YVRSbVp6MDlJbDE5In0%3D',
'axios-retry': { retryCount: 0, lastRequestTime: 1647249059554 }
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'rest.akeyless.io',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'rest.akeyless.io',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 108,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /auth HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 1952\r\n' +
'Host: rest.akeyless.io\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/auth',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 401,
statusMessage: 'Unauthorized',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://rest.akeyless.io/auth',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 20,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'rest.akeyless.io',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 1952,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://rest.akeyless.io/auth',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 401,
statusText: 'Unauthorized',
headers: {
date: 'Mon, 14 Mar 2022 09:11:00 GMT',
'content-type': 'application/json',
'content-length': '281',
connection: 'close',
'set-cookie': [Array],
'access-control-allow-origin': '*',
'cache-control': 'no-cache, no-store, must-revalidate, private',
expires: '0',
pragma: 'no-cache'
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
url: 'https://rest.akeyless.io/auth',
data: 'access-id=p-u8mbzqmz92i4&access-type=aws_iam&cloud-id=eyJzdHNfcmVxdWVzdF9tZXRob2QiOiJQT1NUIiwic3RzX3JlcXVlc3RfdXJsIjoiYUhSMGNITTZMeTl6ZEhNdVlXMWhlbTl1WVhkekxtTnZiUzg9Iiwic3RzX3JlcXVlc3RfYm9keSI6IlFXTjBhVzl1UFVkbGRFTmhiR3hsY2tsa1pXNTBhWFI1SmxabGNuTnBiMjQ5TWpBeE1TMHdOaTB4TlE9PSIsInN0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STUd4UmF5OU9RWFJrV2pkWVprSjRka0ZPYUc5bGJFOUxWbVZuVEZsRFN6UlBNMHhtZFZReVpWTXZiMWd4UjJWTE9FczVibWhFYjNOSFFuazVlSGRqTXpSc1VGTm9lVmgyU2xoRmRIRTRjbmhsV0RaWE56STNaVmxCTkROb2JFcFFZVk5FT1hwSmRWRm5hR05XUTNGM1pYUktZVEZCV0RJclVESTBTRlI2ZGtsd1ZYazJSRWhLVmtwbGVVNW5kbU5yS3pJM2NsSlpUM1V4Vkc5NFIxVlBaaTlzVlhkMGVIRTBNV3BRVjNZeFlraElaRzlpZG14UGVHOUpZamROVEZreFJVZFhXbVo2Tm1OTFIyUm1Ta1JRUzBWRFZVNVFTMEk0YVdsNFNFYzRZMUZKTW1SRVJEQkZZbU5CTUZjM1FpdEtTMlJUZGpBeGNrRlljblZpSzJoTFUwbHZiM1p2WlVsclFWbDVUVFF4VlRsRVQzUmFibWQ1VDBWYWVEWnpTVE16YkhaRmFDdFFNalF4YjJWWWNEaDRXRTlHWlRrMFRIcGlUakkxTjJzeGFVUmhUVXM0YlZoTVRYWnJUV0p4YVRSbVp6MDlJbDE5In0%3D',
'axios-retry': [Object]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /auth HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 1952\r\n' +
'Host: rest.akeyless.io\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/auth',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'rest.akeyless.io',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: {
status: 'failure',
command: 'auth',
response: [Array],
token: 'N/A'
}
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
✨ Done in 5.38s.Editor is loading...