summaryrefslogtreecommitdiffstats
path: root/src/test/resources/application-test.properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/application-test.properties')
-rw-r--r--src/test/resources/application-test.properties6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties
index 099ab62..537dbf4 100644
--- a/src/test/resources/application-test.properties
+++ b/src/test/resources/application-test.properties
@@ -73,3 +73,9 @@ schema.service.versions.endpoint=versions
# Location of the cadi properties file should be specified here
aaf.cadi.file=${server.local.startpath}/cadi.properties
+
+#To expose the Prometheus scraping endpoint in unit test
+management.server.port=0
+management.endpoints.enabled-by-default=true
+management.endpoints.web.exposure.include=info, health, loggers, prometheus
+management.metrics.web.server.auto-time-requests=false