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

Commit 10c0bc5

Browse files
author
Chris Wiechmann
committed
Reactived all integration tests
1 parent 8ee07db commit 10c0bc5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ async function lookupTopology(params, options) {
134134
logger.trace(`Trying to get API-Gateway topology based on VIDUSR cookie.`);
135135
topology = await _getTopology(headers = {'Cookie': requestHeaders.cookie});
136136
}
137-
topology.services = topology.services.filter(function(service) {
138-
return service.type!="nodemanager"; // Filter node manager service
139-
});
140-
logger.info(`Successfully retrieved topology from Admin-Node-Manager. Will be cached for 5 minutes.`);
141-
cache.set( cacheKey, topology, 300);
142-
return topology;
137+
if(topology.services) {
138+
topology.services = topology.services.filter(function(service) {
139+
return service.type!="nodemanager"; // Filter node manager service
140+
});
141+
logger.info(`Successfully retrieved topology from Admin-Node-Manager. Will be cached for 5 minutes.`);
142+
cache.set( cacheKey, topology, 300);
143+
return topology;
144+
}
143145
}
144146

145147
async function lookupAPIDetails(params, options) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('Endpoints', function () {
9494
});
9595
});
9696

97-
it.only('[Restricted-Search-0003] Execute a search - NOT being an API-GW-Admin - Normal user in API-Manager', () => {
97+
it('[Restricted-Search-0003] Execute a search - NOT being an API-GW-Admin - Normal user in API-Manager', () => {
9898
// For this user, the result-set is limited to users organization
9999
nock('https://mocked-api-gateway:8090').get('/api/rbac/currentuser').reply(200, { "result": "rene" });
100100
nock('https://mocked-api-gateway:8090').get('/api/rbac/permissions/currentuser').replyWithFile(200, './test/mockedReplies/apigateway/operatorRene.json');

0 commit comments

Comments
 (0)