This repository was archived by the owner on Dec 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
custom_flow_nodes/api-builder-plugin-axway-api-management/src
test/trafficMonitorAPI/restricted/http Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 } ` ) ;
Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments