* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2020-2022 Bell Canada. All rights reserved.
* ================================================================================
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2020-2022 Bell Canada. All rights reserved.
* ================================================================================
private HealthCheckReport verifyDmaapClient(HttpClient httpClient, Response resp) {
DmaapGetTopicResponse dmaapResponse = resp.readEntity(DmaapGetTopicResponse.class);
var topicVerificationStatus = (dmaapResponse.getTopics() != null
private HealthCheckReport verifyDmaapClient(HttpClient httpClient, Response resp) {
DmaapGetTopicResponse dmaapResponse = resp.readEntity(DmaapGetTopicResponse.class);
var topicVerificationStatus = (dmaapResponse.getTopics() != null
- && dmaapResponse.getTopics().contains(PapConstants.TOPIC_POLICY_PDP_PAP));
- String message = (topicVerificationStatus ? "PAP to DMaaP connection check is successfull"
+ && dmaapResponse.getTopics().contains(topicPolicyPdpPap));
+ String message = (topicVerificationStatus ? "PAP to DMaaP connection check is successful"
: "PAP to DMaaP connection check failed");
int code = (topicVerificationStatus ? resp.getStatus() : 503);
return createHealthCheckReport(httpClient.getName(), httpClient.getBaseUrl(), code,
: "PAP to DMaaP connection check failed");
int code = (topicVerificationStatus ? resp.getStatus() : 503);
return createHealthCheckReport(httpClient.getName(), httpClient.getBaseUrl(), code,