diff options
author | Dimple Soni <dimple.soni@yoppworks.com> | 2021-08-12 18:49:18 -0400 |
---|---|---|
committer | Dimple Soni <dimple.soni@yoppworks.com> | 2021-08-18 10:30:56 -0400 |
commit | 0960d01721345589c6d52254f3889f59313ff614 (patch) | |
tree | 9eccb4dde71562582ad9984665a2b7696466a80e /aai-resources/src/test/java/org/onap | |
parent | 364dbfd6f51650718d803c7249fe854370eb901e (diff) |
[AAI] Integrate Micrometer to identify slow APIs (Making aai_uri tag configurable)
Issue-ID: AAI-3367
Signed-off-by: Dimple Soni <dimple.soni@yoppworks.com>"
Change-Id: I7879c7e6a5ae9b3a3943f4accceede0c7ba2ade0
Diffstat (limited to 'aai-resources/src/test/java/org/onap')
-rw-r--r-- | aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java b/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java index 39f71fd..caaf91a 100644 --- a/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java +++ b/aai-resources/src/test/java/org/onap/aai/rest/ConfigurationTest.java @@ -176,9 +176,9 @@ public class ConfigurationTest extends AbstractSpringRestTest { responseEntity = restTemplate.exchange(actuatorurl + "/actuator/prometheus", HttpMethod.GET, httpEntity, String.class); responseBody = (String) responseEntity.getBody(); assertEquals(HttpStatus.OK, responseEntity.getStatusCode()); - assertTrue(responseBody.contains("app_id")); assertTrue(responseBody.contains("group_id")); - + assertTrue(responseBody.contains("aai_uri")); + //Set Accept as MediaType.APPLICATION_JSON in order to get access of endpoint "/actuator/info" and "/actuator/health" headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON)); httpEntity = new HttpEntity<String>(headers); |