bff:
realm: ONAP
preferences-url: ${PREFERENCES_URL}
- history-url: ${PORTAL_HISTORY_URL}
+ history-url: ${HISTORY_URL}
keycloak-url: ${KEYCLOAK_URL}
bff:
realm: ${KEYCLOAK_REALM}
preferences-url: ${PREFERENCES_URL}
- history-url: ${PORTAL_HISTORY_URL}
+ history-url: ${HISTORY_URL}
keycloak-url: ${KEYCLOAK_URL}
final ProblemApiDto response = createActionProblem(createActionDto, userId);
assertThat(response.getDownstreamSystem())
- .isEqualTo(ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY);
+ .isEqualTo(ProblemApiDto.DownstreamSystemEnum.HISTORY);
assertThat(response.getDownstreamStatus()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR.value());
assertThat(response.getDetail()).isEqualTo(problemHistoryDto.getDetail());
final ProblemApiDto response = listActionsProblem();
assertThat(response.getDownstreamSystem())
- .isEqualTo(ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY);
+ .isEqualTo(ProblemApiDto.DownstreamSystemEnum.HISTORY);
assertThat(response.getDownstreamStatus()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR.value());
assertThat(response.getDetail()).isEqualTo(problemHistoryDto.getDetail());
}
PORTALPREFS_PORT:27017
# history
-PORTAL_HISTORY_IMAGE_NAME=history
-PORTAL_HISTORY_IMAGE_TAG=0.1.1-de369ace
-PORTALHISTORY_USERNAME:root
-PORTALHISTORY_PASSWORD:password
-PORTALHISTORY_DATABASE:History
-PORTALHISTORY_HOST:mongo-history
-PORTALHISTORY_PORT:27017
+HISTORY_IMAGE_NAME=history
+HISTORY_IMAGE_TAG=0.1.1-de369ace
+HISTORY_USERNAME:root
+HISTORY_PASSWORD:password
+HISTORY_DATABASE:History
+HISTORY_HOST:mongo-history
+HISTORY_PORT:27017
container_name: mongo-history
image: "${MONGO_IMAGE}:${MONGO_VERSION}"
environment:
- MONGO_INITDB_ROOT_USERNAME: ${PORTALHISTORY_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD: ${PORTALHISTORY_PASSWORD}
+ MONGO_INITDB_ROOT_USERNAME: ${HISTORY_USERNAME}
+ MONGO_INITDB_ROOT_PASSWORD: ${HISTORY_PASSWORD}
history:
container_name: history
- image: "${IMAGE_REPOSITORY}/${PORTAL_HISTORY_IMAGE_NAME}:${PORTAL_HISTORY_IMAGE_TAG}"
+ image: "${IMAGE_REPOSITORY}/${HISTORY_IMAGE_NAME}:${HISTORY_IMAGE_TAG}"
ports:
- 9002:9002
environment:
- PORTALHISTORY_USERNAME: ${PORTALHISTORY_USERNAME}
- PORTALHISTORY_PASSWORD: ${PORTALHISTORY_PASSWORD}
- PORTALHISTORY_DATABASE: ${PORTALHISTORY_DATABASE}
+ HISTORY_USERNAME: ${HISTORY_USERNAME}
+ HISTORY_PASSWORD: ${HISTORY_PASSWORD}
+ HISTORY_DATABASE: ${HISTORY_DATABASE}
KEYCLOAK_URL: ${KEYCLOAK_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM}
- PORTALHISTORY_HOST: ${PORTALHISTORY_HOST}
- PORTALHISTORY_PORT: ${PORTALHISTORY_PORT}
+ HISTORY_HOST: ${HISTORY_HOST}
+ HISTORY_PORT: ${HISTORY_PORT}
depends_on:
- mongo-history
mongo-preferences:
}
@Bean
- public ActionsApi portalHistoryActionApi(WebClient.Builder webClientBuilder) {
+ public ActionsApi historyActionApi(WebClient.Builder webClientBuilder) {
return constructApiClient(webClientBuilder, ActionsApi::new);
}
.title(httpStatusCode.toString())
.detail(errorResponse.getDetail())
.downstreamMessageId(errorResponse.getType())
- .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString())
+ .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.HISTORY.toString())
.downstreamStatus(httpStatusCode.value())
.build();
}
xRequestId,
"Create actions failed for userId",
userId,
- ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString());
+ ProblemApiDto.DownstreamSystemEnum.HISTORY.toString());
return Mono.error(ex);
});
}
xRequestId,
"Get actions failed for userId",
userId,
- ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString());
+ ProblemApiDto.DownstreamSystemEnum.HISTORY.toString());
return Mono.error(ex);
});
}
xRequestId,
"List actions failed",
null,
- ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString());
+ ProblemApiDto.DownstreamSystemEnum.HISTORY.toString());
return Mono.error(ex);
});
}
+ deleteAfterHours
+ " hours",
userId,
- ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString());
+ ProblemApiDto.DownstreamSystemEnum.HISTORY.toString());
return Mono.error(ex);
});
}
description: The downstream system that responded with error
enum:
- KEYCLOAK
- - PORTAL_SERVICE
- PREFERENCES
- - PORTAL_HISTORY
+ - HISTORY
downstreamStatus:
type: integer
format: int32