Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 2cbd56b

Browse files
author
Chris Wiechmann
committed
Analyzin IT-Test error
1 parent 1373548 commit 2cbd56b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-axway-api-management/src/actions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ async function lookupCurrentUser(params, options) {
8585
user.loginName = await _getCurrentGWUser(headers = {'Cookie': requestHeaders.cookie}, region, logger);
8686
} catch (err) {
8787
// Might happen if the request has been sent to the wrong ANM by a Load-Balancer in between. (Session Stickyness not working as expected)
88+
// With that, the session cookie sent is not known
8889
// Only mitigating the problem, but not really fully solving the issue - Load-Balanced request must be investigated
8990
logger.warn(`Unexpected error while trying to get current user from the ANM. Using a Load-Balancer which is not sticky?! Try again at least once.`);
91+
logger.debug(`Received error: ${JSON.stringify(err)}`);
9092
user.loginName = await _getCurrentGWUser(headers = {'Cookie': requestHeaders.cookie}, region, logger);
9193
}
9294
logger.trace(`Current user is: ${user.loginName}`);

apibuilder4elastic/test/trafficMonitorAPI/restricted/http/test_search_restricted.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Endpoints', function () {
4949
});
5050

5151
describe('Search', () => {
52-
it('[Restricted-Search-0001] Execute a search as Org-Admin without any filter - Only two of them belong to Chris-Org', () => {
52+
it.only('[Restricted-Search-0001] Execute a search as Org-Admin without any filter - Only two of them belong to Chris-Org', () => {
5353
nock('https://mocked-api-gateway:8090').get('/api/rbac/currentuser').reply(200, { "result": "chris" });
5454
nock('https://mocked-api-gateway:8090').get('/api/rbac/permissions/currentuser').replyWithFile(200, './test/mockedReplies/apigateway/operatorChris.json');
5555
nock('https://mocked-api-gateway:8075').get(`/api/portal/v1.3/users?field=loginName&op=eq&value=chris&field=enabled&op=eq&value=enabled`).replyWithFile(200, './test/mockedReplies/apimanager/apiManagerUserChris.json');

0 commit comments

Comments
 (0)